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.

Ability to set default colorscheme for all components

See original GitHub issue

🚀 Feature request

Please describe your request in one or two sentences.

I would find it very convenient if it would be possible to set the default colorscheme for all components at once.

🧱 Problem Statement / Justification

Please provide valid reason(s) why this should added to Chakra UI.

If this feaure is related to a problem you’ve noticed. Mention it as well

Currently, if you want to change the default colorscheme from blue to red, for example, you have to do it for all of the existing components individually:

const theme = extendTheme({
  components: {
    Button: {
      defaultProps: {
        colorScheme: "red",
      },
    },
    Tabs: {
      defaultProps: {
        colorScheme: "red",
      },
    },
    // ... etc
  },
});

✅ Proposed solution or API

Please provide code snippets, gists, or links to the ideal design or API

It would be more convenient if we could do something like this:

const theme = extendTheme({
  config: {
    initialColorMode: "dark",
    initialColorScheme: "red",
  },
});

↩️ Alternatives

What alternative solutions have you considered before making this request?

As already mentioned, alternative is to set the default colorscheme for every existing component separately. It is not the end of the world to do it individually for all components, but implementing this feature request would be a great quality of life improvement.

📝 Additional Information

What resources (links, screenshots, etc.) do you have to assist this effort?

N/A

Thank you for this great library and all the hard work put into it! Cheers!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:26
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
anubra266commented, Nov 23, 2021
1reaction
segunadebayocommented, Jan 29, 2021

Thanks for the request! Considering this isn’t a bug, I’ll add this to our project board so you can track the progress.

Check it here: https://github.com/chakra-ui/chakra-ui/projects/6

Cheers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set default vim colorscheme - Stack Overflow
vimrc file, we need create it and put the setting colorscheme color_scheme_name in it. By the way, colorscheme desert is good scheme to...
Read more >
Default Colors for FOUNDATIONS and PIPES in Satisfactory ...
How to change the default colors and how the color system actually works. ... Once all necessary components are supplied to the Hub, ......
Read more >
Color Dashboard Data with Themes and Palettes
Customize colors in your dashboard by choosing a light or dark theme and one of 14 color palettes. Themes and color palettes help...
Read more >
How to Set a Default Theme in Excel - Xelplus - Leila Gharani
You will find the new custom theme under Page Layout > Colors. Apart from defining colors, the fonts and effects can be defined...
Read more >
Use report themes in Power BI Desktop - Microsoft Learn
You can override the default color assignment by selecting a color from the formatting pane under Data colors. You might have to change...
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