Pass variables to SASS?

I've looked around but i haven't found any answer, so i suppose it ain't possible, but asking wont hurt.

Is there any way to pass variables to SASS and recompile?

[A] - Inside content/globals/global.yaml: main_color: #FF0000

[B] - Inside variables theme/sass/core/settings.scss $main_color: {{ global.main_color }}

Scenario: When I change [A] to #0000FF and save. BAM. Sh*t get recompiled and everything is now blue.

Dunno if the Statamic-SASS or Laravel Mix addons can be tweaked toward this results. Or by having some custom addon trigger stuff on events.

Anybody achieved anything similar?

BTW I'm loving statamic, real magical stuff.

>>>>>>> Unanswered <<<<<<<
4 Replies