Open chtushar opened 2 years ago
Fixing this🔩.. It didn't appear on my vim setup.
@vladmoroz Fixed it. Please do have a look.
I think the commit below resolves the theming issue as it allows you to import the identical-to-css data with css custom props you can continue to dynamically use based on class selector, BUT it also allows you to:
dark-theme
and also add custom scope to light themeFor example, these imports allows overriding gray4
color and use :root.light
for the light theme and :root:not(.light)
for the dark one
@use "path/to/radix-ui-colors/gray" with ($root:":root.light" , $gray4:red)
@use "path/to/radix-ui-colors/grayDark" with ($root:":root:not(.light)", $gray4:red)
https://github.com/eugenesvk/colors/commit/3fded5881ba24186b5143ea6bc748e4a92790ff1
This PR will rename
scripts/build-css-modules.js
toscripts/build-stylesheets.js
and update the script to exportscss
files along withcss
files.Fix
Fixes #18
Checklist:
build-css-modules
.scss
files.