pollen-css/pollen.css). It also comes with a build tool to generate your own custom CSS bundle instead.
pollen.config.jsfile in the root of your project that exports either a function or an object. See the full list of configuration options below.
pollenCLI tool. Either install
pollen-cssglobally, or run the tool in an NPM script or with
pollenbuild tool along with the rest of your build pipeline, in a CI step or similar. You can do this with a
outputin config file
outputoption in Pollen's config also accepts an object with a
jsonfield, which will generate a JSON schema of your design system. This is useful for internal documentation if your module configuration differs significantly from Pollen's defaults, which are documented here.
selectoroption in Pollen's config, a potential use-case is to make it
:hostfor a shadow DOM, or a HTML element if you want to scope Pollen to part of your project
Configtype, which you can use to annotate your config file with JSDoc typings
defineConfig()helper to get typescript support without JSDoc annotation