Replies: 2 comments 3 replies
-
What the fuck |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is a very bad idea for many reasons. Like breaking IDE completion and navigation for variables. Not to mention being unintuitive to future developers looking at your code. All just to make it subjectively more visually appealing for yourself. If you're concerned about readability and nice alignment, I'd suggest something like this instead: theme = {
light: {
color: white
background-color: white
border-color: white
},
dark: {
//...
},
}
.text
color theme.light.color Ideally you'd just be declaring your theme values like this and using CSS custom properties throughout your styling. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to write all my variables in column:
Instead of:
So, I want Stylus to merge multiple "_", "-" into "__", "--".
I can achieve this by creating proxy for
Ident
:But native support would be better.
Beta Was this translation helpful? Give feedback.
All reactions