daisyui 2.0.0-next.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -89
- package/dist/full.css +1 -111
- package/dist/styled.css +1 -2059
- package/dist/styled.js +1 -1
- package/dist/styled.rtl.js +1 -1
- package/dist/themes.css +1 -2
- package/dist/unstyled.css +1 -511
- package/dist/unstyled.js +1 -1
- package/dist/unstyled.rtl.js +1 -1
- package/dist/utilities-styled.js +1 -1
- package/dist/utilities-unstyled.js +1 -1
- package/dist/utilities.js +1 -1
- package/package.json +7 -9
- package/src/colors/colorNames.js +34 -0
- package/{colors → src}/colors/index.js +17 -18
- package/{colors → src/colors}/themes.js +274 -273
- package/{colors → src}/colors/windi.js +6 -6
- package/src/index.js +227 -0
- package/colors/colorNames.js +0 -35
- package/colors/colors/colorNames.js +0 -35
- package/colors/colors/themes.js +0 -881
- package/colors/index.js +0 -53
- package/colors/windi.js +0 -12
- package/index.js +0 -159
package/README.md
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
[![][logo-url]][docs-url]
|
|
3
|
+
[![][logo-url]][docs-url]
|
|
4
4
|
|
|
5
5
|
**Tailwind CSS Components**
|
|
6
6
|
Adds component classes like `btn`, `card` and more to Tailwind CSS
|
|
7
7
|
|
|
8
8
|
[ [See all components][docs-url] ]
|
|
9
|
-
|
|
10
|
-
[![][tweet]][tweet-url]
|
|
9
|
+
|
|
10
|
+
[![][tweet]][tweet-url]
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
|
-
[![][banner-url]][docs-url]
|
|
14
|
+
[![][banner-url]][docs-url]
|
|
15
15
|
|
|
16
|
-
# daisyUI
|
|
17
|
-
[![][build]][build-url] [![][npm]][npm-url] [![][number-of-components]][docs-url] [![][license]][license-url]
|
|
18
|
-
[![][dl]][npm-url] [![][stars]][gh-url] [![][commit]][gh-url]
|
|
16
|
+
# daisyUI 2.0
|
|
19
17
|
|
|
18
|
+
[![][build]][build-url] [![][npm]][npm-url] [![][number-of-components]][docs-url] [![][license]][license-url]
|
|
19
|
+
[![][dl]][npm-url] [![][stars]][gh-url] [![][commit]][gh-url]
|
|
20
20
|
|
|
21
21
|
- 👉 [ [See all components][docs-url] ]
|
|
22
22
|
- 📘 Documents: [daisyui.com][docs-url]
|
|
@@ -25,7 +25,8 @@ Adds component classes like `btn`, `card` and more to Tailwind CSS
|
|
|
25
25
|
|
|
26
26
|
---
|
|
27
27
|
|
|
28
|
-
## 🌼 Features
|
|
28
|
+
## 🌼 Features
|
|
29
|
+
|
|
29
30
|
<details>
|
|
30
31
|
<summary>
|
|
31
32
|
show / hide
|
|
@@ -50,7 +51,7 @@ Adds component classes like `btn`, `card` and more to Tailwind CSS
|
|
|
50
51
|
|
|
51
52
|
---
|
|
52
53
|
|
|
53
|
-
## 📀 Install now!
|
|
54
|
+
## 📀 Install now!
|
|
54
55
|
|
|
55
56
|
```bash
|
|
56
57
|
npm i daisyui
|
|
@@ -58,135 +59,158 @@ npm i daisyui
|
|
|
58
59
|
|
|
59
60
|
Then add daisyUI to your `tailwind.config.js`
|
|
60
61
|
[ [Read more][docs-url-install] ]
|
|
62
|
+
|
|
61
63
|
```js
|
|
62
64
|
module.exports = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
require('daisyui'),
|
|
66
|
-
],
|
|
67
|
-
|
|
68
|
-
}
|
|
65
|
+
plugins: [require("daisyui")],
|
|
66
|
+
};
|
|
69
67
|
```
|
|
70
68
|
|
|
71
|
-
|
|
72
69
|
<details>
|
|
73
70
|
<summary>
|
|
74
71
|
Or use a CDN
|
|
75
72
|
</summary>
|
|
76
73
|
|
|
74
|
+
Loading CSS files from CDN is not recommended for production. It's better to install Tailwind and daisyUI as Nodejs dependencies so you can config/customize everything, and purge unused styles.\*
|
|
77
75
|
|
|
78
|
-
Loading CSS files from CDN is not recommended for production. It's better to install Tailwind and daisyUI as Nodejs dependencies so you can config/customize everything, and purge unused styles.*
|
|
79
|
-
|
|
80
|
-
|
|
81
76
|
```html
|
|
82
|
-
<link
|
|
83
|
-
|
|
77
|
+
<link
|
|
78
|
+
href="https://cdn.jsdelivr.net/npm/daisyui@2.0.2/dist/full.css"
|
|
79
|
+
rel="stylesheet"
|
|
80
|
+
type="text/css"
|
|
81
|
+
/>
|
|
82
|
+
<link
|
|
83
|
+
href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2/dist/tailwind.min.css"
|
|
84
|
+
rel="stylesheet"
|
|
85
|
+
type="text/css"
|
|
86
|
+
/>
|
|
84
87
|
```
|
|
85
88
|
|
|
86
89
|
</details>
|
|
87
90
|
|
|
88
91
|
---
|
|
89
|
-
|
|
90
|
-
|
|
92
|
+
|
|
93
|
+
## 🚀 Use
|
|
94
|
+
|
|
95
|
+
Use component classes to build your UI.
|
|
96
|
+
|
|
91
97
|
```html
|
|
92
98
|
<a class="btn">Hello!</a>
|
|
93
99
|
```
|
|
100
|
+
|
|
94
101
|
```html
|
|
95
|
-
<input type="checkbox" class="checkbox"/>
|
|
102
|
+
<input type="checkbox" class="checkbox" />
|
|
96
103
|
```
|
|
104
|
+
|
|
97
105
|
```html
|
|
98
|
-
<input type="checkbox" class="toggle"/>
|
|
106
|
+
<input type="checkbox" class="toggle" />
|
|
99
107
|
```
|
|
108
|
+
|
|
100
109
|
```html
|
|
101
|
-
<div class="alert alert-success">
|
|
102
|
-
Message sent successfully
|
|
103
|
-
</div>
|
|
110
|
+
<div class="alert alert-success">Message sent successfully</div>
|
|
104
111
|
```
|
|
105
112
|
|
|
106
113
|
👉 [See all components][docs-url]
|
|
107
|
-
🎲 [Try it online][tw-play-url]
|
|
114
|
+
🎲 [Try it online][tw-play-url]
|
|
108
115
|
|
|
109
116
|
---
|
|
110
117
|
|
|
111
|
-
## 📘 Documents + Examples
|
|
118
|
+
## 📘 Documents + Examples
|
|
119
|
+
|
|
112
120
|
See the official site:
|
|
113
121
|
[ [daisyui.com][docs-url] ↗︎ ]
|
|
114
122
|
|
|
115
123
|
---
|
|
116
124
|
|
|
117
|
-
## 🤝 Contributing
|
|
125
|
+
## 🤝 Contributing
|
|
126
|
+
|
|
118
127
|
Read the documents for more info:
|
|
119
128
|
[ [Read contribution guide](https://github.com/saadeghi/daisyui/blob/master/.github/CONTRIBUTING.md) ]
|
|
120
129
|
|
|
121
130
|
---
|
|
131
|
+
|
|
122
132
|
## List of Components
|
|
133
|
+
|
|
123
134
|
<details>
|
|
124
135
|
<summary>
|
|
125
136
|
show / hide
|
|
126
137
|
</summary>
|
|
127
138
|
|
|
128
|
-
-
|
|
129
|
-
- [x]
|
|
130
|
-
- [
|
|
131
|
-
- [x]
|
|
132
|
-
- [x]
|
|
133
|
-
|
|
134
|
-
-
|
|
135
|
-
- [x]
|
|
136
|
-
- [x]
|
|
137
|
-
- [x]
|
|
138
|
-
- [ ]
|
|
139
|
-
- [
|
|
140
|
-
- [x] Card
|
|
141
|
-
- [
|
|
142
|
-
- [
|
|
143
|
-
- [
|
|
144
|
-
- [
|
|
145
|
-
- [
|
|
146
|
-
- [
|
|
147
|
-
- [x]
|
|
148
|
-
- [ ]
|
|
149
|
-
- [x]
|
|
150
|
-
- [
|
|
151
|
-
- [x]
|
|
152
|
-
- [x]
|
|
153
|
-
- [
|
|
139
|
+
- Actions
|
|
140
|
+
- [x] Button
|
|
141
|
+
- [x] Dropdown
|
|
142
|
+
- [x] Modal
|
|
143
|
+
- [x] Swap
|
|
144
|
+
|
|
145
|
+
- Data display
|
|
146
|
+
- [x] Alert
|
|
147
|
+
- [x] Avatar
|
|
148
|
+
- [x] Badge
|
|
149
|
+
- [ ] Banner
|
|
150
|
+
- [ ] Calendar
|
|
151
|
+
- [x] Card
|
|
152
|
+
- [x] Carousel
|
|
153
|
+
- [ ] Chat bubble
|
|
154
|
+
- [x] Collapse
|
|
155
|
+
- [ ] Comment
|
|
156
|
+
- [x] Countdown
|
|
157
|
+
- [ ] Empty placeholder
|
|
158
|
+
- [x] Kbd
|
|
159
|
+
- [ ] Loading
|
|
160
|
+
- [x] Progress
|
|
161
|
+
- [x] Radial progress
|
|
162
|
+
- [x] Stat
|
|
163
|
+
- [x] Table
|
|
164
|
+
- [ ] Tag
|
|
165
|
+
- [ ] Timeline
|
|
166
|
+
- [ ] Toast
|
|
167
|
+
- [x] Tooltip
|
|
168
|
+
- [ ] Treeview
|
|
169
|
+
|
|
170
|
+
- Data input
|
|
154
171
|
- [x] Checkbox
|
|
172
|
+
- [x] Text input
|
|
155
173
|
- [x] Radio
|
|
156
|
-
- [x] Range
|
|
174
|
+
- [x] Range
|
|
157
175
|
- [x] Rating
|
|
176
|
+
- [x] Select
|
|
177
|
+
- [x] Textarea
|
|
158
178
|
- [x] Toggle
|
|
159
179
|
- [ ] Upload
|
|
160
|
-
|
|
161
|
-
-
|
|
162
|
-
- [x]
|
|
163
|
-
- [x]
|
|
164
|
-
- [
|
|
165
|
-
- [x]
|
|
166
|
-
- [
|
|
180
|
+
|
|
181
|
+
- Layout
|
|
182
|
+
- [x] Artboard
|
|
183
|
+
- [x] Button group
|
|
184
|
+
- [x] Divider
|
|
185
|
+
- [x] Drawer
|
|
186
|
+
- [x] Footer
|
|
187
|
+
- [x] Hero
|
|
188
|
+
- [x] Indicator
|
|
189
|
+
- [x] Input group
|
|
190
|
+
- [x] Mask
|
|
191
|
+
- [x] Stack
|
|
192
|
+
|
|
193
|
+
- Navigation
|
|
194
|
+
- [ ] App bar
|
|
195
|
+
- [x] Breadcrumbs
|
|
196
|
+
- [x] Link
|
|
197
|
+
- [x] Menu
|
|
198
|
+
- [x] Navbar
|
|
199
|
+
- [x] Pagination
|
|
200
|
+
- [x] Steps
|
|
201
|
+
- [x] Tab
|
|
202
|
+
|
|
203
|
+
- Mockup
|
|
167
204
|
- [ ] Browser
|
|
168
205
|
- [x] Code
|
|
169
206
|
- [x] Phone
|
|
170
207
|
- [x] Window
|
|
171
|
-
|
|
172
|
-
- [x] Mask
|
|
173
|
-
- [x] Modal
|
|
174
|
-
- [x] Pagination
|
|
175
|
-
- [x] Progress
|
|
176
|
-
- [x] Stack
|
|
177
|
-
- [x] Stat
|
|
178
|
-
- [x] Steps
|
|
179
|
-
- [ ] Tag
|
|
180
|
-
- [x] Table
|
|
181
|
-
- [x] Tabs
|
|
182
|
-
- [ ] Timeline
|
|
183
|
-
- [ ] Toast
|
|
184
|
-
- [x] Tooltip
|
|
185
|
-
- [ ] Treeview
|
|
208
|
+
|
|
186
209
|
|
|
187
210
|
</details>
|
|
188
211
|
|
|
189
212
|
---
|
|
213
|
+
|
|
190
214
|
## Featured on:
|
|
191
215
|
|
|
192
216
|
<details>
|
|
@@ -227,18 +251,16 @@ Read the documents for more info:
|
|
|
227
251
|
</details>
|
|
228
252
|
|
|
229
253
|
---
|
|
230
|
-
|
|
254
|
+
|
|
231
255
|
<div align="center">
|
|
232
256
|
|
|
233
257
|
|
|
234
258
|
༼ つ ◕_◕ ༽つ Please share
|
|
235
259
|
|
|
236
|
-
[![][tweet]][tweet-url]
|
|
260
|
+
[![][tweet]][tweet-url]
|
|
237
261
|
|
|
238
262
|
</div>
|
|
239
263
|
|
|
240
|
-
|
|
241
|
-
|
|
242
264
|
[install-size]: https://badgen.net/bundlephobia/minzip/daisyui?label=bundle%20size&color=green
|
|
243
265
|
[build]: https://badgen.net/github/checks/saadeghi/daisyui?label=build
|
|
244
266
|
[npm]: https://badgen.net/github/tag/saadeghi/daisyui?label=version&color=green
|
|
@@ -247,7 +269,6 @@ Read the documents for more info:
|
|
|
247
269
|
[license]: https://badgen.net/github/license/saadeghi/daisyui?color=green
|
|
248
270
|
[stars]: https://badgen.net/github/stars/saadeghi/daisyui?color=green
|
|
249
271
|
[tweet]: https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Fgithub.com%2Fsaadeghi%2Fdaisyui
|
|
250
|
-
|
|
251
272
|
[install-size-url]: https://bundlephobia.com/result?p=daisyui
|
|
252
273
|
[license-url]: https://github.com/saadeghi/daisyui/blob/master/LICENSE
|
|
253
274
|
[npm-url]: https://www.npmjs.com/package/daisyui
|
|
@@ -259,11 +280,8 @@ Read the documents for more info:
|
|
|
259
280
|
[jsdeliver-url]: https://www.jsdelivr.com/package/npm/daisyui
|
|
260
281
|
[build-url]: https://github.com/saadeghi/daisyui/actions
|
|
261
282
|
[tweet-url]: https://twitter.com/intent/tweet?text=daisyUI%20%0D%0AUI%20Components%20for%20Tailwind%20CSS%20%0D%0Ahttps://github.com/saadeghi/daisyui
|
|
262
|
-
[number-of-components]: https://badgen.net/badge/total%20components/
|
|
263
|
-
|
|
283
|
+
[number-of-components]: https://badgen.net/badge/total%20components/45/green
|
|
264
284
|
[docs-url-install]: https://daisyui.com/docs/install
|
|
265
285
|
[docs-url]: https://daisyui.com/
|
|
266
286
|
[logo-url]: https://raw.githubusercontent.com/saadeghi/files/main/daisyui/logo-4.svg
|
|
267
287
|
[banner-url]: https://raw.githubusercontent.com/saadeghi/files/main/daisyui/card-3.png
|
|
268
|
-
|
|
269
|
-
|