From c8a41bd29f5b60dc79c6fc623c27d1fbba700408 Mon Sep 17 00:00:00 2001 From: kunish Date: Sat, 2 Sep 2023 02:22:01 +0800 Subject: [PATCH] fix: some themes is overriding global font-family --- src/index.css | 4 +++- tailwind.config.ts | 34 +--------------------------------- 2 files changed, 4 insertions(+), 34 deletions(-) diff --git a/src/index.css b/src/index.css index 0f2e6f3a..d7f6852e 100644 --- a/src/index.css +++ b/src/index.css @@ -10,7 +10,9 @@ src: url('assets/Twemoji.Mozilla.ttf') format('truetype'); } -:root { +:root, +[data-theme='wireframe'], +[data-theme='cyberpunk'] { font-family: 'Fira Sans', 'Twemoji Mozilla'; } diff --git a/tailwind.config.ts b/tailwind.config.ts index a1729415..f98f4502 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,37 +1,5 @@ export default { content: ['./src/**/*.{css,tsx}'], plugins: [require('daisyui')], - daisyui: { - themes: [ - 'light', - 'dark', - 'cupcake', - 'bumblebee', - 'emerald', - 'corporate', - 'synthwave', - 'retro', - 'cyberpunk', - 'valentine', - 'halloween', - 'garden', - 'forest', - 'aqua', - 'lofi', - 'pastel', - 'fantasy', - 'wireframe', - 'black', - 'luxury', - 'dracula', - 'cmyk', - 'autumn', - 'business', - 'acid', - 'lemonade', - 'night', - 'coffee', - 'winter', - ], - }, + daisyui: { themes: true }, }