solidusio / solidusio/solidus

Use semantic Tailwind color names so the admin can be themed

Open
#5,848 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

changelog:solidus_admin
Dominant language
Ruby
Stars
5.3k
Forks
1.4k
Avg merge
1d 22h
Merged PRs (30d)
62

Description

Desired Behavior

I would like to be able to theme the Solidus admin as I am currently able now with the legacy backend. There we have bootstrap variables that can be changed to new color values. The use of generic variables (primary, secondary, danger, brand, etc.) makes it very easy to change the look of Solidus admin. Also light and darkmode are easier to maintain that way.

Current Behavior

We currently have color based class names all over the new admin. This makes it very hard to change the look of the new admin. Also it makes it much harder for us to change the theme in the future and make adjustments to the light and dark modes.

Additional notes

Solidus is a framework that allows clients to adopt the admin to their needs. This includes theming. IMO this is one of reasons for the success of Solidus in the community. We should not remove this feature that many stores rely on.

In the tailwind docs are ways described to make this more maintainable for us. https://tailwindcss.com/docs/customizing-colors#naming-your-colors

I think we should move to a more framework-alike approach with the new admin.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with admin/config/tailwind.config.js and the Tailwind documentation on naming colors. Search the new admin for the color-based class names described in the issue and map the affected styling usage. Done means the admin uses semantic color names consistently and its theme, including light and dark modes, can be customized as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
tailwindcss
Domain
design, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.