I suggest you ...

CSS custom-properties (var) fallback values

CSS custom-properties allow fallback values if the specified var doesn't exist. See W3 Spec here https://www.w3.org/TR/css-variables/#using-variables.

It would be nice if the generated variable code had at least one fallback value defined, corresponding to the original variable. Ex:

I make --my-var with a #FFF color
--my-var: #FFF;

The generated code should be

color: var(--my-var, #FFF)

where #FFF is the value assigned to color (the same of --my-var) if --my-var doesn't exist.

42 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Equinsuocha shared this idea  ·   ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Equinsuocha commented  · 

        This can be a setting inside the advanced settings section :)

      Feedback and Knowledge Base