Problem/Motivation

TODO

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

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

g4mbini created an issue. See original summary.

nickolaj made their first commit to this issue’s fork.

nickolaj’s picture

Status: Active » Needs review

Adds a "Default color theme" setting to theme settings that allows administrators to choose which DaisyUI theme (light, dark, or any other) should be applied by default via the data-theme attribute on the HTML element.

g4mbini’s picture

@nickolaj thanks for your MR.

I prefer to opt for an approach with config file loaded on install in config/install/ui_suite_daisyui.settings.yml as follows :

langcode: en
status: true
dependencies:
  module:
    - system
    - ui_skins
  theme:
    - ui_suite_daisyui
features:
  node_user_picture: 1
  comment_user_picture: 1
  comment_user_verification: 1
  favicon: 1
logo:
  use_default: 1
favicon:
  use_default: 1
form_display: fieldset
form_label: label
ui_skins_theme: light

  • g4mbini committed b25839b9 on 5.0.x
    feat: #3569362 [5.0.0-alpha6] Add config to choose light mode by default...
g4mbini’s picture

Status: Needs review » Fixed

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.