CSS
@unsass/css is a set of Sass mixins for emitting CSS declarations and selectors consistently — with built-in support for defining and consuming CSS custom properties.
Repository: github.com/unsass/css
Install
sh
npm install @unsass/csssh
yarn add @unsass/csssh
pnpm add @unsass/cssBasic usage
scss
@use "@unsass/css";
.foo {
@include css.declaration(color, darkcyan);
}css
.foo {
color: darkcyan;
}Next steps
- Configuration — work with CSS custom properties.
- Mixins — the
declaration()andselector()mixins in detail. - Best Practices — when to reach for each mixin.