cleanup theme, we use default in any case (#535)
This commit is contained in:
parent
715a060f2e
commit
cc60c92a3a
@ -1,25 +1,6 @@
|
|||||||
const colors = require('tailwindcss/colors');
|
|
||||||
|
|
||||||
function withOpacityValue(variable) {
|
|
||||||
return ({ opacityValue }) => {
|
|
||||||
if (opacityValue === undefined) {
|
|
||||||
return `rgb(var(${variable}))`;
|
|
||||||
}
|
|
||||||
return `rgb(var(${variable}) / ${opacityValue})`;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
darkMode: 'class',
|
darkMode: 'class',
|
||||||
content: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
|
content: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
|
||||||
theme: {
|
|
||||||
colors: {
|
|
||||||
...colors,
|
|
||||||
primary: withOpacityValue('--color-primary'),
|
|
||||||
secondary: withOpacityValue('--color-secondary'),
|
|
||||||
},
|
|
||||||
extend: {},
|
|
||||||
},
|
|
||||||
plugins: [require('daisyui')],
|
plugins: [require('daisyui')],
|
||||||
daisyui: {
|
daisyui: {
|
||||||
themes: ['light'],
|
themes: ['light'],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user