wispcss 1.0.6 → 1.0.8

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.
@@ -162,7 +162,7 @@
162
162
  <div class="actions-end">
163
163
  <span class="tools">
164
164
  <span><span class="icon icon-check"></span></span>
165
- <span><span class="icon icon-close"></span></span>
165
+ <span><span class="icon icon-x"></span></span>
166
166
  </span>
167
167
  <button class="btn-primary">Invite</button>
168
168
  </div>
@@ -16,9 +16,12 @@
16
16
  <h2>Notes</h2>
17
17
  <div class="section">
18
18
  <ul>
19
- <li>Use class <code>.btns</code> as a container. Child elements are automatically styled as button group items.</li>
20
- <li>Mark the active item with <code>data-selected="true"</code>. Use <code>[disabled]</code> for disabled items.</li>
21
- <li>Combining <code>.btns-flush</code> with direction classes (<code>.btns-top</code>, <code>.btns-start</code>, <code>.btns-end</code>) enables seamless edge fitting.</li>
19
+ <li>Use class <code>.btns</code> as a container. Child elements are automatically styled as button group items.
20
+ </li>
21
+ <li>Mark the active item with <code>data-selected="true"</code>. Use <code>[disabled]</code> for disabled items.
22
+ </li>
23
+ <li>Combining <code>.btns-flush</code> with direction classes (<code>.btns-top</code>, <code>.btns-start</code>,
24
+ <code>.btns-end</code>) enables seamless edge fitting.</li>
22
25
  </ul>
23
26
  </div>
24
27
 
@@ -49,7 +52,10 @@
49
52
  <h3>With icons</h3>
50
53
  <span class="btns">
51
54
  <button data-selected="true">&#11088; Favorite</button>
52
- <button><svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" > <path d="M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z" /> </svg> Files</button>
55
+ <button><svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor">
56
+ <path
57
+ d="M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z" />
58
+ </svg> Files</button>
53
59
  <button><span class="icon icon-check"></span> Settings</button>
54
60
  </span>
55
61
  </div>
@@ -209,7 +215,8 @@
209
215
  </div>
210
216
  <div>
211
217
  <h3>Top flush (<code>.btns-top.btns-flush</code>)</h3>
212
- <div style="padding-bottom:50px;border:1px solid var(--color-title-bd);border-radius:var(--default-border-radius)">
218
+ <div
219
+ style="padding-bottom:50px;border:1px solid var(--color-title-bd);border-radius:var(--default-border-radius)">
213
220
  <span class="btns btns-top btns-flush">
214
221
  <button data-selected="true">Left</button>
215
222
  <button>Center</button>
@@ -219,7 +226,8 @@
219
226
  </div>
220
227
  <div>
221
228
  <h3>Start flush (<code>.btns-start.btns-flush</code>) — vertical left</h3>
222
- <div style="height:160px;border:1px solid var(--color-title-bd);border-radius:var(--default-border-radius)" class="flex">
229
+ <div style="height:160px;border:1px solid var(--color-title-bd);border-radius:var(--default-border-radius)"
230
+ class="flex">
223
231
  <span class="btns btns-start btns-flush">
224
232
  <button data-selected="true">Top</button>
225
233
  <button>Middle</button>
@@ -230,7 +238,8 @@
230
238
  </div>
231
239
  <div>
232
240
  <h3>End flush (<code>.btns-end.btns-flush</code>) — vertical right</h3>
233
- <div style="height:160px;border:1px solid var(--color-title-bd);border-radius:var(--default-border-radius)" class="flex">
241
+ <div style="height:160px;border:1px solid var(--color-title-bd);border-radius:var(--default-border-radius)"
242
+ class="flex">
234
243
  <div class="flex-1"></div>
235
244
  <span class="btns btns-end btns-flush">
236
245
  <button data-selected="true">Top</button>
@@ -241,6 +250,26 @@
241
250
  </div>
242
251
  </div>
243
252
 
253
+ <h2 id="custom-colors">Custom colors</h2>
254
+ <p>Multiple color formats are supported:</p>
255
+ <ul>
256
+ <li>1. Theme semantic colors, e.g. <code>*-error</code>, <code>*-error-hover</code></li>
257
+ <li>2. Tailwind built-in colors, e.g. <code>*-indigo-500</code></li>
258
+ <li>3. Raw color values, e.g. <code>*-[#ff0000]</code></li>
259
+ <li>4. CSS named colors, e.g. <code>*-[red]</code>, <code>*-[green]</code></li>
260
+ </ul>
261
+ <div class="section">
262
+ <div>
263
+ <span class="btns btns-title"><button data-selected="true">4</button><button>Opt</button><button>Opt</button></span>
264
+ <span class="btns btns-success"><button data-selected="true">5</button><button>Opt</button><button>Opt</button></span>
265
+ <span class="btns btns-[#f0a4d3]"><button data-selected="true">6</button><button>Opt</button><button>Opt</button></span>
266
+ <span class="btns btns-blue-200"><button data-selected="true">7</button><button>Opt</button><button>Opt</button></span>
267
+ </div>
268
+ </div>
269
+
270
+
271
+
272
+
244
273
  <h2 id="sizes">Sizes (btns-4 ~ btns-15)</h2>
245
274
  <div class="section">
246
275
  <div>
@@ -325,7 +354,8 @@
325
354
  </div>
326
355
  <div>
327
356
  <h3>Flush tab bar</h3>
328
- <div style="padding-bottom:50px;border:1px solid var(--color-title-bd);border-radius:var(--default-border-radius)">
357
+ <div
358
+ style="padding-bottom:50px;border:1px solid var(--color-title-bd);border-radius:var(--default-border-radius)">
329
359
  <span class="btns btns-top btns-flush">
330
360
  <button data-selected="true">Recommended</button>
331
361
  <button>Trending</button>
@@ -335,13 +365,18 @@
335
365
  </div>
336
366
  <div>
337
367
  <h3>Size + shape combo</h3>
338
- <span class="btns btns-7 btns-pill"><button data-selected="true">S</button><button>M</button><button>L</button></span>
339
- <span class="btns btns-10 btns-rounded"><button data-selected="true">S</button><button>M</button><button>L</button></span>
340
- <span class="btns btns-13 btns-square"><button data-selected="true">S</button><button>M</button><button>L</button></span>
368
+ <span class="btns btns-7 btns-pill"><button
369
+ data-selected="true">S</button><button>M</button><button>L</button></span>
370
+ <span class="btns btns-10 btns-rounded"><button
371
+ data-selected="true">S</button><button>M</button><button>L</button></span>
372
+ <span class="btns btns-13 btns-square"><button
373
+ data-selected="true">S</button><button>M</button><button>L</button></span>
341
374
  </div>
342
375
  </div>
343
376
 
344
- <p>Note: Child buttons within <code>.btns</code> support all <code>btn-*</code> utilities (variants, colors, shapes, sizes, widths such as <code>btn-ratio</code>, <code>btn-ratio-*</code>, etc.). See the <a href="./demo-button.html">Button demo</a> for details.</p>
377
+ <p>Note: Child buttons within <code>.btns</code> support all <code>btn-*</code> utilities (variants, colors, shapes,
378
+ sizes, widths such as <code>btn-ratio</code>, <code>btn-ratio-*</code>, etc.). See the <a
379
+ href="./demo-button.html">Button demo</a> for details.</p>
345
380
 
346
381
  <script src="./demo-utils.js"></script>
347
382
  </body>
@@ -56,6 +56,12 @@
56
56
  <button class="btn-icon btn-ghost"><i class="fas fa-cog"></i></button>
57
57
  <button class="btn-icon btn-ghost" disabled><i class="fas fa-edit"></i></button>
58
58
  </div>
59
+ <div>
60
+ <h3>Shapes</h3>
61
+ <button class="btn-icon btn-solid btn-pill"><i class="fas fa-edit"></i></button>
62
+ <button class="btn-icon btn-solid btn-square"><i class="fas fa-trash"></i></button>
63
+ <button class="btn-icon btn-solid btn-rounded"><i class="fas fa-cog"></i></button>
64
+ </div>
59
65
  </div>
60
66
 
61
67
  <h2 id="primary-colors">Primary colors</h2>