Remove custom theme node to support in package

This commit is contained in:
Ariful Alam
2022-03-27 02:08:02 +06:00
parent f75eae4547
commit d00fa61b08
3 changed files with 25 additions and 28 deletions

View File

@@ -193,7 +193,6 @@ const config = {
// Custom theme // Custom theme
customTheme: { customTheme: {
procyon: {
primary: '#fc055b', primary: '#fc055b',
secondary: '#219aaf', secondary: '#219aaf',
accent: '#e8d03a', accent: '#e8d03a',
@@ -203,7 +202,6 @@ const config = {
'--rounded-btn': '3rem', '--rounded-btn': '3rem',
}, },
}, },
},
}; };
``` ```
@@ -234,7 +232,6 @@ module.exports = {
// ... // ...
themeConfig: { themeConfig: {
customTheme: { customTheme: {
procyon: {
primary: '#fc055b', primary: '#fc055b',
secondary: '#219aaf', secondary: '#219aaf',
accent: '#e8d03a', accent: '#e8d03a',
@@ -243,7 +240,6 @@ module.exports = {
'--rounded-box': '3rem', '--rounded-box': '3rem',
'--rounded-btn': '3rem', '--rounded-btn': '3rem',
}, },
},
// ... // ...
}, },
}; };

View File

@@ -137,7 +137,6 @@ const config = {
// Custom theme // Custom theme
customTheme: { customTheme: {
procyon: {
primary: '#fc055b', primary: '#fc055b',
secondary: '#219aaf', secondary: '#219aaf',
accent: '#e8d03a', accent: '#e8d03a',
@@ -147,7 +146,6 @@ const config = {
'--rounded-btn': '3rem', '--rounded-btn': '3rem',
}, },
}, },
},
}; };
export default config; export default config;

View File

@@ -8,6 +8,9 @@ export default {
plugins: [require('daisyui')], plugins: [require('daisyui')],
daisyui: { daisyui: {
logs: false, logs: false,
themes: [...config.themeConfig.themes, config.themeConfig.customTheme], themes: [
...config.themeConfig.themes,
{ procyon: config.themeConfig.customTheme },
],
}, },
}; };