From d00fa61b0888b19dddcc2e90512758d5b7d37edb Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sun, 27 Mar 2022 02:08:02 +0600 Subject: [PATCH] Remove custom theme node to support in package --- README.md | 32 ++++++++++++++------------------ gitprofile.config.js | 16 +++++++--------- tailwind.config.js | 5 ++++- 3 files changed, 25 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index fe8102e..4eb3316 100644 --- a/README.md +++ b/README.md @@ -193,15 +193,13 @@ const config = { // Custom theme customTheme: { - procyon: { - primary: '#fc055b', - secondary: '#219aaf', - accent: '#e8d03a', - neutral: '#2A2730', - 'base-100': '#E3E3ED', - '--rounded-box': '3rem', - '--rounded-btn': '3rem', - }, + primary: '#fc055b', + secondary: '#219aaf', + accent: '#e8d03a', + neutral: '#2A2730', + 'base-100': '#E3E3ED', + '--rounded-box': '3rem', + '--rounded-btn': '3rem', }, }, }; @@ -234,15 +232,13 @@ module.exports = { // ... themeConfig: { customTheme: { - procyon: { - primary: '#fc055b', - secondary: '#219aaf', - accent: '#e8d03a', - neutral: '#2A2730', - 'base-100': '#E3E3ED', - '--rounded-box': '3rem', - '--rounded-btn': '3rem', - }, + primary: '#fc055b', + secondary: '#219aaf', + accent: '#e8d03a', + neutral: '#2A2730', + 'base-100': '#E3E3ED', + '--rounded-box': '3rem', + '--rounded-btn': '3rem', }, // ... }, diff --git a/gitprofile.config.js b/gitprofile.config.js index 96b0d34..ba8d455 100644 --- a/gitprofile.config.js +++ b/gitprofile.config.js @@ -137,15 +137,13 @@ const config = { // Custom theme customTheme: { - procyon: { - primary: '#fc055b', - secondary: '#219aaf', - accent: '#e8d03a', - neutral: '#2A2730', - 'base-100': '#E3E3ED', - '--rounded-box': '3rem', - '--rounded-btn': '3rem', - }, + primary: '#fc055b', + secondary: '#219aaf', + accent: '#e8d03a', + neutral: '#2A2730', + 'base-100': '#E3E3ED', + '--rounded-box': '3rem', + '--rounded-btn': '3rem', }, }, }; diff --git a/tailwind.config.js b/tailwind.config.js index ad4b955..1761a5e 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -8,6 +8,9 @@ export default { plugins: [require('daisyui')], daisyui: { logs: false, - themes: [...config.themeConfig.themes, config.themeConfig.customTheme], + themes: [ + ...config.themeConfig.themes, + { procyon: config.themeConfig.customTheme }, + ], }, };