Skip to content

Commit

Permalink
refactor: get source size classnames via scss map
Browse files Browse the repository at this point in the history
  • Loading branch information
sungik-choi committed Dec 18, 2024
1 parent 8e7c2e2 commit c009982
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@use 'sass:map';
@use '../../../../../node_modules/@channel.io/bezier-tokens/dist/alpha/scss'
as *;
@use '../mixins/dimension';

$sizes: 10, 12, 16, 20, 24, 30, 36, 42, 48, 60, 72, 90, 120;

@each $size in $sizes {
@each $size in map.keys(map.get($tokens, 'global', 'source-size')) {
:where(.size-#{$size}) {
@include dimension.square(var(--alpha-source-size-#{$size}));
}
Expand Down

0 comments on commit c009982

Please sign in to comment.