Skip to content

Commit

Permalink
change css to sass comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stacyk committed Sep 26, 2023
1 parent 916eac5 commit cde9f03
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/sass/config/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
@forward 'scale';
@forward 'utilities';

/**
* To turn Sass tokens into CSS custom properties:
* - load each color module with `@use`
* - use the `tools.add-colors` mixin with the `sass:meta` module to create a map of the variables in the imported module
* - in `initial/_root.scss` call the `config.colors--()` mixin to create custom properties
*/
// To turn Sass tokens into CSS custom properties:
// - load each color module with `@use`
// - use the `tools.add-*` mixin with the `sass:meta` module to create a
// map of the variables in the imported module
// - in `initial/_root.scss` call the `config.*--()` mixin to create
// custom properties
@use 'tools';
@use 'sass:meta';
@use 'animation/easing';
Expand All @@ -23,12 +23,13 @@
@use 'scale/spacing';
@use 'scale/text';
@use 'scale/ui' as scale-ui;
@include tools.add-easing(meta.module-variables('easing'));
@include tools.add-times(meta.module-variables('times'));

@include tools.add-colors(meta.module-variables('brand'));
@include tools.add-colors(meta.module-variables('color-ui'));
@include tools.add-sizes(meta.module-variables('ratio'));
@include tools.add-sizes(meta.module-variables('layout'));
@include tools.add-sizes(meta.module-variables('spacing'));
@include tools.add-sizes(meta.module-variables('text'));
@include tools.add-sizes(meta.module-variables('scale-ui'));
@include tools.add-easing(meta.module-variables('easing'));
@include tools.add-times(meta.module-variables('times'));

0 comments on commit cde9f03

Please sign in to comment.