Log in
Log into community
Join the Webstudio community
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Active
Updated 4 weeks ago
0
Follow
Variables CSS
Variables CSS
Active
0
Follow
M
Milan Boisgard | Uncode School
5 months ago
Β·
I know it's actually on the roadmap and I'm really excited about this feature to build a nice style guide.
Would it be possible to use it in the style panel too?
Could be great to use it for example in the space element.
Thanks πͺ
Attachment
1
B
M
O
18 comments
Share
Open in Discord
B
Bogdan
5 months ago
Yes, will work there
B
Bogdan
5 months ago
similar to keywords autocomplete
M
Milan Boisgard | Uncode School
5 months ago
things like var(--padding-xl ) or other naming instead of 5rem will work in this panel?
O
Oleg Isonen
5 months ago
yes
O
Oleg Isonen
5 months ago
probably similar to how it works in wf
O
Oleg Isonen
5 months ago
with exception that it will work for any properties, not only some
O
Oleg Isonen
5 months ago
and that the behavior of css variables will be like its in the real world - overridable/nestable on every tree level, not just global
M
Milan Boisgard | Uncode School
5 months ago
OMG !!!!!!
M
Milan Boisgard | Uncode School
5 months ago
I cannot wait for that feature
M
Milan Boisgard | Uncode School
5 months ago
Webflow take almost 10 years to implement it. Webstudio did it in 1.5 years. Unbeatable guys πͺ
b
beer_valera
3 months ago
And will it be possible to setup css variables for breakpoints? Webflow still cannot provide this feature
B
Bogdan
3 months ago
sure
O
Oleg Isonen
3 months ago
Do you mean css variables inside of media queries or literally using css variables as min-width inside the media query?
Not sure what you mean
b
beer_valera
3 months ago
I mean a simple UI to define CSS variables similar to webflow, but with ability to define them for breakpoints (which will be media queries as well). Without a need to write custom css for changing that variables accross breakoints
O
Oleg Isonen
3 months ago
Got it. Yeah. All variables in the tree are just like properties, part of a selected media query.
The question is what's going to be the behavior of global/root variables
O
Oleg Isonen
3 months ago
I think Bogdan already made them follow same rules.
So it's on a breakpoint always.
B
Bogdan
3 months ago
Yep
O
Oleg Isonen
3 months ago
Main breakpoint affects everything.
Specific breakpoints affect just those breakpoints.
Same thing as with any css property
Add a reply
Sign up and join the conversation on Discord
Join on Discord