Replace color module with a CSS-Variables based module to provide configurable theme parameters

Created on 29 October 2019, almost 5 years ago
Updated 27 May 2024, 4 months ago

Problem/Motivation

Color module is unmaintainable and outdated. Its functionality OTOH is crucial for the long tail of very-low-budget projects and the adoption of drupal in this segment, making it important to provide this in core.

Proposed resolution

I made a POC: CSS Variables .

  1. Theme author can provide a definition configurable parameters (any property, not only colors) via config schema.
  2. If the module is not enabled, the theme-provided defaults are used.
  3. If enabled, CSS variables with a stronger selector are autogenerated from config.
  4. An optional adapter makes CSS Variable config schema for every legacy Color-enabled theme. Also it helps migrate to CSS Variables
  5. It contains a IE polyfill

Let's make this the successor of Color module.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Closed: outdated

Component

Idea

Created by

🇩🇪Germany geek-merlin Freiburg, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024