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
base
layer is reserved for base styles such as colors, fonts, and other variables - The
utils
layer is reserved for utility attributes - The
components
layer 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 {/* ... */}
Contents