Developing Plugins
The requirements for developing a plugin are very simple:
- Must export one or more CSS stylesheets
- Must be available on the NPM registry
- All utility and/or component variant attributes must be suffixed with
- - Uses the correct CSS
@layer(s)
Style Layers
- The
baselayer is reserved for base styles such as colors, fonts, and other variables - The
utilslayer is reserved for utility attributes - The
componentslayer is reserved for styling elements and components
To define styles for a specific layer, use the CSS @layer at-rule [MDN Reference]
@layer base {/* ... */}
@layer utils {/* ... */}
@layer components {/* ... */}