cleanup theme, we use default in any case (#535)

This commit is contained in:
Deepak Prabhakara 2024-03-08 15:17:34 +00:00 committed by GitHub
parent 715a060f2e
commit cc60c92a3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'],