@voidable/theme 0.6.0 → 0.8.0
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 +133 -8
- package/package.json +66 -8
- package/src/app-shell/detail.css +7 -5
- package/src/app-shell/subtable.css +7 -6
- package/src/base.css +28 -0
- package/src/components/accordion.css +96 -19
- package/src/components/action-input.css +51 -61
- package/src/components/alert.css +63 -23
- package/src/components/avatar.css +0 -2
- package/src/components/badge.css +35 -25
- package/src/components/banner.css +60 -19
- package/src/components/bar-chart.css +75 -0
- package/src/components/breadcrumbs.css +20 -16
- package/src/components/button.css +130 -55
- package/src/components/calendar.css +40 -17
- package/src/components/card.css +122 -23
- package/src/components/carousel.css +85 -118
- package/src/components/checkbox-group.css +3 -1
- package/src/components/checkbox.css +18 -23
- package/src/components/collapsible.css +95 -29
- package/src/components/color-picker.css +10 -10
- package/src/components/combobox.css +47 -29
- package/src/components/compose-input.css +3 -3
- package/src/components/dialog.css +115 -41
- package/src/components/divider.css +7 -4
- package/src/components/donut-chart.css +105 -0
- package/src/components/drawer.css +135 -68
- package/src/components/dropdown-menu.css +21 -43
- package/src/components/editable.css +7 -7
- package/src/components/error-fallback.css +48 -27
- package/src/components/field.css +12 -5
- package/src/components/file-upload.css +2 -1
- package/src/components/gauge.css +194 -0
- package/src/components/hamburger.css +10 -10
- package/src/components/hover-card.css +13 -113
- package/src/components/indicator.css +22 -18
- package/src/components/input.css +15 -12
- package/src/components/line-chart.css +137 -0
- package/src/components/list.css +28 -7
- package/src/components/menu.css +48 -33
- package/src/components/multiselect.css +57 -40
- package/src/components/nav-bar.css +23 -14
- package/src/components/nav-menu.css +31 -22
- package/src/components/number-input.css +85 -62
- package/src/components/overlay.css +215 -0
- package/src/components/pagination.css +42 -31
- package/src/components/panel.css +37 -11
- package/src/components/pin-input.css +23 -22
- package/src/components/popover.css +19 -35
- package/src/components/progress.css +19 -10
- package/src/components/radio-group.css +2 -1
- package/src/components/radio.css +15 -20
- package/src/components/scroll-area.css +3 -3
- package/src/components/segmented-control.css +46 -29
- package/src/components/select.css +99 -31
- package/src/components/sidebar.css +8 -4
- package/src/components/skeleton.css +8 -3
- package/src/components/slider.css +4 -2
- package/src/components/spinner.css +5 -4
- package/src/components/stat.css +59 -52
- package/src/components/status-dot.css +0 -1
- package/src/components/switch.css +18 -26
- package/src/components/table.css +443 -16
- package/src/components/tabs.css +92 -29
- package/src/components/tag.css +44 -20
- package/src/components/tags-input.css +43 -55
- package/src/components/textarea.css +15 -12
- package/src/components/toast.css +84 -22
- package/src/components/toggle.css +35 -42
- package/src/components/tooltip.css +19 -38
- package/src/core.css +98 -0
- package/src/forced-colors.css +134 -0
- package/src/index.css +4 -71
- package/src/knobs.css +101 -0
- package/src/layers.css +38 -0
- package/src/media/media.css +258 -0
- package/src/media/surface.css +143 -0
- package/src/patterns/data.css +461 -0
- package/src/patterns/page.css +348 -0
- package/src/patterns/shell.css +371 -0
- package/src/pre-upgrade.css +202 -0
- package/src/primitives.css +44 -71
- package/src/reset.css +45 -21
- package/src/skins/loft.css +114 -0
- package/src/skins/slab.css +107 -0
- package/src/themes/aurora.css +16 -0
- package/src/themes/capsule.css +16 -0
- package/src/themes/console.css +16 -0
- package/src/themes/dune.css +16 -0
- package/src/themes/iris.css +16 -0
- package/src/themes/orbit.css +16 -0
- package/src/themes/paper.css +18 -0
- package/src/themes/void.css +16 -0
- package/src/tokens.css +552 -98
- package/src/type.css +103 -0
package/src/type.css
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
@voidable/theme — Type roles
|
|
3
|
+
One attribute applies a role: <span data-void-type="label">.
|
|
4
|
+
Each role is a group of --void-type-<role>-* tokens (tokens.css);
|
|
5
|
+
components use the same tokens, so restyling a role in a theme
|
|
6
|
+
restyles it in tables, stats, fields and your own markup alike.
|
|
7
|
+
:where() keeps specificity at zero so any rule can override.
|
|
8
|
+
============================================================ */
|
|
9
|
+
|
|
10
|
+
:where([data-void-type="label"]) {
|
|
11
|
+
font-family: var(--void-type-label-family);
|
|
12
|
+
font-size: var(--void-type-label-size);
|
|
13
|
+
line-height: var(--void-type-label-leading);
|
|
14
|
+
font-weight: var(--void-type-label-weight);
|
|
15
|
+
letter-spacing: var(--void-type-label-tracking);
|
|
16
|
+
text-transform: var(--void-type-label-case);
|
|
17
|
+
color: var(--void-type-label-color);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where([data-void-type="value"]) {
|
|
21
|
+
font-family: var(--void-type-value-family);
|
|
22
|
+
font-size: var(--void-type-value-size);
|
|
23
|
+
line-height: var(--void-type-value-leading);
|
|
24
|
+
font-weight: var(--void-type-value-weight);
|
|
25
|
+
letter-spacing: var(--void-type-value-tracking);
|
|
26
|
+
font-variant-numeric: var(--void-type-value-numeric);
|
|
27
|
+
color: var(--void-type-value-color);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where([data-void-type="value"][data-size="sm"]) {
|
|
31
|
+
font-size: var(--void-type-value-size-sm);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where([data-void-type="value"][data-size="lg"]) {
|
|
35
|
+
font-size: var(--void-type-value-size-lg);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:where([data-void-type="unit"]) {
|
|
39
|
+
font-family: var(--void-type-unit-family);
|
|
40
|
+
font-size: var(--void-type-unit-size);
|
|
41
|
+
font-weight: var(--void-type-unit-weight);
|
|
42
|
+
letter-spacing: var(--void-type-unit-tracking);
|
|
43
|
+
color: var(--void-type-unit-color);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where([data-void-type="caption"]) {
|
|
47
|
+
font-family: var(--void-type-caption-family);
|
|
48
|
+
font-size: var(--void-type-caption-size);
|
|
49
|
+
line-height: var(--void-type-caption-leading);
|
|
50
|
+
font-weight: var(--void-type-caption-weight);
|
|
51
|
+
color: var(--void-type-caption-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:where([data-void-type="heading"]) {
|
|
55
|
+
font-family: var(--void-type-heading-family);
|
|
56
|
+
font-size: var(--void-type-heading-size);
|
|
57
|
+
line-height: var(--void-type-heading-leading);
|
|
58
|
+
font-weight: var(--void-type-heading-weight);
|
|
59
|
+
letter-spacing: var(--void-type-heading-tracking);
|
|
60
|
+
color: var(--void-type-heading-color);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:where([data-void-type="title"]) {
|
|
64
|
+
font-family: var(--void-type-title-family);
|
|
65
|
+
font-size: var(--void-type-title-size);
|
|
66
|
+
line-height: var(--void-type-title-leading);
|
|
67
|
+
font-weight: var(--void-type-title-weight);
|
|
68
|
+
letter-spacing: var(--void-type-title-tracking);
|
|
69
|
+
color: var(--void-type-title-color);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:where([data-void-type="display"]) {
|
|
73
|
+
font-family: var(--void-type-display-family);
|
|
74
|
+
font-size: var(--void-type-display-size);
|
|
75
|
+
line-height: var(--void-type-display-leading);
|
|
76
|
+
font-weight: var(--void-type-display-weight);
|
|
77
|
+
letter-spacing: var(--void-type-display-tracking);
|
|
78
|
+
color: var(--void-type-display-color);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:where([data-void-type="lede"]) {
|
|
82
|
+
font-family: var(--void-type-lede-family);
|
|
83
|
+
font-size: var(--void-type-lede-size);
|
|
84
|
+
line-height: var(--void-type-lede-leading);
|
|
85
|
+
font-weight: var(--void-type-lede-weight);
|
|
86
|
+
color: var(--void-type-lede-color);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where([data-void-type="body"]) {
|
|
90
|
+
font-family: var(--void-type-body-family);
|
|
91
|
+
font-size: var(--void-type-body-size);
|
|
92
|
+
line-height: var(--void-type-body-leading);
|
|
93
|
+
font-weight: var(--void-type-body-weight);
|
|
94
|
+
color: var(--void-type-body-color);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:where([data-void-type="code"]) {
|
|
98
|
+
font-family: var(--void-type-code-family);
|
|
99
|
+
font-size: var(--void-type-code-size);
|
|
100
|
+
font-weight: var(--void-type-code-weight);
|
|
101
|
+
font-variant-numeric: var(--void-type-code-numeric);
|
|
102
|
+
color: var(--void-type-code-color);
|
|
103
|
+
}
|