UNPKG

@catppuccin/daisyui

Version:

🌼 Soothing pastel theme for daisyui

20 lines (17 loc) • 749 B
import { FlavorName, AccentName, MonochromaticName } from '@catppuccin/palette'; export { AccentName, FlavorName, MonochromaticName } from '@catppuccin/palette'; import { CustomTheme } from 'daisyui'; interface ColorOptions { primary: AccentName; secondary: AccentName | MonochromaticName; accent: AccentName; neutral: MonochromaticName; success: 'green'; warning: 'yellow'; error: 'red'; info: AccentName; } type CustomColorOptions = Partial<Omit<ColorOptions, 'success' | 'warning' | 'error'>>; declare function createFlavor(theme: FlavorName, accent?: AccentName): CustomTheme; declare function createFlavor(theme: FlavorName, customColors?: CustomColorOptions): CustomTheme; export { createFlavor as default };