Problem/Motivation

We will likely need some theme settings - f.e. to switch between light- and darkmode, enable or disable the "kern-kopfzeile"-Component or to override / configure custom css-properties that the kern-ux then uses for customization of the design system.

Proposed resolution

On the theme settings page there should be a form with options a user can choose to customize their experience.

Remaining tasks

  • Build the controller for the form
  • add config schema
  • add design-token definition
    • Currently it looks like the implementation in https://git.drupalcode.org/project/drupal/-/merge_requests/13470 could make it, so we could start building the yml file in that structure and try that patch for integration with the new api.
    • Edit: For now, I decided to leave it out of scope and do it in another issue - while working on it I realized, this should better be a separate issue.

User interface changes

There will be a settings page for the kern_ux theme.

API changes

None.

Data model changes

  • added Theme config schema
  • renamed library of theme
  • added cdn library definitions for optional cdn loading
CommentFileSizeAuthor
#7 screenshot_settings.png483.3 KBfisherman90

Issue fork kern_ux-3563443

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fisherman90 created an issue. See original summary.

fisherman90’s picture

Issue summary: View changes
fisherman90’s picture

Issue summary: View changes
fisherman90’s picture

Assigned: Unassigned » fisherman90
fisherman90’s picture

Issue summary: View changes
fisherman90’s picture

Title: Add theme settings & design token system » Add theme settings
fisherman90’s picture

StatusFileSize
new483.3 KB

Update:

I've added some basic settings - those I could imagine would be useful to have.
FYI: For that I also needed to rework the libraries.yml file.

Screenshot of the new options on the settings page: https://www.drupal.org/files/issues/2025-12-18/screenshot_settings.png

Hope the way I've integrated the stuff is fine, feedback welcome :)

fisherman90’s picture

Assigned: fisherman90 » Unassigned
Status: Active » Needs review

christian.wiedemann made their first commit to this issue’s fork.

christian.wiedemann’s picture

Status: Needs review » Fixed

Big thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.