Admin Tailwind preset overrides the host app's default theme values
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 5.3k
- Forks
- 1.4k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 62
Description
The Solidus Admin installer mutates the host apps TW config, in order to allow changing the theme and to extend the admin with own TW based components.
The issue is that we overwrite the default theme with values from the Solidus Admin, by using presets and reusing the default TW color names and font sizes, etc. We either should prefix all our values with solidus- or just don't do that.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with admin/lib/solidus_admin/install_tailwindcss.rb at the linked lines and read the Tailwind presets documentation. Reproduce the installer against a host Tailwind configuration containing default theme values, then verify that the host theme remains intact while Solidus Admin can still be themed and extended. Done means the chosen prefixing or preset behavior no longer overrides host defaults.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby, tailwindcss
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100