Change background colors for light and dark themes
See original GitHub issueWhat problem does this feature solve?
I want to use a different tone of color for dark and light theme in my theme-able application. But today, there’s no way to set that.
What is your proposed solution?
Based on #1599, it should be nice to have a theme setup like this:
Vue.use(Vuetify, {
theme: {
light: {
background: '#cccccc',
primary: '#3f51b5',
secondary: '#b0bec5',
accent: '#8c9eff',
error: '#b71c1c'
},
dark: {
background: '#555555',
primary: '#3f51b5',
secondary: '#b0bec5',
accent: '#8c9eff',
error: '#b71c1c'
}
})
Issue Analytics
- State:
- Created 5 years ago
- Reactions:13
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Light & Dark Color Modes in Design Systems - Medium
To create a system for light & dark, you must model the range of CSS properties you'll control, from backgrounds and text to...
Read more >Dark theme - Material Design
A dark theme displays dark surfaces across the majority of a UI. It's designed to be a supplemental mode to a default (or...
Read more >Create switchable styles from light to dark mode in Figma
In the main background section, there are two primary colors: Primary and Secondary. They change color depending on the light or dark version....
Read more >Introducing Light and Dark Themes | Learn BeFunky
In the Settings menu, you will see options for Theme Color and Canvas Background color. You can choose between Dark or Light for...
Read more >Dark Mode to Change Color Schemes and CSS Properties
When developing a dark theme, you may notice that certain system UI components are not adjusting to dark mode properly. To fix this...
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
I wrote a short article combining above solutions and defining a custom background color: Changing Background Color in Vuetify.js and Nuxt.js - I thought someone might find it interesting.
I tried to change the light/dark theme default background color using the method above, however it does not work!!! here is what I did
add new style file under
./src/scss/main.scss
Then I imported this file from
./src/main.js
like this:I am using
vue 2.6.7
andvuetify 2.1.7