forked from saadeghi/daisyui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
122 lines (116 loc) · 3.5 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import type plugin from "tailwindcss/plugin"
declare const daisyui: ReturnType<typeof plugin>
export default daisyui
// todo - the keys of a theme could be typed here? see: https://daisyui.com/docs/themes/#-5
/**
* @link https://daisyui.com/docs/themes/#-4
*/
type CustomTheme = Record<string, Record<string, string>>
/**
* https://daisyui.com/docs/themes/#
*/
type Theme =
| "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"
| "dim"
| "nord"
| "sunset"
interface DaisyUIConfig {
/**
* If it's true, all themes will be included. If it's false, only light and dark themes will be available.
* If it's an array, only themes in the array will be included and the first theme will be the default theme.
* Read more about [themes](https://daisyui.com/docs/themes/).
*
* @default false
*/
themes?: boolean | (Theme | CustomTheme)[]
/**
* Allows us to pick another theme for the system's auto dark mode. By default, dark theme
* (or a custom theme named dark) will be the default theme if no theme is specified and
* the user is using dark mode on their system.
* With this config, you can set another theme to be the default dark mode theme.
*
* @default 'dark'
*/
darkTheme?: string
/**
* If it's true, a [few base styles](https://github.com/saadeghi/daisyui/blob/master/src/base) will be added.
*
* @default true
*/
base?: boolean
/**
* If it's true, components will have colors and style, so you won't need to design anything.
* If it's false, components will have no color and no visual style, so you can design your own style
* on a basic skeleton.
*
* @default true
*/
styled?: boolean
/**
* If it's true, [responsive and utility classes](https://github.com/saadeghi/daisyui/tree/master/src/utilities) will be added.
*
* @default true
*/
utils?: boolean
/**
* If it's true, your theme will be right-to-left. You need to add `dir='rtl'` to your body tag.
* If you're using daisyUI with RTL option, I suggest using [tailwindcss-flip](https://github.com/cvrajeesh/tailwindcss-flip)
* plugin to flip all your Tailwind utilities automatically.
*
* @default false
*/
rtl?: boolean
/**
* Adds a prefix to class name for all daisyUI classes (including component classes, modifier classes and responsive
* classes). For example, `btn` will become `prefix-btn`. If you're using a second CSS library that has similar
* class names, you can use this config to avoid conflicts. Utility classes like color names (e.g. `bg-primary`)
* or border-radius (e.g. `rounded-box`) will not be affected by this config because they're being added
* as extensions to Tailwind CSS classes. If you use daisyUI `prefix` option (like `daisy-`) and
* Tailwind CSS `prefix` option (like `tw-`) together, classnames will be prefixed like
* this: `tw-daisy-btn`.
*
* @default ''
*/
prefix?: string
/**
* If it's true, daisyUI shows logs in the terminal while CSS is building.
*
* @default true
*/
logs?: boolean
/**
* The element that receives theme color CSS variables
*
* @default ':root'
*/
themeRoot?: string
}
export type { DaisyUIConfig as Config, Theme, CustomTheme }