Skip to content

Contributing to Fylgja

Thanks for helping out! This guide covers the specifics of working in the Fylgja CSS repository. For general etiquette on raising issues and PRs, see the org-wide contributing guide.

Repository structure

This is a monorepo. Each package is published independently to npm under the @fylgja scope:

Getting set up

nvm use   # repo targets the Node version in .nvmrc
npm ci

Making changes

Each package builds independently from its own directory, e.g.:

cd base
npm run build

To visually check a change in the browser, run one of the example apps:

cd _tests/base        # or _tests/components
npm install
npm start

Code style / Testing

Run npm test from the repo root before submitting a PR. This lints all CSS against the shared @fylgja/stylelint-config.

props-builder also has its own unit tests:

cd props-builder
npm test

Commit messages

Commits in this repo are prefixed by type, e.g. ADD:, FIX:, IMP: (improvement), UPD: (dependency/version update). Please follow this convention.

Changelog

If your change is user-facing, add an entry under ## Unreleased in the relevant CHANGELOG.md (root and/or the affected package), following Keep a Changelog.

Security

Please don’t report security vulnerabilities via a public issue, see SECURITY.md.