wispcss 0.0.1 → 1.0.5

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.
Files changed (96) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/LICENSE +49 -0
  3. package/README.md +386 -0
  4. package/README.zh-CN.md +385 -0
  5. package/dist/wispcss.css +42758 -0
  6. package/dist/wispcss.min.css +2 -0
  7. package/examples/add-h2-ids.cjs +284 -0
  8. package/examples/demo-actions.html +188 -0
  9. package/examples/demo-alarm.html +219 -0
  10. package/examples/demo-animation.html +399 -0
  11. package/examples/demo-aura.html +195 -0
  12. package/examples/demo-avatar.html +279 -0
  13. package/examples/demo-background.html +284 -0
  14. package/examples/demo-badge.html +398 -0
  15. package/examples/demo-blob.html +307 -0
  16. package/examples/demo-blockquote.html +190 -0
  17. package/examples/demo-bookmark.html +243 -0
  18. package/examples/demo-breadcrumb.html +179 -0
  19. package/examples/demo-btns.html +349 -0
  20. package/examples/demo-bubble.html +215 -0
  21. package/examples/demo-buoy.html +187 -0
  22. package/examples/demo-button-icon.html +231 -0
  23. package/examples/demo-button-link.html +177 -0
  24. package/examples/demo-button.html +361 -0
  25. package/examples/demo-callout.html +601 -0
  26. package/examples/demo-check.html +323 -0
  27. package/examples/demo-code.html +212 -0
  28. package/examples/demo-color.html +545 -0
  29. package/examples/demo-comment.html +510 -0
  30. package/examples/demo-deform.html +229 -0
  31. package/examples/demo-dialog.html +932 -0
  32. package/examples/demo-divider.html +208 -0
  33. package/examples/demo-drawer.html +623 -0
  34. package/examples/demo-dropmenu.html +382 -0
  35. package/examples/demo-droppanel.html +354 -0
  36. package/examples/demo-ellipsis.html +145 -0
  37. package/examples/demo-emphasis.html +146 -0
  38. package/examples/demo-empty.html +112 -0
  39. package/examples/demo-entry.html +219 -0
  40. package/examples/demo-field.html +359 -0
  41. package/examples/demo-file.html +206 -0
  42. package/examples/demo-flag.html +225 -0
  43. package/examples/demo-form.html +201 -0
  44. package/examples/demo-gilt.html +170 -0
  45. package/examples/demo-heading.html +93 -0
  46. package/examples/demo-icon.html +164 -0
  47. package/examples/demo-input.html +300 -0
  48. package/examples/demo-kbd.html +202 -0
  49. package/examples/demo-lamp.html +248 -0
  50. package/examples/demo-link.html +142 -0
  51. package/examples/demo-normalize.html +366 -0
  52. package/examples/demo-otp.html +277 -0
  53. package/examples/demo-pagination.html +562 -0
  54. package/examples/demo-position.html +205 -0
  55. package/examples/demo-poster.html +384 -0
  56. package/examples/demo-pre - /345/211/257/346/234/254.html" +169 -0
  57. package/examples/demo-pre.html +205 -0
  58. package/examples/demo-preset.html +344 -0
  59. package/examples/demo-progress.html +303 -0
  60. package/examples/demo-range.html +211 -0
  61. package/examples/demo-rank.html +270 -0
  62. package/examples/demo-rating.html +251 -0
  63. package/examples/demo-reset.html +105 -0
  64. package/examples/demo-segment.html +436 -0
  65. package/examples/demo-select.html +332 -0
  66. package/examples/demo-shadow.html +152 -0
  67. package/examples/demo-shell.html +377 -0
  68. package/examples/demo-shimmer.html +217 -0
  69. package/examples/demo-size.html +149 -0
  70. package/examples/demo-skeleton.html +143 -0
  71. package/examples/demo-sketch.html +213 -0
  72. package/examples/demo-spacer.html +150 -0
  73. package/examples/demo-spinner.html +220 -0
  74. package/examples/demo-stats.html +165 -0
  75. package/examples/demo-status.html +212 -0
  76. package/examples/demo-step.html +240 -0
  77. package/examples/demo-styles.css +14 -0
  78. package/examples/demo-summary.html +128 -0
  79. package/examples/demo-swatch.html +253 -0
  80. package/examples/demo-switch.html +223 -0
  81. package/examples/demo-table.html +339 -0
  82. package/examples/demo-tag.html +318 -0
  83. package/examples/demo-text.html +91 -0
  84. package/examples/demo-theme.html +167 -0
  85. package/examples/demo-tools.html +152 -0
  86. package/examples/demo-transition.html +169 -0
  87. package/examples/demo-tree.html +929 -0
  88. package/examples/demo-underline.html +76 -0
  89. package/examples/demo-utils.js +131 -0
  90. package/examples/demo-validate.html +120 -0
  91. package/examples/index.html +149 -0
  92. package/package.json +72 -8
  93. package/script-gen-color.js +148 -0
  94. package/script-mini.js +77 -0
  95. package/script-prefix.js +398 -0
  96. package/skill.md +575 -0
@@ -0,0 +1,225 @@
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>Flag - WispCSS Demo</title>
10
+ <style>
11
+ .flag-demo {
12
+ position: relative;
13
+ background-color: var(--color-title-bg);
14
+ width: 400px;
15
+ height: 200px;
16
+ border: 1px solid var(--color-title-bd);
17
+ margin-bottom: 16px;
18
+ }
19
+ </style>
20
+ </head>
21
+
22
+ <body>
23
+ <h1>Flag Component</h1>
24
+ <p>Corner flag/badge shapes for decorative labeling: triangle, circle, horn, ribbon, and diamond. Supports position modifiers, size modifiers, and dynamic colors.</p>
25
+
26
+ <h2>Notes</h2>
27
+ <div class="section">
28
+ <ul>
29
+ <li>5 shapes: <code>.flag-triangle</code>, <code>.flag-circle</code>, <code>.flag-horn</code>, <code>.flag-ribbon</code>, <code>.flag-diamond</code>.</li>
30
+ <li>Positions: default (start-top), <code>.flag-end-top</code> (right-top), <code>.flag-start-bottom</code> (left-bottom), <code>.flag-end-bottom</code> (right-bottom).</li>
31
+ <li>Sizes: <code>.flag-sm</code>, <code>.flag-lg</code>, <code>.flag-xl</code>.</li>
32
+ <li>Color: <code>flag-*</code> dynamic utilities (e.g. <code>flag-primary</code>, <code>flag-success</code>, <code>flag-red-500</code>).</li>
33
+ <li>Shapes require a child element: <code>&lt;span class="flag-triangle"><span>HOT</span></span></code>. Circle shape can use direct text content.</li>
34
+ </ul>
35
+ </div>
36
+
37
+ <h2 id="triangle-flag-triangle">Triangle (flag-triangle)</h2>
38
+ <div class="section">
39
+ <div>
40
+ <h3>Default (start-top)</h3>
41
+ <div class="flag-demo">
42
+ <span class="flag-triangle flag-lg"><span>HOT</span></span>
43
+ </div>
44
+ </div>
45
+ <div>
46
+ <h3>Positions</h3>
47
+ <div class="flag-demo">
48
+ <span class="flag-triangle flag-end-top flag-xl"><span>HOT</span></span>
49
+ </div>
50
+ <div class="flag-demo">
51
+ <span class="flag-triangle flag-start-bottom"><span>HOT</span></span>
52
+ </div>
53
+ <div class="flag-demo">
54
+ <span class="flag-triangle flag-end-bottom flag-sm"><span>HOT</span></span>
55
+ </div>
56
+ </div>
57
+ <div>
58
+ <h3>Sizes</h3>
59
+ <div class="flag-demo">
60
+ <span class="flag-triangle flag-sm"><span>NEW</span></span>
61
+ </div>
62
+ <div class="flag-demo">
63
+ <span class="flag-triangle flag-lg"><span>SALE</span></span>
64
+ </div>
65
+ <div class="flag-demo">
66
+ <span class="flag-triangle flag-xl"><span>VIP</span></span>
67
+ </div>
68
+ </div>
69
+ </div>
70
+
71
+ <h2 id="circle-flag-circle">Circle (flag-circle)</h2>
72
+ <div class="section">
73
+ <div>
74
+ <h3>Default</h3>
75
+ <div class="flag-demo">
76
+ <span class="flag-circle flag-lg">HOT</span>
77
+ </div>
78
+ </div>
79
+ <div>
80
+ <h3>Positions</h3>
81
+ <div class="flag-demo">
82
+ <span class="flag-circle flag-end-top flag-xl"><span>HOT</span></span>
83
+ </div>
84
+ <div class="flag-demo">
85
+ <span class="flag-circle flag-start-bottom"><span>HOT</span></span>
86
+ </div>
87
+ <div class="flag-demo">
88
+ <span class="flag-circle flag-end-bottom flag-sm"><span>HOT</span></span>
89
+ </div>
90
+ </div>
91
+ <div>
92
+ <h3>Colors</h3>
93
+ <div class="flag-demo">
94
+ <span class="flag-circle flag-success flag-lg">✓</span>
95
+ </div>
96
+ <div class="flag-demo">
97
+ <span class="flag-circle flag-error flag-lg">!</span>
98
+ </div>
99
+ <div class="flag-demo">
100
+ <span class="flag-circle flag-highlight flag-lg">⚠</span>
101
+ </div>
102
+ </div>
103
+ </div>
104
+
105
+ <h2 id="horn-flag-horn">Horn (flag-horn)</h2>
106
+ <div class="section">
107
+ <div>
108
+ <h3>Default</h3>
109
+ <div class="flag-demo">
110
+ <span class="flag-horn flag-lg"><span>HOT</span></span>
111
+ </div>
112
+ </div>
113
+ <div>
114
+ <h3>Positions</h3>
115
+ <div class="flag-demo">
116
+ <span class="flag-horn flag-end-top flag-xl"><span>HOT</span></span>
117
+ </div>
118
+ <div class="flag-demo">
119
+ <span class="flag-horn flag-start-bottom"><span>HOT</span></span>
120
+ </div>
121
+ <div class="flag-demo">
122
+ <span class="flag-horn flag-end-bottom flag-sm"><span>HOT</span></span>
123
+ </div>
124
+ </div>
125
+ </div>
126
+
127
+ <h2 id="ribbon-flag-ribbon">Ribbon (flag-ribbon)</h2>
128
+ <div class="section">
129
+ <div>
130
+ <h3>Default</h3>
131
+ <div class="flag-demo">
132
+ <span class="flag-ribbon flag-lg"><span>HOT</span></span>
133
+ </div>
134
+ </div>
135
+ <div>
136
+ <h3>Positions</h3>
137
+ <div class="flag-demo">
138
+ <span class="flag-ribbon flag-end-top flag-xl"><span>HOT</span></span>
139
+ </div>
140
+ <div class="flag-demo">
141
+ <span class="flag-ribbon flag-start-bottom"><span>HOT</span></span>
142
+ </div>
143
+ <div class="flag-demo">
144
+ <span class="flag-ribbon flag-end-bottom flag-sm"><span>HOT</span></span>
145
+ </div>
146
+ </div>
147
+ <div>
148
+ <h3>Colors</h3>
149
+ <div class="flag-demo">
150
+ <span class="flag-ribbon flag-secondary flag-lg"><span>FEATURED</span></span>
151
+ </div>
152
+ <div class="flag-demo">
153
+ <span class="flag-ribbon flag-info flag-lg"><span>INFO</span></span>
154
+ </div>
155
+ <div class="flag-demo">
156
+ <span class="flag-ribbon flag-title flag-lg"><span>PREMIUM</span></span>
157
+ </div>
158
+ </div>
159
+ </div>
160
+
161
+ <h2 id="diamond-flag-diamond">Diamond (flag-diamond)</h2>
162
+ <div class="section">
163
+ <div>
164
+ <h3>Default</h3>
165
+ <div class="flag-demo">
166
+ <span class="flag-diamond flag-lg"><span>HOT</span></span>
167
+ </div>
168
+ </div>
169
+ <div>
170
+ <h3>Positions</h3>
171
+ <div class="flag-demo">
172
+ <span class="flag-diamond flag-end-top flag-xl"><span>HOT</span></span>
173
+ </div>
174
+ <div class="flag-demo">
175
+ <span class="flag-diamond flag-start-bottom"><span>HOT</span></span>
176
+ </div>
177
+ <div class="flag-demo">
178
+ <span class="flag-diamond flag-end-bottom flag-sm"><span>HOT</span></span>
179
+ </div>
180
+ </div>
181
+ <div>
182
+ <h3>Colors + sizes</h3>
183
+ <div class="flag-demo">
184
+ <span class="flag-diamond flag-success flag-sm"><span>OK</span></span>
185
+ </div>
186
+ <div class="flag-demo">
187
+ <span class="flag-diamond flag-error flag-lg"><span>ERROR</span></span>
188
+ </div>
189
+ <div class="flag-demo">
190
+ <span class="flag-diamond flag-primary flag-lg"><span>PRIMARY</span></span>
191
+ </div>
192
+ </div>
193
+ </div>
194
+
195
+ <h2 id="custom-colors">Custom colors</h2>
196
+ <div class="section">
197
+ <p>Multiple color formats are supported:</p>
198
+ <ul>
199
+ <li>1. Theme semantic colors, e.g. <code>*-error</code>, <code>*-error-hover</code></li>
200
+ <li>2. Tailwind built-in colors, e.g. <code>*-indigo-500</code></li>
201
+ <li>3. Raw color values, e.g. <code>*-[#ff0000]</code></li>
202
+ <li>4. CSS named colors, e.g. <code>*-[red]</code>, <code>*-[green]</code></li>
203
+ </ul>
204
+ <div class="flag-demo">
205
+ <span class="flag-triangle flag-lg flag-red-500"><span>HOT</span></span>
206
+ <span class="flag-triangle flag-end-bottom flag-sm flag-[#12eded]"><span>HOT</span></span>
207
+ <span class="flag-triangle flag-end-top flag-xl flag-[rgba(0,0,0,0.5)]"><span>HOT</span></span>
208
+ <span class="flag-triangle flag-start-bottom flag-info"><span>HOT</span></span>
209
+ </div>
210
+ </div>
211
+
212
+ <h2 id="shapes">All shapes</h2>
213
+ <div class="section">
214
+ <div class="flag-demo">
215
+ <span class="flag-triangle flag-lg"><span>TRI</span></span>
216
+ <span class="flag-circle flag-end-top flag-lg"><span>CIR</span></span>
217
+ <span class="flag-horn flag-start-bottom flag-sm"><span>HORN</span></span>
218
+ <span class="flag-ribbon flag-end-bottom flag-lg"><span>RIB</span></span>
219
+ </div>
220
+ </div>
221
+
222
+ <script src="./demo-utils.js"></script>
223
+ </body>
224
+
225
+ </html>
@@ -0,0 +1,201 @@
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>Form Controls - WispCSS Demo</title>
10
+ <style>
11
+ .row { display: grid; grid-template-columns: 180px 1fr; gap: 12px 16px; align-items: center; margin-bottom: 12px; }
12
+ </style>
13
+ </head>
14
+
15
+ <body>
16
+ <h1>Form Controls</h1>
17
+ <p>Native form control elements styled with WispCSS input utilities and defaults from preset.css.</p>
18
+
19
+ <h2>Notes</h2>
20
+ <div class="section">
21
+ <ul>
22
+ <li>All native input types (text, password, email, etc.) accept the same <code>input-*</code> utility classes.</li>
23
+ <li><code>&lt;button></code>, <code>&lt;input type="submit/reset/button"></code> get basic <code>btn</code> styles by default from preset.css.</li>
24
+ <li><code>&lt;select></code>, <code>&lt;textarea></code>, <code>&lt;progress></code>, <code>&lt;meter></code> are styled natively via CSS.</li>
25
+ </ul>
26
+ </div>
27
+
28
+ <form>
29
+ <h2 id="text-inputs">Text inputs</h2>
30
+ <fieldset>
31
+ <div class="row">
32
+ <label>text</label>
33
+ <input type="text" placeholder="Text input" class="input-underline">
34
+ </div>
35
+ <div class="row">
36
+ <label>password</label>
37
+ <input type="password" placeholder="Password" class="input-subtle">
38
+ </div>
39
+ <div class="row">
40
+ <label>email</label>
41
+ <input type="email" placeholder="email@example.com" class="input-error input-pill">
42
+ </div>
43
+ <div class="row">
44
+ <label>tel</label>
45
+ <input type="tel" placeholder="Phone number" class="input-underline-success">
46
+ </div>
47
+ <div class="row">
48
+ <label>url</label>
49
+ <input type="url" placeholder="https://example.com" class="input-highlight">
50
+ </div>
51
+ <div class="row">
52
+ <label>search</label>
53
+ <input type="search" placeholder="Search">
54
+ </div>
55
+ <div class="row">
56
+ <label>textarea</label>
57
+ <textarea rows="4" placeholder="Multi-line text" class="input-success input-5xl input-fluid"></textarea>
58
+ </div>
59
+ </fieldset>
60
+
61
+ <h2 id="numeric-time">Numeric & time</h2>
62
+ <fieldset>
63
+ <div class="row">
64
+ <label>number</label>
65
+ <input type="number" min="0" max="100" step="1" value="10">
66
+ </div>
67
+ <div class="row">
68
+ <label>range</label>
69
+ <input type=range min="0" max="100" value="40">
70
+ </div>
71
+ <div class="row">
72
+ <label>date</label>
73
+ <input type="date">
74
+ </div>
75
+ <div class="row">
76
+ <label>time</label>
77
+ <input type="time">
78
+ </div>
79
+ <div class="row">
80
+ <label>datetime-local</label>
81
+ <input type="datetime-local">
82
+ </div>
83
+ <div class="row">
84
+ <label>month</label>
85
+ <input type="month">
86
+ </div>
87
+ <div class="row">
88
+ <label>week</label>
89
+ <input type="week">
90
+ </div>
91
+ <div class="row">
92
+ <label>color</label>
93
+ <input type="color" value="#2563eb">
94
+ </div>
95
+ </fieldset>
96
+
97
+ <h2 id="selection-controls">Selection controls</h2>
98
+ <fieldset>
99
+ <div class="row">
100
+ <label>checkbox</label>
101
+ <div>
102
+ <label><input type="checkbox" checked> Option A</label>
103
+ <label><input type="checkbox"> Option B</label>
104
+ </div>
105
+ </div>
106
+ <div class="row">
107
+ <label>radio</label>
108
+ <div>
109
+ <label><input type="radio" name="r" checked> Radio A</label>
110
+ <label><input type="radio" name="r"> Radio B</label>
111
+ </div>
112
+ </div>
113
+ <div class="row">
114
+ <label>select</label>
115
+ <select>
116
+ <option>Option 1</option>
117
+ <option>Option 2</option>
118
+ <optgroup label="Group 1">
119
+ <option>Option 1</option>
120
+ <option>Option 2</option>
121
+ </optgroup>
122
+ <optgroup label="Group 2">
123
+ <option>Option 3</option>
124
+ <option>Option 4</option>
125
+ </optgroup>
126
+ </select>
127
+ </div>
128
+ <div class="row">
129
+ <label>select multiple</label>
130
+ <select multiple size="5">
131
+ <option>Option 1</option>
132
+ <option>Option 2</option>
133
+ <optgroup label="Group 1">
134
+ <option>Option 1</option>
135
+ <option>Option 2</option>
136
+ </optgroup>
137
+ <optgroup label="Group 2">
138
+ <option>Option 3</option>
139
+ <option>Option 4</option>
140
+ </optgroup>
141
+ </select>
142
+ </div>
143
+ <div class="row">
144
+ <label>datalist</label>
145
+ <div>
146
+ <input list="browsers" placeholder="Type or select">
147
+ <datalist id="browsers">
148
+ <option value="Chrome">
149
+ <option value="Firefox">
150
+ <option value="Safari">
151
+ <option value="Edge">
152
+ </datalist>
153
+ </div>
154
+ </div>
155
+ </fieldset>
156
+
157
+ <h2 id="file-buttons">File & buttons</h2>
158
+ <fieldset>
159
+ <div class="row">
160
+ <label>file</label>
161
+ <input type="file">
162
+ </div>
163
+ <div class="row">
164
+ <label>multiple file</label>
165
+ <input type="file" multiple>
166
+ </div>
167
+ <div class="row">
168
+ <label>buttons</label>
169
+ <div class="actions">
170
+ <button type="button" class="btn-primary btn-7">Button</button>
171
+ <button type="button" class="btn-primary btn-10">Button</button>
172
+ <button type="button" class="btn-primary">Button</button>
173
+ <button type="submit" class="btn-outline-primary">Submit</button>
174
+ <button type="button" class="btn-warning">Warning</button>
175
+ <button type="submit" class="btn-outline-warning">Submit</button>
176
+ <button type="button" class="btn-highlight">Highlight</button>
177
+ <button type="reset" class="btn-outline-title">Reset</button>
178
+ <input type="button" value="Input btn" class="btn-outline-title">
179
+ <input type="submit" value="Input submit">
180
+ <input type="reset" value="Input reset">
181
+ </div>
182
+ </div>
183
+ </fieldset>
184
+
185
+ <h2 id="progress">Progress</h2>
186
+ <fieldset>
187
+ <div class="row">
188
+ <label>progress</label>
189
+ <progress value="60" max="100"></progress>
190
+ </div>
191
+ <div class="row">
192
+ <label>meter</label>
193
+ <meter min="0" max="100" value="70"></meter>
194
+ </div>
195
+ </fieldset>
196
+ </form>
197
+
198
+ <script src="./demo-utils.js"></script>
199
+ </body>
200
+
201
+ </html>
@@ -0,0 +1,170 @@
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>Gilt - WispCSS Demo</title>
10
+ <style>
11
+ .gradient-demo { font-size: 1.5rem; font-weight: 700; line-height: 1.4; padding: 8px 0; }
12
+ .gradient-demo-sm { font-size: 1rem; font-weight: 600; line-height: 1.4; padding: 6px 0; }
13
+ .gradient-demo-lg { font-size: 2.5rem; font-weight: 800; line-height: 1.3; padding: 10px 0; }
14
+ </style>
15
+ </head>
16
+
17
+ <body>
18
+ <h1>Gilt Component</h1>
19
+ <p>Text gradient color effect using CSS variables and layered linear-gradient. Supports dynamic colors, direction modifiers, spotlight and duotone variants.</p>
20
+
21
+ <h2>Notes</h2>
22
+ <div class="section">
23
+ <ul>
24
+ <li>Base class: <code>.gilt</code>. Uses <code>--color-primary</code> as gradient primary and <code>currentColor</code> as secondary by default.</li>
25
+ <li>Directions: <code>.gilt-start</code> (left→right, default), <code>.gilt-end</code> (right→left), <code>.gilt-top</code> (top→bottom), <code>.gilt-bottom</code> (bottom→top).</li>
26
+ <li>Variants: <code>.gilt-spotlight</code> (color converges in middle), <code>.gilt-duotone</code> (shifts second color hue by 40&deg;).</li>
27
+ <li>Color: <code>gilt-*</code> dynamic utilities (e.g. <code>gilt-primary</code>, <code>gilt-error</code>, <code>gilt-pink-500</code>, <code>gilt-[#ff6600]</code>).</li>
28
+ <li>Gilt works with any text color — the <code>currentColor</code> value in the gradient inherits from the element's text color (<code>color</code> property). Just set <code>style="color: ..."</code> or use <code>text-*</code> utilities.</li>
29
+ </ul>
30
+ </div>
31
+
32
+ <h2 id="basic">Basic usage</h2>
33
+ <div class="section">
34
+ <div>
35
+ <h3>Default gilt</h3>
36
+ <span class="gradient-demo gilt">Gradient text</span>
37
+ </div>
38
+ <div>
39
+ <h3>Font sizes</h3>
40
+ <span class="gradient-demo-sm gilt">Small</span>
41
+ <span class="gradient-demo gilt">Medium</span>
42
+ <span class="gradient-demo-lg gilt">Large</span>
43
+ </div>
44
+ <div>
45
+ <h3>Paragraph text</h3>
46
+ <p class="gilt" style="font-size:1rem;line-height:1.8;max-width:400px;">
47
+ This is a paragraph with gilt gradient effect. The gradient can be applied to text of any length.
48
+ </p>
49
+ </div>
50
+ </div>
51
+
52
+ <h2 id="theme-colors">Theme colors</h2>
53
+ <div class="section">
54
+ <div>
55
+ <span class="gradient-demo gilt gilt-primary">Primary</span>
56
+ <span class="gradient-demo gilt gilt-secondary">Secondary</span>
57
+ <span class="gradient-demo gilt gilt-tertiary">Tertiary</span>
58
+ <span class="gradient-demo gilt gilt-success">Success</span>
59
+ <span class="gradient-demo gilt gilt-error">Error</span>
60
+ <span class="gradient-demo gilt gilt-info">Info</span>
61
+ <span class="gradient-demo gilt gilt-warning">Warning</span>
62
+ <span class="gradient-demo gilt gilt-caution">Caution</span>
63
+ <span class="gradient-demo gilt gilt-highlight">Highlight</span>
64
+ <span class="gradient-demo gilt gilt-title">Title</span>
65
+ </div>
66
+ </div>
67
+
68
+ <h2 id="direction">Directions</h2>
69
+ <div class="section">
70
+ <div>
71
+ <h3>.gilt-start (left→right, default)</h3>
72
+ <span class="gradient-demo gilt gilt-primary gilt-start">Start</span>
73
+ </div>
74
+ <div>
75
+ <h3>.gilt-end (right→left)</h3>
76
+ <span class="gradient-demo gilt gilt-primary gilt-end">End</span>
77
+ </div>
78
+ <div>
79
+ <h3>.gilt-top (top→bottom)</h3>
80
+ <span class="gradient-demo gilt gilt-primary gilt-top">Top</span>
81
+ </div>
82
+ <div>
83
+ <h3>.gilt-bottom (bottom→top)</h3>
84
+ <span class="gradient-demo gilt gilt-primary gilt-bottom">Bottom</span>
85
+ </div>
86
+ </div>
87
+
88
+ <h2 id="variants">Variants</h2>
89
+ <div class="section">
90
+ <div>
91
+ <h3>.gilt-spotlight</h3>
92
+ <span class="gradient-demo gilt gilt-primary gilt-spotlight">Spotlight</span>
93
+ <span class="gradient-demo gilt gilt-primary gilt-spotlight gilt-end">Spotlight End</span>
94
+ </div>
95
+ <div>
96
+ <h3>.gilt-duotone</h3>
97
+ <span class="gradient-demo gilt gilt-primary gilt-duotone">Duotone</span>
98
+ <span class="gradient-demo gilt gilt-primary gilt-duotone gilt-end">Duotone End</span>
99
+ </div>
100
+ <div>
101
+ <h3>Spotlight + colors</h3>
102
+ <span class="gradient-demo gilt gilt-success gilt-spotlight">Success</span>
103
+ <span class="gradient-demo gilt gilt-error gilt-spotlight">Error</span>
104
+ <span class="gradient-demo gilt gilt-info gilt-spotlight">Info</span>
105
+ </div>
106
+ <div>
107
+ <h3>Duotone + colors</h3>
108
+ <span class="gradient-demo gilt gilt-success gilt-duotone">Success</span>
109
+ <span class="gradient-demo gilt gilt-error gilt-duotone">Error</span>
110
+ <span class="gradient-demo gilt gilt-info gilt-duotone">Info</span>
111
+ </div>
112
+ </div>
113
+
114
+ <h2 id="combinations">Combinations</h2>
115
+ <div class="section">
116
+ <div>
117
+ <span class="gradient-demo gilt gilt-success gilt-bottom gilt-spotlight">Success + Bottom + Spotlight</span>
118
+ </div>
119
+ <div>
120
+ <span class="gradient-demo gilt gilt-error gilt-end gilt-duotone">Error + End + Duotone</span>
121
+ </div>
122
+ <div>
123
+ <span class="gradient-demo gilt gilt-info gilt-top gilt-spotlight">Info + Top + Spotlight</span>
124
+ </div>
125
+ <div>
126
+ <span class="gradient-demo gilt gilt-warning gilt-start gilt-duotone">Warning + Start + Duotone</span>
127
+ </div>
128
+ </div>
129
+
130
+ <h2 id="text-color-override">Text color override</h2>
131
+ <div class="section">
132
+ <div>
133
+ <span class="gradient-demo gilt" style="color:red;">Red text color</span>
134
+ </div>
135
+ <div>
136
+ <span class="gradient-demo gilt gilt-duotone" style="color:orange;">Orange text color + duotone</span>
137
+ </div>
138
+ </div>
139
+
140
+ <h2 id="custom-colors">Custom colors</h2>
141
+ <div class="section">
142
+ <p>Multiple color formats are supported:</p>
143
+ <ul>
144
+ <li>1. Theme semantic colors, e.g. <code>*-error</code>, <code>*-error-hover</code></li>
145
+ <li>2. Tailwind built-in colors, e.g. <code>*-indigo-500</code></li>
146
+ <li>3. Raw color values, e.g. <code>*-[#ff0000]</code></li>
147
+ <li>4. CSS named colors, e.g. <code>*-[red]</code>, <code>*-[green]</code></li>
148
+ </ul>
149
+ <div>
150
+ <h3>Hex value</h3>
151
+ <span class="gradient-demo gilt gilt-[#ff6600]">#ff6600</span>
152
+ </div>
153
+ <div>
154
+ <h3>Named color</h3>
155
+ <span class="gradient-demo gilt gilt-[blue]">blue</span>
156
+ </div>
157
+ <div>
158
+ <h3>Tailwind color</h3>
159
+ <span class="gradient-demo gilt gilt-pink-500">pink-500</span>
160
+ </div>
161
+ <div>
162
+ <h3>Custom + spotlight</h3>
163
+ <span class="gradient-demo gilt gilt-[#ff6600] gilt-spotlight">#ff6600 spotlight</span>
164
+ </div>
165
+ </div>
166
+
167
+ <script src="./demo-utils.js"></script>
168
+ </body>
169
+
170
+ </html>