This project is not covered by Drupal’s security advisory policy.

A CSS Variables based successor of the color module. For a screencast see Merlin's Minute Modules: CSS Variables.

Contained modules:

CSS Variables

As a module or theme author, you can use CSS Variables and provide some defaults. Then if you declare these variables in your config schema, the module provides the settings form for you at admin/appearance/cssvars. (We can improve widgets though.)

CSS Variables Example

Look into this to see how CSS variables are used and declared.

IE Polyfill

Adds a polyfill that enables CSS Variables on IE. (If someone needs this server-side, without requiring client-side JS, feel free to implement it.)

ColorNG

(Currently requires this core patch.) This module

  • auto-generates CSS Variable declaration for every Color-enabled theme, and
  • replaces the "#xxxxxx" colors in your theme with variables.

(Remember to disable the color module to use it sensibly!)

You can use this to migrate your legacy theme implementation like this:

Supporting organizations: 

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon13 sites report using this module
  • Created by geek-merlin on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases