question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom branding colors

See original GitHub issue

Is 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:open
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kgcreativecommented, May 31, 2022

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.

0reactions
andy-mitchell-capgeminicommented, Aug 2, 2022

+1 to the feature request for custom themes.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found