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 0f2e6f3..d7f6852 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 a172941..f98f450 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 }, }