Custom branding colors
See original GitHub issueIs your feature request related to a problem? Please describe.
We can already customize the logos and some of the titles using the opensearch_dashboards.yml
file. It would be helpful if the theme colors could be customized in a similar way.
Describe the solution you’d like
Ideally, the entire theme would be customizable, but a starting point could be to target some of the most prominent elements like the header, which would already make a big difference.
Describe alternatives you’ve considered
A low impact way to style those elements could be to use the styled components library. For example:
# opensearchDashboards.branding:
# theme:
# headerBackgroundColor: ""
// /src/core/public/chrome/ui/header/header.tsx
const StyledHeader = styled(EuiHeader)`
background-color: ${(props) => props.branding.theme.headerBackgroundColor};
border-bottom-color: ${(props) => props.branding.theme.headerBackgroundColor};
`;
export function Header() {
return (
<>
<header className={className} data-test-subj="headerGlobalNav">
<div id="globalHeaderBars">
<StyledHeader
branding={branding}
// ...props
/>
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to choose your brand colors - Canva
A color wheel or color palette generator helps brands find a swatch of colors that match their brand aesthetic or a style they...
Read more >Hidden in Plain Sight: How to Choose Your Brand's Colors
Aim to select around 6 colors that you like the look of. These will form your color palette: a selection of colors used...
Read more >Branding Colors - Etsy
Check out our branding colors selection for the very best in unique or custom, handmade pieces from our design & templates shops.
Read more >Colors Logo Maker | LOGO.com
Customize your own Colors logo with different fonts, colours, and emblem selections like blue or green icons to ensure that your new logo...
Read more >A quick guide to Brand Color Palette with examples | Academy
Step 1: Know your colors · Step 2: Build your brand identity · Step 3: Research and Analysis · Step 4: Design your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My preference here is that a theme should have a dark/light subvariant. This is because these days, many people just use their OS settings, so I’d like to provide 2 options to users: 1) Theme name; 2) Dark mode (On, Off, Match System). This may mean that some themes may be dark mode only, or light mode only. I would be ok with that.
This would also give additional flexibility for say, specific color blind-friendly themes, high contrast themes, or even specific branded themes.
+1 to the feature request for custom themes.