Sass Mixins vs Functions: Architecture Notes for Design System Tokens
Separate Sass logic from output: use functions for values and mixins for CSS, behind the @use module system.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Separate Sass logic from output: use functions for values and mixins for CSS, behind the @use module system.
Stop duplicating selectors to restyle Bulma components. Learn how to override the framework's exposed CSS custom properties from a single :root block while keeping the cascade predictable.
Learn how to integrate Bulma using a selective Sass pipeline to reduce CSS payload, apply brand-specific tokens, and maintain a strict boundary between presentation and behavior.
Sass @use and @forward replace fragile @import globals with explicit namespaces and controlled public APIs. Learn how to structure theme tokens and avoid collisions.
Sass @import creates global name collisions across teams. @use and @forward introduce namespacing, private members, and a curated public API for large stylesheets. Here's how to migrate safely.
Architecture note on using CSS Custom Properties as design-system primitives: flat token namespaces, cascade-based theming, trust boundaries with JavaScript, DevTools validation, and failure modes like cyclic references and silent calc() failures. Includes migration triggers for token systems.
Stop fighting global variable collisions in Sass. Learn how to use @use and @forward in Dart Sass to create namespaced, maintainable style architectures.
Stop fighting global scope collisions in Sass. Learn how @use and @forward replace @import to provide namespacing, private members, and configurable design tokens.
Stop CSS variable collisions by replacing @import with @use. Learn how to implement module namespacing and create clean library APIs using @forward in Sass.