Repository navigation
Conversation
--primary and its shades were generated by Sass from a fixed purple, so the Project Color setting only tinted the logo and the favicon. Override them on <body> with CSS color-mix(), using the same mixing rules as the Sass palette (the themes expose the mix colors as --primary-mix-pos/-neg). Body, not the app root, so teleported menus and dialogs are covered too. Without a project color, or without color-mix() support, the stock palette is unchanged. Discussion: LaWebcapsule#431 Signed-off-by: Kyrylo Kuzmytskyi <slykirill@gmail.com>
Grouzoul
approved these changes
Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change description
Part of discussion #431 (item 1).
The "Project Color" in Settings now becomes the primary color of the whole admin UI: buttons, links, toggles, focus rings and selections. Before, it only tinted the logo square and the favicon, because
--primaryand its shades (--primary-10…--primary-190) are generated by Sass from a fixed purple at build time. For new users this is the easiest way to give the admin their own look, without touching CSS.How it works:
app/src/utils/project-primary-vars.tscomputes--primaryand every shade with CSScolor-mix(), using the same mixing rules as the Sassgenerate-colorspalette. The themes expose the colors to mix with (--primary-mix-pos/--primary-mix-neg), so light and dark mode stay correct, includingauto.app.vueapplies the variables on<body>, not on the app root, so teleported menus and dialogs (#menu-outlet,#dialog-outlet) are covered too.color-mix()support, nothing is set and the stock purple palette is used as before.Screenshots and a screencast are in #431.
Type of change
Related issues
Checklists
Development
Security
project_colorsetting, which only admins can change, and is only used inside CSS custom properties.Network
Code review
necessary