Support for UI Skins theme setting

Created on 15 January 2025, 7 days ago

Problem/Motivation

When using UI Skins module, we have access to the global theme settings (dark/light).
Currently some overrides are done that did not respect this value:

  • Navbar (page.html.twig)
  • Maintenance page navbar (maintenance.html.twig)
  • Layout builder
  • Media library (media--media-library.html.twig) + add media list
  • Mark (mark.html.twig)

Would be great to allow this to work.

Proposed resolution

Add a global theme variable in all templates with ui_suite_bootstrap_preprocess().

Get theme setting for layout builder and media library.

For mark, because it's a reverse style, probably better to change to success.

Remaining tasks

Seems we could achieve something for CKeditor, but this need to add a ckeditor5-stylesheets in the main theme.
Here is the CKeditor documentation on variables for a dark theme.

Feature request
Status

Active

Version

5.1

Component

Code

Created by

🇫🇷France mogtofu33

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024