<code>

Problem/Motivation

I was creating a new starterkit theme for Daisy UI, following the instructions mentioned in https://git.drupalcode.org/project/ui_suite_daisyui/-/blob/5.0.x/starter..., under "Adding a new (random) theme".

However, I got stuck on the last sentence:
The new Random DaisyUI theme will be available under /admin/appearance/settings/my_daisyui_theme in the theme section.

This "Theme" section was not available on my generated Daisy UI theme.
It took me a few minutes to figure out that I hadn't yet enabled the "UI Skins" module, which I assumed would have been installed as a requirement to the theme, but is not.

Although obvious in hindsight, it would be good to document this explicitly.

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

svendecabooter created an issue. See original summary.

svendecabooter’s picture

Status: Active » Needs review

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

mortona2k’s picture

The install config has ui_skins_theme: light, and CI tests are now failing.

Adding it as a theme dependency should fix it.

mortona2k’s picture

Title: Document dependency on ui_skins to activate theme selection » Add dependency on ui_skins and fix install schema

Dependency wasn't enough. I re-exported the config and found some differences. Now the tests are passing.

Updated the starterkit config too. It inherits dependencies from the base theme, so UI Skins is required for it too now.

Module dependencies can't be overridden in a base theme, so this is a consideration for making it required. If we keep it not required, we'll have to check the new third party settings in the install config doesn't cause schema validation issues when it's not installed. I think it will though, so maybe removing it from the install config and documenting it is the way to go.

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

just_like_good_vibes’s picture

Assigned: Unassigned » just_like_good_vibes

i am making the review

just_like_good_vibes’s picture

thanks everybody for you work.
We go with UI Skins as a hard dependency now.
I added a post update that moves the old ui_skins_theme key on existing sites.

just_like_good_vibes’s picture

Assigned: just_like_good_vibes » Unassigned
Status: Needs review » Reviewed & tested by the community

just_like_good_vibes’s picture

Status: Reviewed & tested by the community » 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.