You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the above module can get rather verbose when the directory structure of your project grows. For example, I can see this happening:
.foobar {
color:var(--primary from '../../../../style/theme/colors.module.css');
background-color:var(--background from '../../../../style/theme/colors.module.css');
}
I think it would be nice to have a syntax to alias another CSS module file, something like this:
@alias'../../../../style/theme/colors.module.css'ascolors;
.foobar {
color:var(--primary from colors);
background-color:var(--background from colors);
}
The syntax above is just an idea, I just don't want to repeat potentially long filepaths.
(I've searched for ways in which this might already be implemented, but couldn't find anything. Let me know if I'm wrong!)
The text was updated successfully, but these errors were encountered:
The lightningcss website states that it doesn't support "the @value rule – superseded by standard CSS variables.". I personally see two usecases why it useful and not superseded by standard CSS variables:
The support for scoping CSS variables is great and exactly what I'd expect from CSS modules.
However, consider a CSS module that defines some theme colors:
Using the above module can get rather verbose when the directory structure of your project grows. For example, I can see this happening:
I think it would be nice to have a syntax to alias another CSS module file, something like this:
The syntax above is just an idea, I just don't want to repeat potentially long filepaths.
(I've searched for ways in which this might already be implemented, but couldn't find anything. Let me know if I'm wrong!)
The text was updated successfully, but these errors were encountered: