SCSS Import & Variables #346
garrynewman
announced in
Announcements
Replies: 2 comments
-
Thanks, this is really useful! |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is a good step in the right direction and im glad that more SCSS functionalities are coming to sbox. I don't know if this is not possible with the parser but this would be really decent. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This weekend I added import and variable support to scss. Let me know if you're seeing anything weird with this stuff.
Import
Imports another scss from the a relative folder, or absolute folder if that doesn't exist.
Variables
Variables let you define things like font sizes, colours, and other units in one place and reuse them. This is useful if you have a palette you want to use so you only have to define it in one place.
The way the variables work right now in code are pretty simplistic. It's a straight find and replace.. I get the feeling that this isn't what real scss shit does on the backend, but it's working for us right now.
Beta Was this translation helpful? Give feedback.
All reactions