wispcss 0.0.1 → 1.0.4
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/CHANGELOG.md +74 -0
- package/LICENSE +49 -0
- package/README.md +386 -0
- package/README.zh-CN.md +385 -0
- package/dist/wispcss.css +45823 -0
- package/dist/wispcss.min.css +2 -0
- package/examples/add-h2-ids.cjs +284 -0
- package/examples/demo-actions.html +188 -0
- package/examples/demo-alarm.html +219 -0
- package/examples/demo-animation.html +399 -0
- package/examples/demo-aura.html +195 -0
- package/examples/demo-avatar.html +279 -0
- package/examples/demo-background.html +284 -0
- package/examples/demo-badge.html +398 -0
- package/examples/demo-blob.html +307 -0
- package/examples/demo-blockquote.html +190 -0
- package/examples/demo-bookmark.html +243 -0
- package/examples/demo-breadcrumb.html +179 -0
- package/examples/demo-btns.html +349 -0
- package/examples/demo-bubble.html +215 -0
- package/examples/demo-buoy.html +187 -0
- package/examples/demo-button-icon.html +231 -0
- package/examples/demo-button-link.html +177 -0
- package/examples/demo-button.html +361 -0
- package/examples/demo-callout.html +601 -0
- package/examples/demo-check.html +323 -0
- package/examples/demo-code.html +212 -0
- package/examples/demo-color.html +545 -0
- package/examples/demo-comment.html +510 -0
- package/examples/demo-deform.html +229 -0
- package/examples/demo-dialog.html +932 -0
- package/examples/demo-divider.html +208 -0
- package/examples/demo-drawer.html +623 -0
- package/examples/demo-dropmenu.html +382 -0
- package/examples/demo-droppanel.html +354 -0
- package/examples/demo-ellipsis.html +145 -0
- package/examples/demo-emphasis.html +146 -0
- package/examples/demo-empty.html +112 -0
- package/examples/demo-entry.html +219 -0
- package/examples/demo-field.html +359 -0
- package/examples/demo-file.html +206 -0
- package/examples/demo-flag.html +225 -0
- package/examples/demo-form.html +201 -0
- package/examples/demo-gilt.html +170 -0
- package/examples/demo-heading.html +93 -0
- package/examples/demo-icon.html +164 -0
- package/examples/demo-input.html +300 -0
- package/examples/demo-kbd.html +202 -0
- package/examples/demo-lamp.html +248 -0
- package/examples/demo-link.html +142 -0
- package/examples/demo-normalize.html +366 -0
- package/examples/demo-otp.html +277 -0
- package/examples/demo-pagination.html +562 -0
- package/examples/demo-position.html +205 -0
- package/examples/demo-poster.html +384 -0
- package/examples/demo-pre - /345/211/257/346/234/254.html" +169 -0
- package/examples/demo-pre.html +205 -0
- package/examples/demo-preset.html +344 -0
- package/examples/demo-progress.html +303 -0
- package/examples/demo-range.html +211 -0
- package/examples/demo-rank.html +270 -0
- package/examples/demo-rating.html +251 -0
- package/examples/demo-reset.html +105 -0
- package/examples/demo-segment.html +436 -0
- package/examples/demo-select.html +332 -0
- package/examples/demo-shadow.html +152 -0
- package/examples/demo-shell.html +377 -0
- package/examples/demo-shimmer.html +217 -0
- package/examples/demo-size.html +149 -0
- package/examples/demo-skeleton.html +143 -0
- package/examples/demo-sketch.html +213 -0
- package/examples/demo-spacer.html +150 -0
- package/examples/demo-spinner.html +220 -0
- package/examples/demo-stats.html +165 -0
- package/examples/demo-status.html +212 -0
- package/examples/demo-step.html +240 -0
- package/examples/demo-styles.css +14 -0
- package/examples/demo-summary.html +128 -0
- package/examples/demo-swatch.html +253 -0
- package/examples/demo-switch.html +223 -0
- package/examples/demo-table.html +339 -0
- package/examples/demo-tag.html +318 -0
- package/examples/demo-text.html +91 -0
- package/examples/demo-theme.html +167 -0
- package/examples/demo-tools.html +152 -0
- package/examples/demo-transition.html +169 -0
- package/examples/demo-tree.html +929 -0
- package/examples/demo-underline.html +76 -0
- package/examples/demo-utils.js +131 -0
- package/examples/demo-validate.html +120 -0
- package/examples/index.html +149 -0
- package/package.json +72 -8
- package/script-gen-color.js +148 -0
- package/script-mini.js +78 -0
- package/script-prefix.js +398 -0
- package/skill.md +575 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
<link id="wispcss-css" rel="stylesheet" href="../dist/wispcss.css">
|
|
8
|
+
<link rel="stylesheet" href="./demo-styles.css">
|
|
9
|
+
<title>Blob - WispCSS Demo</title>
|
|
10
|
+
<style>
|
|
11
|
+
.blob-list {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-wrap: wrap;
|
|
14
|
+
gap: 16px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.blob-item {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 4px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.blob-item>span {
|
|
25
|
+
font-size: .7rem;
|
|
26
|
+
color: #666;
|
|
27
|
+
text-align: center;
|
|
28
|
+
word-break: break-all;
|
|
29
|
+
max-width: 100px;
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
32
|
+
</head>
|
|
33
|
+
|
|
34
|
+
<body>
|
|
35
|
+
<h1>Blob Component</h1>
|
|
36
|
+
<p>Organic blob shapes with morphing animation. Combine <code>blob-{shape}</code> with size (<code>w-* h-*</code>),
|
|
37
|
+
color (<code>bg-*</code>), and animation (<code>animate-blob-morph</code>) utilities.</p>
|
|
38
|
+
|
|
39
|
+
<h2>Notes</h2>
|
|
40
|
+
<div class="section">
|
|
41
|
+
<ul>
|
|
42
|
+
<li>Use <code>blob-{shape}</code> for a static organic shape.</li>
|
|
43
|
+
<li>Add <code>animate-blob-morph</code> (or variants <code>animate-blob-morph1</code> ~
|
|
44
|
+
<code>animate-blob-morph4</code>) for continuous morphing.</li>
|
|
45
|
+
<li>Append <code>-{ms}</code> for custom duration, e.g. <code>animate-blob-morph3000</code>.</li>
|
|
46
|
+
<li>Shapes are clip-path-free — simply irregular <code>border-radius</code> values, fully compatible with
|
|
47
|
+
<code>overflow:hidden</code> for images.</li>
|
|
48
|
+
</ul>
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<h2 id="shapes">All shapes</h2>
|
|
54
|
+
<div class="section">
|
|
55
|
+
<div class="blob-list">
|
|
56
|
+
<div class="blob-item">
|
|
57
|
+
<div class="blob-circle w-20 h-20 bg-red-500 flex-center text-white text-sm font-bold">circle</div>
|
|
58
|
+
<span>blob-circle</span>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="blob-item">
|
|
61
|
+
<div class="blob-triangle w-20 h-20 bg-orange-500 flex-center text-white text-sm font-bold">tri</div>
|
|
62
|
+
<span>blob-triangle</span>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="blob-item">
|
|
65
|
+
<div class="blob-diamond w-20 h-20 bg-amber-500 flex-center text-white text-sm font-bold">dmd</div>
|
|
66
|
+
<span>blob-diamond</span>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="blob-item">
|
|
69
|
+
<div class="blob-oval w-20 h-20 bg-yellow-500 flex-center text-white text-sm font-bold">oval</div>
|
|
70
|
+
<span>blob-oval</span>
|
|
71
|
+
</div>
|
|
72
|
+
<div class="blob-item">
|
|
73
|
+
<div class="blob-tent w-20 h-20 bg-green-500 flex-center text-white text-sm font-bold">tent</div>
|
|
74
|
+
<span>blob-tent</span>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="blob-item">
|
|
77
|
+
<div class="blob-shield w-20 h-20 bg-teal-500 flex-center text-white text-sm font-bold">shld</div>
|
|
78
|
+
<span>blob-shield</span>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="blob-item">
|
|
81
|
+
<div class="blob-pebble w-20 h-20 bg-blue-500 flex-center text-white text-sm font-bold">peb</div>
|
|
82
|
+
<span>blob-pebble</span>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="blob-item">
|
|
85
|
+
<div class="blob-amoeba w-20 h-20 bg-purple-500 flex-center text-white text-sm font-bold">amo</div>
|
|
86
|
+
<span>blob-amoeba</span>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="blob-item">
|
|
89
|
+
<div class="blob-droplet w-20 h-20 bg-pink-500 flex-center text-white text-sm font-bold">drp</div>
|
|
90
|
+
<span>blob-droplet</span>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="blob-item">
|
|
93
|
+
<div class="blob-kidney w-20 h-20 bg-rose-500 flex-center text-white text-sm font-bold">kid</div>
|
|
94
|
+
<span>blob-kidney</span>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="blob-item">
|
|
97
|
+
<div class="blob-burger w-20 h-20 bg-fuchsia-500 flex-center text-white text-sm font-bold">brg</div>
|
|
98
|
+
<span>blob-burger</span>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="blob-item">
|
|
101
|
+
<div class="blob-leaf w-20 h-20 bg-lime-500 flex-center text-white text-sm font-bold">leaf</div>
|
|
102
|
+
<span>blob-leaf</span>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="blob-item">
|
|
105
|
+
<div class="blob-petal w-20 h-20 bg-sky-500 flex-center text-white text-sm font-bold">pet</div>
|
|
106
|
+
<span>blob-petal</span>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="blob-item">
|
|
109
|
+
<div class="blob-olive w-20 h-20 bg-violet-500 flex-center text-white text-sm font-bold">olv</div>
|
|
110
|
+
<span>blob-olive</span>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="blob-item">
|
|
113
|
+
<div class="blob-ellipse w-20 h-20 bg-indigo-500 flex-center text-white text-sm font-bold">ell</div>
|
|
114
|
+
<span>blob-ellipse</span>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<h2 id="morph">Morph animation</h2>
|
|
120
|
+
<div class="section">
|
|
121
|
+
<p>4 variants are available in addition to the default morph.</p>
|
|
122
|
+
<div class="blob-list">
|
|
123
|
+
<div class="blob-item">
|
|
124
|
+
<div class="blob-circle w-20 h-20 bg-red-500 flex-center text-white text-sm font-bold animate-blob-morph">def
|
|
125
|
+
</div>
|
|
126
|
+
<span>animate-blob-morph</span>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="blob-item">
|
|
129
|
+
<div class="blob-triangle w-20 h-20 bg-orange-500 flex-center text-white text-sm font-bold animate-blob-morph1">
|
|
130
|
+
v1</div>
|
|
131
|
+
<span>animate-blob-morph1</span>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="blob-item">
|
|
134
|
+
<div class="blob-diamond w-20 h-20 bg-amber-500 flex-center text-white text-sm font-bold animate-blob-morph2">v2
|
|
135
|
+
</div>
|
|
136
|
+
<span>animate-blob-morph2</span>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="blob-item">
|
|
139
|
+
<div class="blob-oval w-20 h-20 bg-yellow-500 flex-center text-white text-sm font-bold animate-blob-morph3">v3
|
|
140
|
+
</div>
|
|
141
|
+
<span>animate-blob-morph3</span>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="blob-item">
|
|
144
|
+
<div class="blob-tent w-20 h-20 bg-green-500 flex-center text-white text-sm font-bold animate-blob-morph4">v4
|
|
145
|
+
</div>
|
|
146
|
+
<span>animate-blob-morph4</span>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
<h2 id="dynamic-duration">Dynamic duration</h2>
|
|
152
|
+
<p>Multiple time formats are supported:</p>
|
|
153
|
+
<ul>
|
|
154
|
+
<li>1. Integer value, e.g. <code>*-3000</code> (3000ms)</li>
|
|
155
|
+
<li>2. Bracketed integer, e.g. <code>*-[3000]</code> (3000ms)</li>
|
|
156
|
+
<li>3. Bracketed time string, e.g. <code>*-[4s]</code>, <code>*-[2000ms]</code></li>
|
|
157
|
+
</ul>
|
|
158
|
+
<div class="section">
|
|
159
|
+
<div class="blob-list">
|
|
160
|
+
<div class="blob-item">
|
|
161
|
+
<div class="blob-circle w-20 h-20 bg-sky-500 flex-center text-white text-sm font-bold animate-blob-morph-2000">
|
|
162
|
+
2s</div>
|
|
163
|
+
<span>animate-blob-morph-2000</span>
|
|
164
|
+
</div>
|
|
165
|
+
<div class="blob-item">
|
|
166
|
+
<div
|
|
167
|
+
class="blob-triangle w-20 h-20 bg-violet-500 flex-center text-white text-sm font-bold animate-blob-morph1-3000">
|
|
168
|
+
3s</div>
|
|
169
|
+
<span>animate-blob-morph1-3000</span>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="blob-item">
|
|
172
|
+
<div
|
|
173
|
+
class="blob-diamond w-20 h-20 bg-pink-500 flex-center text-white text-sm font-bold animate-blob-morph2-5000">
|
|
174
|
+
5s</div>
|
|
175
|
+
<span>animate-blob-morph2-5000</span>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="blob-item">
|
|
178
|
+
<div class="blob-oval w-20 h-20 bg-indigo-500 flex-center text-white text-sm font-bold animate-blob-morph-6000">
|
|
179
|
+
6s</div>
|
|
180
|
+
<span>animate-blob-morph-6000</span>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="blob-item">
|
|
183
|
+
<div
|
|
184
|
+
class="blob-circle w-20 h-20 bg-emerald-500 flex-center text-white text-sm font-bold animate-blob-morph-[4s]">
|
|
185
|
+
[4s]</div>
|
|
186
|
+
<span>animate-blob-morph-[4s]</span>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
<h2 id="color-variants">Color variants</h2>
|
|
192
|
+
<p>Multiple color formats are supported:</p>
|
|
193
|
+
<ul>
|
|
194
|
+
<li>1. Theme semantic colors, e.g. <code>*-error</code>, <code>*-error-hover</code></li>
|
|
195
|
+
<li>2. Tailwind built-in colors, e.g. <code>*-indigo-500</code></li>
|
|
196
|
+
<li>3. Raw color values, e.g. <code>*-[#ff0000]</code></li>
|
|
197
|
+
<li>4. CSS named colors, e.g. <code>*-[red]</code>, <code>*-[green]</code></li>
|
|
198
|
+
</ul>
|
|
199
|
+
<div class="section">
|
|
200
|
+
<div class="blob-list">
|
|
201
|
+
<div class="blob-item">
|
|
202
|
+
<div class="blob-circle w-20 h-20 bg-primary flex-center text-primary-contrast text-sm font-bold">prim</div>
|
|
203
|
+
<span>bg-primary</span>
|
|
204
|
+
</div>
|
|
205
|
+
<div class="blob-item">
|
|
206
|
+
<div class="blob-triangle w-20 h-20 bg-error flex-center text-error-contrast text-sm font-bold">err</div>
|
|
207
|
+
<span>bg-error</span>
|
|
208
|
+
</div>
|
|
209
|
+
<div class="blob-item">
|
|
210
|
+
<div class="blob-diamond w-20 h-20 bg-success flex-center text-success-contrast text-sm font-bold">ok</div>
|
|
211
|
+
<span>bg-success</span>
|
|
212
|
+
</div>
|
|
213
|
+
<div class="blob-item">
|
|
214
|
+
<div class="blob-oval w-20 h-20 bg-info flex-center text-info-contrast text-sm font-bold">info</div>
|
|
215
|
+
<span>bg-info</span>
|
|
216
|
+
</div>
|
|
217
|
+
<div class="blob-item">
|
|
218
|
+
<div class="blob-tent w-20 h-20 bg-warning flex-center text-warning-contrast text-sm font-bold">warn</div>
|
|
219
|
+
<span>bg-warning</span>
|
|
220
|
+
</div>
|
|
221
|
+
<div class="blob-item">
|
|
222
|
+
<div class="blob-shield w-20 h-20 bg-[#ff00ff] flex-center text-white text-sm font-bold">raw</div>
|
|
223
|
+
<span>bg-[#ff00ff]</span>
|
|
224
|
+
</div>
|
|
225
|
+
<div class="blob-item">
|
|
226
|
+
<div
|
|
227
|
+
class="blob-pebble w-20 h-20 bg-gradient-to-br from-pink-500 to-violet-500 flex-center text-white text-sm font-bold">
|
|
228
|
+
grad</div>
|
|
229
|
+
<span>bg-gradient</span>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
|
|
234
|
+
<h2 id="sizes">Size variants</h2>
|
|
235
|
+
<div class="section">
|
|
236
|
+
<div class="blob-list">
|
|
237
|
+
<div class="blob-item">
|
|
238
|
+
<div class="blob-circle w-12 h-12 bg-red-500 flex-center text-white text-xs font-bold">S</div>
|
|
239
|
+
<span>w-12 h-12</span>
|
|
240
|
+
</div>
|
|
241
|
+
<div class="blob-item">
|
|
242
|
+
<div class="blob-triangle w-16 h-16 bg-orange-500 flex-center text-white text-xs font-bold">M</div>
|
|
243
|
+
<span>w-16 h-16</span>
|
|
244
|
+
</div>
|
|
245
|
+
<div class="blob-item">
|
|
246
|
+
<div class="blob-diamond w-20 h-20 bg-amber-500 flex-center text-white text-sm font-bold">L</div>
|
|
247
|
+
<span>w-20 h-20</span>
|
|
248
|
+
</div>
|
|
249
|
+
<div class="blob-item">
|
|
250
|
+
<div class="blob-oval w-28 h-28 bg-green-500 flex-center text-white text-base font-bold">XL</div>
|
|
251
|
+
<span>w-28 h-28</span>
|
|
252
|
+
</div>
|
|
253
|
+
<div class="blob-item">
|
|
254
|
+
<div class="blob-circle w-36 h-36 bg-purple-500 flex-center text-white text-lg font-bold animate-blob-morph">2XL
|
|
255
|
+
</div>
|
|
256
|
+
<span>w-36 h-36</span>
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
|
|
261
|
+
<h2 id="use-cases">Use cases</h2>
|
|
262
|
+
<div class="section">
|
|
263
|
+
<div class="blob-list">
|
|
264
|
+
<div class="blob-item">
|
|
265
|
+
<div class="blob-circle w-20 h-20 overflow-hidden">
|
|
266
|
+
<img src="https://unpkg.com/@codady/resource/image/avatar02.jpg" class="w-full h-full object-cover"
|
|
267
|
+
alt="avatar">
|
|
268
|
+
</div>
|
|
269
|
+
<span>Avatar container</span>
|
|
270
|
+
</div>
|
|
271
|
+
<div class="blob-item">
|
|
272
|
+
<div class="blob-diamond w-20 h-20 overflow-hidden">
|
|
273
|
+
<img src="https://unpkg.com/@codady/resource/image/avatar02.jpg" class="w-full h-full object-cover"
|
|
274
|
+
alt="avatar">
|
|
275
|
+
</div>
|
|
276
|
+
<span>blob-diamond</span>
|
|
277
|
+
</div>
|
|
278
|
+
<div class="blob-item">
|
|
279
|
+
<div class="blob-pebble w-20 h-20 overflow-hidden">
|
|
280
|
+
<img src="https://unpkg.com/@codady/resource/image/avatar02.jpg" class="w-full h-full object-cover"
|
|
281
|
+
alt="avatar">
|
|
282
|
+
</div>
|
|
283
|
+
<span>blob-pebble</span>
|
|
284
|
+
</div>
|
|
285
|
+
<div class="blob-item">
|
|
286
|
+
<div class="blob-circle w-16 h-16 bg-sky-100 flex-center">
|
|
287
|
+
<svg class="w-8 h-8 text-sky-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
288
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" />
|
|
289
|
+
</svg>
|
|
290
|
+
</div>
|
|
291
|
+
<span>Icon container</span>
|
|
292
|
+
</div>
|
|
293
|
+
<div class="blob-item">
|
|
294
|
+
<div class="blob-triangle w-16 h-16 bg-rose-100 flex-center">
|
|
295
|
+
<svg class="w-8 h-8 text-rose-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
296
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01" />
|
|
297
|
+
</svg>
|
|
298
|
+
</div>
|
|
299
|
+
<span>Icon container</span>
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
|
+
</div>
|
|
303
|
+
|
|
304
|
+
<script src="./demo-utils.js"></script>
|
|
305
|
+
</body>
|
|
306
|
+
|
|
307
|
+
</html>
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
<link id="wispcss-css" rel="stylesheet" href="../dist/wispcss.css">
|
|
8
|
+
<link rel="stylesheet" href="./demo-styles.css">
|
|
9
|
+
<title>Blockquote - WispCSS Demo</title>
|
|
10
|
+
</head>
|
|
11
|
+
|
|
12
|
+
<body>
|
|
13
|
+
<h1>Blockquote Component</h1>
|
|
14
|
+
<p>Semantic <code><blockquote></code> with layout variants and dynamic accent colors.</p>
|
|
15
|
+
|
|
16
|
+
<h2>Notes</h2>
|
|
17
|
+
<div class="section">
|
|
18
|
+
<ul>
|
|
19
|
+
<li>Use a layout class: <code>blockquote-plain</code>, <code>blockquote-quote</code>, <code>blockquote-bar</code>, or <code>blockquote-card</code>.</li>
|
|
20
|
+
<li>Omit the layout class for the default style (left border + background).</li>
|
|
21
|
+
<li>Add <code>blockquote-{color}</code> to set the accent. Supports theme colors like <code>blockquote-primary</code>, <code>blockquote-success</code>, etc.</li>
|
|
22
|
+
<li>Custom colors via Tailwind palette: <code>blockquote-green-500</code>, <code>blockquote-green-100</code>.</li>
|
|
23
|
+
</ul>
|
|
24
|
+
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<h2 id="default">Default blockquote</h2>
|
|
28
|
+
<div class="section">
|
|
29
|
+
<blockquote>
|
|
30
|
+
<p>Default blockquote with left border and light background.</p>
|
|
31
|
+
</blockquote>
|
|
32
|
+
<blockquote>
|
|
33
|
+
<p>First paragraph of a multi-paragraph quote.</p>
|
|
34
|
+
<p>Second paragraph with natural spacing.</p>
|
|
35
|
+
<P>— Attribution via </P>
|
|
36
|
+
</blockquote>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<h2 id="layout-variants">Layout variants</h2>
|
|
40
|
+
<div class="section">
|
|
41
|
+
<h3>blockquote-plain</h3>
|
|
42
|
+
<blockquote class="blockquote-plain">
|
|
43
|
+
<p>Minimal — left border only, transparent background, no extra padding.</p>
|
|
44
|
+
</blockquote>
|
|
45
|
+
|
|
46
|
+
<h3>blockquote-quote</h3>
|
|
47
|
+
<blockquote class="blockquote-quote">
|
|
48
|
+
<p>Large quotation marks at top-left and bottom-right, top divider line, no left border.</p>
|
|
49
|
+
</blockquote>
|
|
50
|
+
|
|
51
|
+
<h3>blockquote-bar</h3>
|
|
52
|
+
<blockquote class="blockquote-bar">
|
|
53
|
+
<p>Vertical color bar on the start side, subtle rounded container.</p>
|
|
54
|
+
</blockquote>
|
|
55
|
+
|
|
56
|
+
<h3>blockquote-card</h3>
|
|
57
|
+
<blockquote class="blockquote-card">
|
|
58
|
+
<p>Full border, background, and quotation mark — similar to a callout card.</p>
|
|
59
|
+
</blockquote>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<h2 id="colors-default-layout">Color — default layout</h2>
|
|
63
|
+
<div class="section">
|
|
64
|
+
<blockquote class="blockquote-primary"><p><strong>primary</strong> — default theme</p></blockquote>
|
|
65
|
+
<blockquote class="blockquote-secondary"><p><strong>secondary</strong> — secondary theme</p></blockquote>
|
|
66
|
+
<blockquote class="blockquote-tertiary"><p><strong>tertiary</strong> — tertiary theme</p></blockquote>
|
|
67
|
+
<blockquote class="blockquote-success"><p><strong>success</strong> — success status</p></blockquote>
|
|
68
|
+
<blockquote class="blockquote-error"><p><strong>error</strong> — error status</p></blockquote>
|
|
69
|
+
<blockquote class="blockquote-info"><p><strong>info</strong> — info status</p></blockquote>
|
|
70
|
+
<blockquote class="blockquote-warning"><p><strong>warning</strong> — warning status</p></blockquote>
|
|
71
|
+
<blockquote class="blockquote-caution"><p><strong>caution</strong> — caution status</p></blockquote>
|
|
72
|
+
<blockquote class="blockquote-highlight"><p><strong>highlight</strong> — highlight status</p></blockquote>
|
|
73
|
+
<blockquote class="blockquote-ink"><p><strong>ink</strong> — neutral ink</p></blockquote>
|
|
74
|
+
<blockquote class="blockquote-title"><p><strong>title</strong> — neutral title</p></blockquote>
|
|
75
|
+
<blockquote class="blockquote-description"><p><strong>description</strong> — neutral description</p></blockquote>
|
|
76
|
+
<blockquote class="blockquote-caption"><p><strong>caption</strong> — neutral caption</p></blockquote>
|
|
77
|
+
<blockquote class="blockquote-placeholder"><p><strong>disabled</strong> — neutral disabled</p></blockquote>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<h2 id="colors-bar-layout">Color — bar layout</h2>
|
|
81
|
+
<div class="section">
|
|
82
|
+
<blockquote class="blockquote-bar blockquote-primary"><p><strong>primary</strong></p></blockquote>
|
|
83
|
+
<blockquote class="blockquote-bar blockquote-success"><p><strong>success</strong></p></blockquote>
|
|
84
|
+
<blockquote class="blockquote-bar blockquote-error"><p><strong>error</strong></p></blockquote>
|
|
85
|
+
<blockquote class="blockquote-bar blockquote-info"><p><strong>info</strong></p></blockquote>
|
|
86
|
+
<blockquote class="blockquote-bar blockquote-warning"><p><strong>warning</strong></p></blockquote>
|
|
87
|
+
<blockquote class="blockquote-bar blockquote-caution"><p><strong>caution</strong></p></blockquote>
|
|
88
|
+
<blockquote class="blockquote-bar blockquote-highlight"><p><strong>highlight</strong></p></blockquote>
|
|
89
|
+
<blockquote class="blockquote-bar blockquote-ink"><p><strong>ink</strong></p></blockquote>
|
|
90
|
+
<blockquote class="blockquote-bar blockquote-title"><p><strong>title</strong></p></blockquote>
|
|
91
|
+
<blockquote class="blockquote-bar blockquote-description"><p><strong>description</strong></p></blockquote>
|
|
92
|
+
<blockquote class="blockquote-bar blockquote-caption"><p><strong>caption</strong></p></blockquote>
|
|
93
|
+
<blockquote class="blockquote-bar blockquote-placeholder"><p><strong>disabled</strong></p></blockquote>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
<h2 id="colors-card-layout">Color — card layout</h2>
|
|
97
|
+
<div class="section">
|
|
98
|
+
<blockquote class="blockquote-card blockquote-primary"><p><strong>primary</strong></p></blockquote>
|
|
99
|
+
<blockquote class="blockquote-card blockquote-success"><p><strong>success</strong></p></blockquote>
|
|
100
|
+
<blockquote class="blockquote-card blockquote-error"><p><strong>error</strong></p></blockquote>
|
|
101
|
+
<blockquote class="blockquote-card blockquote-info"><p><strong>info</strong></p></blockquote>
|
|
102
|
+
<blockquote class="blockquote-card blockquote-warning"><p><strong>warning</strong></p></blockquote>
|
|
103
|
+
<blockquote class="blockquote-card blockquote-caution"><p><strong>caution</strong></p></blockquote>
|
|
104
|
+
<blockquote class="blockquote-card blockquote-highlight"><p><strong>highlight</strong></p></blockquote>
|
|
105
|
+
<blockquote class="blockquote-card blockquote-ink"><p><strong>ink</strong></p></blockquote>
|
|
106
|
+
<blockquote class="blockquote-card blockquote-title"><p><strong>title</strong></p></blockquote>
|
|
107
|
+
<blockquote class="blockquote-card blockquote-description"><p><strong>description</strong></p></blockquote>
|
|
108
|
+
<blockquote class="blockquote-card blockquote-caption"><p><strong>caption</strong></p></blockquote>
|
|
109
|
+
<blockquote class="blockquote-card blockquote-placeholder"><p><strong>disabled</strong></p></blockquote>
|
|
110
|
+
</div>
|
|
111
|
+
|
|
112
|
+
<h2 id="colors-quote-layout">Color — quote layout</h2>
|
|
113
|
+
<div class="section">
|
|
114
|
+
<blockquote class="blockquote-quote blockquote-primary"><p><strong>primary</strong></p></blockquote>
|
|
115
|
+
<blockquote class="blockquote-quote blockquote-success"><p><strong>success</strong></p></blockquote>
|
|
116
|
+
<blockquote class="blockquote-quote blockquote-error"><p><strong>error</strong></p></blockquote>
|
|
117
|
+
<blockquote class="blockquote-quote blockquote-info"><p><strong>info</strong></p></blockquote>
|
|
118
|
+
<blockquote class="blockquote-quote blockquote-warning"><p><strong>warning</strong></p></blockquote>
|
|
119
|
+
<blockquote class="blockquote-quote blockquote-caution"><p><strong>caution</strong></p></blockquote>
|
|
120
|
+
<blockquote class="blockquote-quote blockquote-highlight"><p><strong>highlight</strong></p></blockquote>
|
|
121
|
+
<blockquote class="blockquote-quote blockquote-ink"><p><strong>ink</strong></p></blockquote>
|
|
122
|
+
<blockquote class="blockquote-quote blockquote-title"><p><strong>title</strong></p></blockquote>
|
|
123
|
+
<blockquote class="blockquote-quote blockquote-description"><p><strong>description</strong></p></blockquote>
|
|
124
|
+
<blockquote class="blockquote-quote blockquote-caption"><p><strong>caption</strong></p></blockquote>
|
|
125
|
+
<blockquote class="blockquote-quote blockquote-placeholder"><p><strong>disabled</strong></p></blockquote>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
<h2 id="colors-plain-layout">Color — plain layout</h2>
|
|
129
|
+
<div class="section">
|
|
130
|
+
<blockquote class="blockquote-plain blockquote-primary"><p><strong>primary</strong></p></blockquote>
|
|
131
|
+
<blockquote class="blockquote-plain blockquote-success"><p><strong>success</strong></p></blockquote>
|
|
132
|
+
<blockquote class="blockquote-plain blockquote-error"><p><strong>error</strong></p></blockquote>
|
|
133
|
+
<blockquote class="blockquote-plain blockquote-info"><p><strong>info</strong></p></blockquote>
|
|
134
|
+
<blockquote class="blockquote-plain blockquote-warning"><p><strong>warning</strong></p></blockquote>
|
|
135
|
+
<blockquote class="blockquote-plain blockquote-caution"><p><strong>caution</strong></p></blockquote>
|
|
136
|
+
<blockquote class="blockquote-plain blockquote-highlight"><p><strong>highlight</strong></p></blockquote>
|
|
137
|
+
<blockquote class="blockquote-plain blockquote-ink"><p><strong>ink</strong></p></blockquote>
|
|
138
|
+
<blockquote class="blockquote-plain blockquote-title"><p><strong>title</strong></p></blockquote>
|
|
139
|
+
<blockquote class="blockquote-plain blockquote-description"><p><strong>description</strong></p></blockquote>
|
|
140
|
+
<blockquote class="blockquote-plain blockquote-caption"><p><strong>caption</strong></p></blockquote>
|
|
141
|
+
<blockquote class="blockquote-plain blockquote-placeholder"><p><strong>disabled</strong></p></blockquote>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<h2 id="custom-colors">Custom colors</h2>
|
|
145
|
+
<p>Multiple color formats are supported:</p>
|
|
146
|
+
<ul>
|
|
147
|
+
<li>1. Theme semantic colors, e.g. <code>*-error</code>, <code>*-error-hover</code></li>
|
|
148
|
+
<li>2. Tailwind built-in colors, e.g. <code>*-indigo-500</code></li>
|
|
149
|
+
<li>3. Raw color values, e.g. <code>*-[#ff0000]</code></li>
|
|
150
|
+
<li>4. CSS named colors, e.g. <code>*-[red]</code>, <code>*-[green]</code></li>
|
|
151
|
+
</ul>
|
|
152
|
+
<div class="section">
|
|
153
|
+
<blockquote class="blockquote-green-100"><p><strong>blockquote-green-100</strong> — Tailwind shade</p></blockquote>
|
|
154
|
+
<blockquote class="blockquote-green-500"><p><strong>blockquote-green-500</strong> — Tailwind shade</p></blockquote>
|
|
155
|
+
<blockquote class="blockquote-green-800"><p><strong>blockquote-green-800</strong> — Tailwind shade</p></blockquote>
|
|
156
|
+
<blockquote class="blockquote-bar blockquote-green-100"><p><strong>bar + green-100</strong></p></blockquote>
|
|
157
|
+
<blockquote class="blockquote-bar blockquote-green-500"><p><strong>bar + green-500</strong></p></blockquote>
|
|
158
|
+
<blockquote class="blockquote-card blockquote-green-100"><p><strong>card + green-100</strong></p></blockquote>
|
|
159
|
+
<blockquote class="blockquote-card blockquote-green-500"><p><strong>card + green-500</strong></p></blockquote>
|
|
160
|
+
<blockquote class="blockquote-quote blockquote-green-100"><p><strong>quote + green-100</strong></p></blockquote>
|
|
161
|
+
<blockquote class="blockquote-quote blockquote-green-500"><p><strong>quote + green-500</strong></p></blockquote>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
<h2 id="use-cases">Use cases</h2>
|
|
165
|
+
<div class="section">
|
|
166
|
+
<blockquote class="blockquote-quote blockquote-primary">
|
|
167
|
+
<p>Stay hungry, stay foolish.</p>
|
|
168
|
+
<footer>— Steve Jobs, Stanford 2005</footer>
|
|
169
|
+
</blockquote>
|
|
170
|
+
<blockquote class="blockquote-bar blockquote-info">
|
|
171
|
+
<p><strong>Tip:</strong> Ensure authentication tokens are configured before calling this API.</p>
|
|
172
|
+
</blockquote>
|
|
173
|
+
<blockquote class="blockquote-card blockquote-caution">
|
|
174
|
+
<p><strong>Caution:</strong> This action cannot be undone. Deleted data is irretrievable.</p>
|
|
175
|
+
</blockquote>
|
|
176
|
+
<blockquote class="blockquote-bar blockquote-success">
|
|
177
|
+
<p><strong>Done:</strong> All tasks completed. 128 records processed in 1.2s.</p>
|
|
178
|
+
</blockquote>
|
|
179
|
+
<blockquote class="blockquote-card blockquote-error">
|
|
180
|
+
<p><strong>Error:</strong> Request failed (500). Server encountered an internal error.</p>
|
|
181
|
+
</blockquote>
|
|
182
|
+
<blockquote class="blockquote-plain blockquote-ink">
|
|
183
|
+
<p>A concise inline-style quote suitable for article body text.</p>
|
|
184
|
+
</blockquote>
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
<script src="./demo-utils.js"></script>
|
|
188
|
+
</body>
|
|
189
|
+
|
|
190
|
+
</html>
|