<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.
Issue fork ui_suite_daisyui-3559246
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
Comment #3
svendecabooterComment #5
mortona2k commentedThe install config has
ui_skins_theme: light, and CI tests are now failing.Adding it as a theme dependency should fix it.
Comment #6
mortona2k commentedDependency 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.
Comment #8
just_like_good_vibesi am making the review
Comment #9
just_like_good_vibesthanks 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.
Comment #10
just_like_good_vibesComment #12
just_like_good_vibes