From 48d8b4f958311c8c0f2e70e271cf70c43a08700d Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Tue, 29 Oct 2024 10:17:33 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=90=20Updates=20tailwind=20config=20to?= =?UTF-8?q?=20import=20daisyui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/tailwind.config.js | 55 ++++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/app/tailwind.config.js b/app/tailwind.config.js index a83e5a6..bba3d81 100644 --- a/app/tailwind.config.js +++ b/app/tailwind.config.js @@ -1,29 +1,32 @@ +import daisyui from 'daisyui'; +import { light, dark } from 'daisyui/src/theming/themes'; + /** @type {import('tailwindcss').Config} */ export default { - content: ['./src/**/*.{html,js,ts,svelte}'], - theme: { - extend: {} - }, - plugins: [require('daisyui')], - daisyui: { - themes: [ - { - light: { - ...require('daisyui/src/theming/themes')['light'], - primary: '#00bfff', - accent: '#3c00ff', - 'base-content': 'oklch(0.3 0.012 256)' - } - }, - { - dark: { - ...require('daisyui/src/theming/themes')['dark'], - primary: '#00bfff', - accent: '#3c00ff', - 'base-content': 'white' - } - } - ], - darkTheme: 'dark' - } + content: ['./src/**/*.{html,js,ts,svelte}'], + theme: { + extend: {} + }, + plugins: [daisyui], + daisyui: { + themes: [ + { + light: { + ...light, + primary: '#00bfff', + accent: '#3c00ff', + 'base-content': 'oklch(0.3 0.012 256)' + } + }, + { + dark: { + ...dark, + primary: '#00bfff', + accent: '#3c00ff', + 'base-content': 'white' + } + } + ], + darkTheme: 'dark' + } };