Better theme support
This commit is contained in:
@ -8,21 +8,11 @@ module.exports = {
|
||||
},
|
||||
plugins: [
|
||||
require('tailwindcss-themer')({
|
||||
defaultTheme: {
|
||||
// put the default values of any config you want themed
|
||||
// just as if you were to extend tailwind's theme like normal https://tailwindcss.com/docs/theme#extending-the-default-theme
|
||||
extend: {
|
||||
// colors is used here for demonstration purposes
|
||||
colors: {
|
||||
primary: 'red'
|
||||
}
|
||||
}
|
||||
},
|
||||
themes: [
|
||||
{
|
||||
// name your theme anything that could be a valid css class name
|
||||
// remember what you named your theme because you will use it as a class to enable the theme
|
||||
name: 'my-theme',
|
||||
name: 'dark',
|
||||
// put any overrides your theme has here
|
||||
// just as if you were to extend tailwind's theme like normal https://tailwindcss.com/docs/theme#extending-the-default-theme
|
||||
extend: {
|
||||
@ -35,8 +25,31 @@ module.exports = {
|
||||
"surface1": '#3F4242',
|
||||
"crust": '#0C0C0C',
|
||||
"purple": '#D946EF',
|
||||
"red": "#980C0C"
|
||||
|
||||
"red": "#980C0C",
|
||||
"neutral": "#bdbdbd",
|
||||
"contrast": "white",
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
// name your theme anything that could be a valid css class name
|
||||
// remember what you named your theme because you will use it as a class to enable the theme
|
||||
name: 'light',
|
||||
// put any overrides your theme has here
|
||||
// just as if you were to extend tailwind's theme like normal https://tailwindcss.com/docs/theme#extending-the-default-theme
|
||||
extend: {
|
||||
colors: {
|
||||
"primary": '#ebeaea',
|
||||
"secondary": '#e1e0e0',
|
||||
"overlay0": '#d7d5d5',
|
||||
"overlay1": '#cdcbcb',
|
||||
"surface0": '#c6c4c4',
|
||||
"surface1": '#c0bdbd',
|
||||
"crust": '#fafafa',
|
||||
"purple": '#D946EF',
|
||||
"red": "#e81304",
|
||||
"neutral": "gray",
|
||||
"contrast": "black",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user