"var" is unsupported - any way to add colors as constants?

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
oceanclub
Sr. Propeller Head
Posts: 277
Joined: Thu Oct 10, 2013 4:45 am
Location: Dublin

"var" is unsupported - any way to add colors as constants?

Post by oceanclub »

I had thought to use the following in my CSS stylesheet:

Code: Select all

:root {
  --main-red: #c30e2e;
  --mid-grey: #7f7f7f; 
  --dark-grey: #242424;
  --light-grey: #d9d9d9;  
} 
Unfortunately Flare doesn't support the "var" function required to use these constants.

Is there any way to define colours as constants that Flare _does_ currently support?

P/
NorthEast
Master Propellus Maximus
Posts: 6365
Joined: Mon Mar 05, 2007 8:33 am

Re: "var" is unsupported - any way to add colors as constant

Post by NorthEast »

Have you inspected the output?
I did a quick test, and it appears that it doesn't work because Flare strips out everything inside :root { }
So that would explain why it doesn't work in a browser- some of your CSS will be missing in the output.

I'd suggest logging it as a bug.
Post Reply