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,361 @@
|
|
|
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>Button - WispCSS Demo</title>
|
|
10
|
+
</head>
|
|
11
|
+
|
|
12
|
+
<body>
|
|
13
|
+
<h1>Button Component</h1>
|
|
14
|
+
<p>All button variants, colors, sizes, shapes, and widths.</p>
|
|
15
|
+
|
|
16
|
+
<h2>Notes</h2>
|
|
17
|
+
<div class="section">
|
|
18
|
+
<ul>
|
|
19
|
+
<li>Prefer combined utilities like <code>btn-outline-primary</code> over separate
|
|
20
|
+
<code>btn-outline btn-primary</code> — smaller CSS output.
|
|
21
|
+
</li>
|
|
22
|
+
<li><code><button></code> and <code><input type="submit/reset/button"></code> get basic
|
|
23
|
+
<code>btn</code> styles by
|
|
24
|
+
default from preset.css. Add classes only for variants.</li>
|
|
25
|
+
</ul>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<h2 id="elements">Button elements</h2>
|
|
29
|
+
<div class="section">
|
|
30
|
+
<div>
|
|
31
|
+
<h3>Button tag</h3>
|
|
32
|
+
<button>Button</button> <button disabled>Disabled</button>
|
|
33
|
+
</div>
|
|
34
|
+
<div>
|
|
35
|
+
<h3>Input tag</h3>
|
|
36
|
+
<div>type=submit: <input type="submit" value="Submit"> <input type="submit" value="Submit" disabled></div>
|
|
37
|
+
<div>type=reset: <input type="reset" value="Reset"> <input type="reset" value="Reset" disabled></div>
|
|
38
|
+
<div>type=button: <input type="button" value="Button"> <input type="button" value="Button" disabled></div>
|
|
39
|
+
</div>
|
|
40
|
+
<div>
|
|
41
|
+
<h3>A / span tag</h3>
|
|
42
|
+
<a href="###" class="btn">Link button</a>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<h2 id="variants-color">Base variants + color</h2>
|
|
47
|
+
<div class="section">
|
|
48
|
+
<div>
|
|
49
|
+
<h3>Separate: btn-solid + btn-primary</h3>
|
|
50
|
+
<button class="btn-solid btn-primary">Solid</button> <button class="btn-solid btn-primary"
|
|
51
|
+
disabled>Disabled</button>
|
|
52
|
+
<button class="btn-subtle btn-primary">Subtle</button> <button class="btn-subtle btn-primary"
|
|
53
|
+
disabled>Disabled</button>
|
|
54
|
+
<button class="btn-outline btn-primary">Outline</button> <button class="btn-outline btn-primary"
|
|
55
|
+
disabled>Disabled</button>
|
|
56
|
+
<button class="btn-ghost btn-primary">Ghost</button> <button class="btn-ghost btn-primary"
|
|
57
|
+
disabled>Disabled</button>
|
|
58
|
+
<button class="btn-vivid btn-primary">Vivid</button> <button class="btn-vivid btn-primary"
|
|
59
|
+
disabled>Disabled</button>
|
|
60
|
+
<button class="btn-link btn-primary">Link</button> <button class="btn-link btn-primary" disabled>Disabled</button>
|
|
61
|
+
</div>
|
|
62
|
+
<div>
|
|
63
|
+
<h3>Combined: btn-solid-primary (recommended)</h3>
|
|
64
|
+
<button class="btn-solid-primary">Solid</button> <button class="btn-solid-primary" disabled>Disabled</button>
|
|
65
|
+
<button class="btn-subtle-primary">Subtle</button> <button class="btn-subtle-primary" disabled>Disabled</button>
|
|
66
|
+
<button class="btn-outline-primary">Outline</button> <button class="btn-outline-primary"
|
|
67
|
+
disabled>Disabled</button>
|
|
68
|
+
<button class="btn-ghost-primary">Ghost</button> <button class="btn-ghost-primary" disabled>Disabled</button>
|
|
69
|
+
<button class="btn-vivid-primary">Vivid</button> <button class="btn-vivid-primary" disabled>Disabled</button>
|
|
70
|
+
<button class="btn-link-primary">Link</button> <button class="btn-link-primary" disabled>Disabled</button>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<h2 id="link-cjk">Link CJK</h2>
|
|
75
|
+
<div class="section">
|
|
76
|
+
<div>
|
|
77
|
+
<h3>btn-link (default underline offset)</h3>
|
|
78
|
+
<button class="btn-link">Link Button</button>
|
|
79
|
+
<button class="btn-link-primary">Primary Link</button>
|
|
80
|
+
<button class="btn-link-success">Success Link</button>
|
|
81
|
+
</div>
|
|
82
|
+
<div>
|
|
83
|
+
<h3>btn-link-cjk (optimized offset for CJK)</h3>
|
|
84
|
+
<button class="btn-link btn-link-cjk">链接按钮</button>
|
|
85
|
+
<button class="btn-link-primary btn-link-cjk">主要链接</button>
|
|
86
|
+
<button class="btn-link-success btn-link-cjk">成功链接</button>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<h2 id="primary-colors">Primary colors</h2>
|
|
91
|
+
<div class="section">
|
|
92
|
+
<div>
|
|
93
|
+
<h3>Primary</h3>
|
|
94
|
+
<button class="btn-primary">Solid</button> <button class="btn-outline-primary">Outline</button> <button
|
|
95
|
+
class="btn-muted-primary">Muted</button> <button class="btn-subtle-primary">Subtle</button> <button
|
|
96
|
+
class="btn-vivid-primary">Vivid</button> <button class="btn-ghost-primary">Ghost</button>
|
|
97
|
+
</div>
|
|
98
|
+
<div>
|
|
99
|
+
<h3>Secondary</h3>
|
|
100
|
+
<button class="btn-secondary">Solid</button> <button class="btn-outline-secondary">Outline</button> <button
|
|
101
|
+
class="btn-muted-secondary">Muted</button> <button class="btn-subtle-secondary">Subtle</button> <button
|
|
102
|
+
class="btn-vivid-secondary">Vivid</button> <button class="btn-ghost-secondary">Ghost</button>
|
|
103
|
+
</div>
|
|
104
|
+
<div>
|
|
105
|
+
<h3>Tertiary</h3>
|
|
106
|
+
<button class="btn-tertiary">Solid</button> <button class="btn-outline-tertiary">Outline</button> <button
|
|
107
|
+
class="btn-muted-tertiary">Muted</button> <button class="btn-subtle-tertiary">Subtle</button> <button
|
|
108
|
+
class="btn-vivid-tertiary">Vivid</button> <button class="btn-ghost-tertiary">Ghost</button>
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
|
|
112
|
+
<h2 id="status-colors">Status colors</h2>
|
|
113
|
+
<div class="section">
|
|
114
|
+
<div>
|
|
115
|
+
<h3>Success</h3>
|
|
116
|
+
<button class="btn-success">Solid</button> <button class="btn-outline-success">Outline</button> <button
|
|
117
|
+
class="btn-muted-success">Muted</button> <button class="btn-subtle-success">Subtle</button> <button
|
|
118
|
+
class="btn-vivid-success">Vivid</button> <button class="btn-ghost-success">Ghost</button>
|
|
119
|
+
</div>
|
|
120
|
+
<div>
|
|
121
|
+
<h3>Error</h3>
|
|
122
|
+
<button class="btn-error">Solid</button> <button class="btn-outline-error">Outline</button> <button
|
|
123
|
+
class="btn-muted-error">Muted</button> <button class="btn-subtle-error">Subtle</button> <button
|
|
124
|
+
class="btn-vivid-error">Vivid</button> <button class="btn-ghost-error">Ghost</button>
|
|
125
|
+
</div>
|
|
126
|
+
<div>
|
|
127
|
+
<h3>Info</h3>
|
|
128
|
+
<button class="btn-info">Solid</button> <button class="btn-outline-info">Outline</button> <button
|
|
129
|
+
class="btn-muted-info">Muted</button> <button class="btn-subtle-info">Subtle</button> <button
|
|
130
|
+
class="btn-vivid-info">Vivid</button> <button class="btn-ghost-info">Ghost</button>
|
|
131
|
+
</div>
|
|
132
|
+
<div>
|
|
133
|
+
<h3>Warning</h3>
|
|
134
|
+
<button class="btn-warning">Solid</button> <button class="btn-outline-warning">Outline</button> <button
|
|
135
|
+
class="btn-muted-warning">Muted</button> <button class="btn-subtle-warning">Subtle</button> <button
|
|
136
|
+
class="btn-vivid-warning">Vivid</button> <button class="btn-ghost-warning">Ghost</button>
|
|
137
|
+
</div>
|
|
138
|
+
<div>
|
|
139
|
+
<h3>Caution</h3>
|
|
140
|
+
<button class="btn-caution">Solid</button> <button class="btn-outline-caution">Outline</button> <button
|
|
141
|
+
class="btn-muted-caution">Muted</button> <button class="btn-subtle-caution">Subtle</button> <button
|
|
142
|
+
class="btn-vivid-caution">Vivid</button> <button class="btn-ghost-caution">Ghost</button>
|
|
143
|
+
</div>
|
|
144
|
+
<div>
|
|
145
|
+
<h3>Highlight</h3>
|
|
146
|
+
<button class="btn-highlight">Solid</button> <button class="btn-outline-highlight">Outline</button> <button
|
|
147
|
+
class="btn-muted-highlight">Muted</button> <button class="btn-subtle-highlight">Subtle</button> <button
|
|
148
|
+
class="btn-vivid-highlight">Vivid</button> <button class="btn-ghost-highlight">Ghost</button>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
|
|
152
|
+
<h2 id="neutral-colors">Neutral colors</h2>
|
|
153
|
+
<div class="section">
|
|
154
|
+
<div>
|
|
155
|
+
<h3>Ink</h3>
|
|
156
|
+
<button class="btn-ink">Solid</button> <button class="btn-outline-ink">Outline</button> <button
|
|
157
|
+
class="btn-muted-ink">Muted</button> <button class="btn-subtle-ink">Subtle</button> <button
|
|
158
|
+
class="btn-vivid-ink">Vivid</button> <button class="btn-ghost-ink">Ghost</button>
|
|
159
|
+
</div>
|
|
160
|
+
<div>
|
|
161
|
+
<h3>Title</h3>
|
|
162
|
+
<button class="btn-title">Solid</button> <button class="btn-outline-title">Outline</button> <button
|
|
163
|
+
class="btn-muted-title">Muted</button> <button class="btn-subtle-title">Subtle</button> <button
|
|
164
|
+
class="btn-vivid-title">Vivid</button> <button class="btn-ghost-title">Ghost</button>
|
|
165
|
+
</div>
|
|
166
|
+
<div>
|
|
167
|
+
<h3>Description</h3>
|
|
168
|
+
<button class="btn-description">Solid</button> <button class="btn-outline-description">Outline</button> <button
|
|
169
|
+
class="btn-muted-description">Muted</button> <button class="btn-subtle-description">Subtle</button> <button
|
|
170
|
+
class="btn-vivid-description">Vivid</button> <button class="btn-ghost-description">Ghost</button>
|
|
171
|
+
</div>
|
|
172
|
+
<div>
|
|
173
|
+
<h3>Caption</h3>
|
|
174
|
+
<button class="btn-caption">Solid</button> <button class="btn-outline-caption">Outline</button> <button
|
|
175
|
+
class="btn-muted-caption">Muted</button> <button class="btn-subtle-caption">Subtle</button> <button
|
|
176
|
+
class="btn-vivid-caption">Vivid</button> <button class="btn-ghost-caption">Ghost</button>
|
|
177
|
+
</div>
|
|
178
|
+
<div>
|
|
179
|
+
<h3>Placeholder</h3>
|
|
180
|
+
<button class="btn-placeholder">Solid</button> <button class="btn-outline-placeholder">Outline</button> <button
|
|
181
|
+
class="btn-muted-placeholder">Muted</button> <button class="btn-subtle-placeholder">Subtle</button> <button
|
|
182
|
+
class="btn-vivid-placeholder">Vivid</button> <button class="btn-ghost-placeholder">Ghost</button>
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<h2 id="custom-colors">Custom colors</h2>
|
|
187
|
+
<p>Multiple color formats are supported:</p>
|
|
188
|
+
<ul>
|
|
189
|
+
<li>1. Theme semantic colors, e.g. <code>*-error</code>, <code>*-error-hover</code></li>
|
|
190
|
+
<li>2. Tailwind built-in colors, e.g. <code>*-indigo-500</code></li>
|
|
191
|
+
<li>3. Raw color values, e.g. <code>*-[#ff0000]</code></li>
|
|
192
|
+
<li>4. CSS named colors, e.g. <code>*-[red]</code>, <code>*-[green]</code></li>
|
|
193
|
+
</ul>
|
|
194
|
+
<div class="section">
|
|
195
|
+
<h3>Solid</h3>
|
|
196
|
+
<button class="btn-green-500">green-500</button> <button class="btn-green-800">green-800</button> <button
|
|
197
|
+
class="btn-green-200">green-200</button>
|
|
198
|
+
<button class="btn-[blue]">[blue]</button> <button class="btn-[#ff0000]">[#ff0000]</button>
|
|
199
|
+
<h3>Outline</h3>
|
|
200
|
+
<button class="btn-outline-green-500">green-500</button> <button class="btn-outline-green-800">green-800</button>
|
|
201
|
+
<button class="btn-outline-green-200">green-200</button>
|
|
202
|
+
<button class="btn-outline-[blue]">[blue]</button> <button class="btn-outline-[#ff0000]">[#ff0000]</button>
|
|
203
|
+
<h3>Muted</h3>
|
|
204
|
+
<button class="btn-muted-green-500">green-500</button> <button class="btn-muted-green-800">green-800</button>
|
|
205
|
+
<button class="btn-muted-green-200">green-200</button>
|
|
206
|
+
<h3>Subtle</h3>
|
|
207
|
+
<button class="btn-subtle-green-500">green-500</button> <button class="btn-subtle-green-800">green-800</button>
|
|
208
|
+
<button class="btn-subtle-green-200">green-200</button>
|
|
209
|
+
<h3>Vivid</h3>
|
|
210
|
+
<button class="btn-vivid-green-500">green-500</button> <button class="btn-vivid-green-800">green-800</button>
|
|
211
|
+
<button class="btn-vivid-green-200">green-200</button>
|
|
212
|
+
<h3>Ghost</h3>
|
|
213
|
+
<button class="btn-ghost-green-500">green-500</button> <button class="btn-ghost-green-800">green-800</button>
|
|
214
|
+
<button class="btn-ghost-green-200">green-200</button>
|
|
215
|
+
</div>
|
|
216
|
+
|
|
217
|
+
<h2 id="sizes">Sizes (btn-4 ~ btn-15)</h2>
|
|
218
|
+
<div class="section">
|
|
219
|
+
<div>
|
|
220
|
+
<h3>16px (btn-4)</h3>
|
|
221
|
+
<button class="btn-primary btn-4">Primary</button> <button class="btn-success btn-4">Success</button>
|
|
222
|
+
<button class="btn-outline-primary btn-4">Outline</button> <button class="btn-outline-error btn-4">Error</button>
|
|
223
|
+
</div>
|
|
224
|
+
<div>
|
|
225
|
+
<h3>20px (btn-5)</h3>
|
|
226
|
+
<button class="btn-primary btn-5">Primary</button> <button class="btn-success btn-5">Success</button>
|
|
227
|
+
<button class="btn-outline-primary btn-5">Outline</button>
|
|
228
|
+
</div>
|
|
229
|
+
<div>
|
|
230
|
+
<h3>24px (btn-6)</h3>
|
|
231
|
+
<button class="btn-primary btn-6">Primary</button> <button class="btn-success btn-6">Success</button>
|
|
232
|
+
<button class="btn-outline-primary btn-6">Outline</button>
|
|
233
|
+
</div>
|
|
234
|
+
<div>
|
|
235
|
+
<h3>28px (btn-7)</h3>
|
|
236
|
+
<button class="btn-primary btn-7">Primary</button> <button class="btn-success btn-7">Success</button>
|
|
237
|
+
<button class="btn-outline-primary btn-7">Outline</button>
|
|
238
|
+
<button class="btn-primary btn-7"><svg height="12" fill="currentColor" viewBox="0 0 24 24">
|
|
239
|
+
<path
|
|
240
|
+
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" />
|
|
241
|
+
</svg> Icon</button>
|
|
242
|
+
</div>
|
|
243
|
+
<div>
|
|
244
|
+
<h3>32px (btn-8, default)</h3>
|
|
245
|
+
<button class="btn-primary btn-8">Primary</button> <button class="btn-success btn-8">Success</button>
|
|
246
|
+
<button class="btn-outline-primary btn-8">Outline</button>
|
|
247
|
+
</div>
|
|
248
|
+
<div>
|
|
249
|
+
<h3>36px (btn-9)</h3>
|
|
250
|
+
<button class="btn-primary btn-9">Primary</button> <button class="btn-success btn-9">Success</button>
|
|
251
|
+
</div>
|
|
252
|
+
<div>
|
|
253
|
+
<h3>40px (btn-10)</h3>
|
|
254
|
+
<button class="btn-primary btn-10">Primary</button> <button class="btn-success btn-10">Success</button>
|
|
255
|
+
</div>
|
|
256
|
+
<div>
|
|
257
|
+
<h3>44px (btn-11)</h3>
|
|
258
|
+
<button class="btn-primary btn-11">Primary</button> <button class="btn-success btn-11">Success</button>
|
|
259
|
+
</div>
|
|
260
|
+
<div>
|
|
261
|
+
<h3>48px (btn-12)</h3>
|
|
262
|
+
<button class="btn-primary btn-12">Primary</button> <button class="btn-success btn-12">Success</button>
|
|
263
|
+
</div>
|
|
264
|
+
<div>
|
|
265
|
+
<h3>52px (btn-13)</h3>
|
|
266
|
+
<button class="btn-primary btn-13">Primary</button> <button class="btn-success btn-13">Success</button>
|
|
267
|
+
</div>
|
|
268
|
+
<div>
|
|
269
|
+
<h3>56px (btn-14)</h3>
|
|
270
|
+
<button class="btn-primary btn-14">Primary</button> <button class="btn-success btn-14">Success</button>
|
|
271
|
+
</div>
|
|
272
|
+
<div>
|
|
273
|
+
<h3>60px (btn-15)</h3>
|
|
274
|
+
<button class="btn-primary btn-15">Primary</button> <button class="btn-success btn-15">Success</button>
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
|
|
278
|
+
<h2 id="width">Width variants</h2>
|
|
279
|
+
<div class="section">
|
|
280
|
+
<div>
|
|
281
|
+
<h3>btn-full (100%)</h3>
|
|
282
|
+
<button class="btn-solid btn-primary btn-full">Full width</button>
|
|
283
|
+
<p></p>
|
|
284
|
+
<button class="btn-outline btn-primary btn-full">Full outline</button>
|
|
285
|
+
</div>
|
|
286
|
+
<div>
|
|
287
|
+
<h3>btn-ratio (1:1)</h3>
|
|
288
|
+
<button class="btn-solid btn-primary btn-ratio btn-8">S</button>
|
|
289
|
+
<button class="btn-solid btn-primary btn-ratio btn-10">M</button>
|
|
290
|
+
<button class="btn-solid btn-primary btn-ratio btn-12">L</button>
|
|
291
|
+
<h3>btn-ratio-2 (2:1)</h3>
|
|
292
|
+
<button class="btn-solid btn-primary btn-ratio-2 btn-8">2:1</button>
|
|
293
|
+
<button class="btn-solid btn-primary btn-ratio-2 btn-10">2:1</button>
|
|
294
|
+
</div>
|
|
295
|
+
<div>
|
|
296
|
+
<h3>btn-icon (1:1 icon)</h3>
|
|
297
|
+
<button class="btn-solid btn-primary btn-icon btn-8"><svg height="16" fill="currentColor" viewBox="0 0 24 24">
|
|
298
|
+
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" />
|
|
299
|
+
</svg></button>
|
|
300
|
+
<button class="btn-outline btn-primary btn-icon btn-8"><svg height="16" fill="currentColor" viewBox="0 0 24 24">
|
|
301
|
+
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" />
|
|
302
|
+
</svg></button>
|
|
303
|
+
</div>
|
|
304
|
+
<div>
|
|
305
|
+
<h3>btn-gutter (1em padding x)</h3>
|
|
306
|
+
<button class="btn-solid btn-primary btn-gutter btn-8">Gutter</button>
|
|
307
|
+
<h3>btn-gutter-2 (2em padding x)</h3>
|
|
308
|
+
<button class="btn-solid btn-primary btn-gutter-2 btn-8">Wide</button>
|
|
309
|
+
</div>
|
|
310
|
+
</div>
|
|
311
|
+
|
|
312
|
+
<h2 id="scale-width">Scale width</h2>
|
|
313
|
+
<div class="section">
|
|
314
|
+
<div>
|
|
315
|
+
<h3>btn-scale (fixed width)</h3>
|
|
316
|
+
<button class="btn-solid btn-primary btn-scale btn-8">Default</button>
|
|
317
|
+
</div>
|
|
318
|
+
<div>
|
|
319
|
+
<h3>btn-scale-2 (2x width)</h3>
|
|
320
|
+
<button class="btn-solid btn-primary btn-scale-2 btn-8">2x</button>
|
|
321
|
+
</div>
|
|
322
|
+
<div>
|
|
323
|
+
<h3>btn-scale-[3] (custom 3x width)</h3>
|
|
324
|
+
<button class="btn-solid btn-primary btn-scale-[3] btn-8">3x</button>
|
|
325
|
+
</div>
|
|
326
|
+
<div>
|
|
327
|
+
<h3>Scale with outline variant</h3>
|
|
328
|
+
<button class="btn-outline btn-primary btn-scale btn-8">Outline</button>
|
|
329
|
+
<button class="btn-outline btn-primary btn-scale-2 btn-8">Outline 2x</button>
|
|
330
|
+
</div>
|
|
331
|
+
</div>
|
|
332
|
+
|
|
333
|
+
<h2 id="shapes">Shapes</h2>
|
|
334
|
+
<div class="section">
|
|
335
|
+
<div>
|
|
336
|
+
<h3>btn-pill (pill)</h3>
|
|
337
|
+
<button class="btn-primary btn-7 btn-pill">Save</button>
|
|
338
|
+
<button class="btn-primary btn-9 btn-pill">Save</button>
|
|
339
|
+
<button class="btn-primary btn-11 btn-pill">Save</button>
|
|
340
|
+
</div>
|
|
341
|
+
<div>
|
|
342
|
+
<h3>btn-rounded (default 8px)</h3>
|
|
343
|
+
<button class="btn-primary btn-7 btn-rounded">Save</button>
|
|
344
|
+
<button class="btn-primary btn-9 btn-rounded">Save</button>
|
|
345
|
+
</div>
|
|
346
|
+
<div>
|
|
347
|
+
<h3>btn-fluid (dynamic radius)</h3>
|
|
348
|
+
<button class="btn-primary btn-7 btn-fluid">Save</button>
|
|
349
|
+
<button class="btn-primary btn-9 btn-fluid">Save</button>
|
|
350
|
+
</div>
|
|
351
|
+
<div>
|
|
352
|
+
<h3>btn-square (no radius)</h3>
|
|
353
|
+
<button class="btn-primary btn-7 btn-square">Save</button>
|
|
354
|
+
<button class="btn-primary btn-9 btn-square">Save</button>
|
|
355
|
+
</div>
|
|
356
|
+
</div>
|
|
357
|
+
|
|
358
|
+
<script src="./demo-utils.js"></script>
|
|
359
|
+
</body>
|
|
360
|
+
|
|
361
|
+
</html>
|