Export SCSS
-
I have another idea, and, that is, getting SCSS variables from Customize page using Kirki. SCSS allows to play with variables for colors, background-colors, fonts etc. It would be great having option to export data as SCSS variables.
Then SCSS variables could be compiled back into CSS using this plugin,
https://wordpress.org/plugins/wp-scss/ Thus, compiling back to CSS would be task for another plugin.Would it be possible for ‘output’ argument, besides ‘property’, optionally, to have also ‘scss_variable’ where we could define SCSS variable? That ‘scss_variable’ would get the same value as ‘property’ gets, and for ‘scss_variable’ we would specify variable’s name, for example,
‘scss_variable’ => ‘font-1’; (where ‘font-1’ is a variable’s name).
Export data for SCSS would look like this,
$font-1: “Helvetica Neue”,Helvetica,Arial,sans-serif;In contrary to ‘property’, ‘scss_variable’ would have to contain ‘units’ as part of its value, if units are provided.
- The topic ‘Export SCSS’ is closed to new replies.