@plexui/styles 0.1.46 → 0.3.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.
Files changed (72) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +54 -1
  2. package/dist/es/components/Alert/Alert.module.css +75 -37
  3. package/dist/es/components/Button/Button.module.css +36 -28
  4. package/dist/es/components/ButtonGroup/ButtonGroup.module.css +15 -3
  5. package/dist/es/components/ColorPicker/ColorPicker.module.css +42 -70
  6. package/dist/es/components/ContextMenu/ContextMenu.module.css +1 -1
  7. package/dist/es/components/DatePicker/Calendar.module.css +17 -15
  8. package/dist/es/components/DateRangePicker/Calendar.module.css +17 -69
  9. package/dist/es/components/Dialog/Dialog.module.css +169 -70
  10. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +12 -8
  11. package/dist/es/components/Field/Field.module.css +56 -22
  12. package/dist/es/components/FieldGroup/FieldGroup.module.css +5 -5
  13. package/dist/es/components/FileUpload/FileUpload.module.css +2 -2
  14. package/dist/es/components/Input/Input.module.css +100 -18
  15. package/dist/es/components/Menu/Menu.module.css +38 -42
  16. package/dist/es/components/Page/Page.module.css +38 -0
  17. package/dist/es/components/Popover/Popover.module.css +10 -11
  18. package/dist/es/components/ProgressSteps/ProgressSteps.module.css +17 -0
  19. package/dist/es/components/RadioGroup/RadioGroup.module.css +7 -3
  20. package/dist/es/components/Select/Select.module.css +304 -42
  21. package/dist/es/components/SelectControl/SelectControl.module.css +34 -10
  22. package/dist/es/components/Sidebar/Sidebar.module.css +6 -4
  23. package/dist/es/components/Slider/Slider.module.css +46 -2
  24. package/dist/es/components/Sortable/Sortable.module.css +3 -2
  25. package/dist/es/components/StatsCard/StatsCard.module.css +269 -0
  26. package/dist/es/components/Stepper/Stepper.module.css +7 -4
  27. package/dist/es/components/SwipeActions/SwipeActions.module.css +32 -17
  28. package/dist/es/components/Switch/Switch.module.css +6 -5
  29. package/dist/es/components/TabBar/TabBar.module.css +128 -12
  30. package/dist/es/components/Tabs/Tabs.module.css +240 -45
  31. package/dist/es/components/Toast/Toast.module.css +47 -24
  32. package/dist/es/components/Toolbar/Toolbar.module.css +120 -62
  33. package/dist/es/styles/geist-mono-fonts/LICENSE +93 -0
  34. package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-italic.woff2 +0 -0
  35. package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
  36. package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-italic.woff2 +0 -0
  37. package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-normal.woff2 +0 -0
  38. package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-italic.woff2 +0 -0
  39. package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-normal.woff2 +0 -0
  40. package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-italic.woff2 +0 -0
  41. package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-normal.woff2 +0 -0
  42. package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-italic.woff2 +0 -0
  43. package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-normal.woff2 +0 -0
  44. package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-italic.woff2 +0 -0
  45. package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-normal.woff2 +0 -0
  46. package/dist/es/styles/geist-mono.css +124 -0
  47. package/dist/es/styles/index.css +3 -0
  48. package/dist/es/styles/inter-fonts/LICENSE +93 -0
  49. package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-italic.woff2 +0 -0
  50. package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-normal.woff2 +0 -0
  51. package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-italic.woff2 +0 -0
  52. package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-normal.woff2 +0 -0
  53. package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-italic.woff2 +0 -0
  54. package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-normal.woff2 +0 -0
  55. package/dist/es/styles/inter-fonts/inter-greek-opsz-italic.woff2 +0 -0
  56. package/dist/es/styles/inter-fonts/inter-greek-opsz-normal.woff2 +0 -0
  57. package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-italic.woff2 +0 -0
  58. package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-normal.woff2 +0 -0
  59. package/dist/es/styles/inter-fonts/inter-latin-opsz-italic.woff2 +0 -0
  60. package/dist/es/styles/inter-fonts/inter-latin-opsz-normal.woff2 +0 -0
  61. package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-italic.woff2 +0 -0
  62. package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-normal.woff2 +0 -0
  63. package/dist/es/styles/inter.css +142 -0
  64. package/dist/es/styles/mobile-materials.css +65 -24
  65. package/dist/es/styles/tailwind-utilities.css +8 -0
  66. package/dist/es/styles/touch.css +357 -169
  67. package/dist/es/styles/variables-components.css +255 -138
  68. package/dist/es/styles/variables-semantic.css +30 -5
  69. package/dist/es/styles/variables-tailwind-theme.css +2 -4
  70. package/dist/es/styles/variables-tokens-root.css +70 -4
  71. package/package.json +1 -1
  72. package/dist/es/components/StatCard/StatCard.module.css +0 -234
@@ -9,6 +9,26 @@
9
9
  --color-text: var(--gray-1000);
10
10
  --color-text-inverse: var(--gray-0);
11
11
 
12
+ /* =============================================
13
+ Accent: the steps of --color-accent (variables-tokens-root.css), lighter by white and darker by black
14
+ as the blue scale is drawn from blue-400, so the default accent keeps the blue of Plex UI
15
+ ============================================= */
16
+ --accent-50: color-mix(in srgb, var(--color-accent), white 90%);
17
+ --accent-75: color-mix(in srgb, var(--color-accent), white 80%);
18
+ --accent-200: color-mix(in srgb, var(--color-accent), white 40%);
19
+ --accent-300: color-mix(in srgb, var(--color-accent), white 20%);
20
+ --accent-500: color-mix(in srgb, var(--color-accent), black 20%);
21
+ --accent-600: color-mix(in srgb, var(--color-accent), black 40%);
22
+ --accent-700: color-mix(in srgb, var(--color-accent), black 52%);
23
+ --accent-a25: color-mix(in oklab, var(--color-accent) 4%, transparent);
24
+ --accent-a50: color-mix(in oklab, var(--color-accent) 13%, transparent);
25
+ --accent-a75: color-mix(in oklab, var(--color-accent) 25%, transparent);
26
+ /* Accent roles: the iOS tint and the kit's own accent uses read these; the info status keeps its blue. */
27
+ --color-background-accent-solid: var(--color-accent);
28
+ --color-background-accent-solid-hover: var(--accent-500);
29
+ --color-background-accent-solid-active: var(--accent-500);
30
+ --color-text-accent-solid: var(--white);
31
+
12
32
  /* =============================================
13
33
  Ring colors
14
34
  ============================================= */
@@ -270,9 +290,10 @@
270
290
  Typography
271
291
  ============================================= */
272
292
  /* Tracking */
273
- --font-tracking-wide: 0em;
274
- --font-tracking-normal: 0em;
275
- --font-tracking-tight: 0em;
293
+ /* The tracking of --font-sans by size (variables-tokens-root.css), resolved at each text's own size. */
294
+ --font-tracking-wide: var(--font-sans-tracking);
295
+ --font-tracking-normal: var(--font-sans-tracking);
296
+ --font-tracking-tight: var(--font-sans-tracking);
276
297
  /* Sizes */
277
298
  --font-heading-5xl-size: 4.5rem; /* 72px */
278
299
  --font-heading-5xl-line-height: 4.5rem; /* 72px */
@@ -429,7 +450,9 @@
429
450
  :where(:root), :where([data-theme="light"]) {
430
451
  --color-text-secondary: var(--gray-500);
431
452
  --color-text-tertiary: var(--gray-400);
432
- --color-ring: var(--blue-500);
453
+ --color-text-accent: var(--accent-500);
454
+ --color-background-accent-soft: var(--accent-50);
455
+ --color-ring: var(--accent-500);
433
456
  --color-background-primary-soft: var(--gray-100);
434
457
  --color-background-primary-soft-hover: var(--gray-150);
435
458
  --color-background-primary-soft-active: var(--gray-200);
@@ -534,7 +557,9 @@
534
557
  :where([data-theme="dark"]) {
535
558
  --color-text-secondary: var(--gray-700);
536
559
  --color-text-tertiary: var(--gray-600);
537
- --color-ring: var(--blue-400);
560
+ --color-text-accent: var(--accent-200);
561
+ --color-background-accent-soft: color-mix(in oklab, var(--color-accent) 25%, var(--gray-100));
562
+ --color-ring: var(--color-accent);
538
563
  --color-background-primary-soft: var(--gray-300);
539
564
  --color-background-primary-soft-hover: var(--gray-350);
540
565
  --color-background-primary-soft-active: var(--gray-400);
@@ -7,10 +7,8 @@
7
7
  --breakpoint-2xl: 1536px;
8
8
 
9
9
  --font-serif: initial;
10
- --font-sans: ui-sans-serif, -apple-system, system-ui, "Segoe UI", "Noto Sans", "Helvetica",
11
- "Arial", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
12
- --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", "Menlo", "Monaco", "Consolas",
13
- "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
10
+ /* --font-sans and --font-mono are set once, in variables-tokens-root.css: outside any layer, they win over
11
+ Tailwind's theme, so font-sans and font-mono draw the Plex faces. */
14
12
 
15
13
  --font-weight-*: initial;
16
14
  --font-weight-normal: 400;
@@ -25,12 +25,47 @@
25
25
  --radius-4xl: 1.5rem; /* 24px */
26
26
  --radius-full: 9999px;
27
27
 
28
+ /* Theme. These four are the place to restyle the whole kit: override them on :root, after the Plex UI
29
+ stylesheet, and every component, React and Vue, desktop and phone, follows.
30
+
31
+ --font-sans: the typeface of every text. Inter 4 by default, shipped with the kit (inter.css), on the
32
+ desktop as in the Figma kit and on a phone too. Apple's San Francisco may not be shipped on the web, and
33
+ a system stack would show it only on Apple devices.
34
+ --font-mono: the typeface of code, ids and other monospace text. Geist Mono by default, the Figma kit's
35
+ font/font-mono, shipped with the kit (geist-mono.css). It keeps its own spacing: no tracking is set on it.
36
+ --font-sans-tracking: the letter-spacing of --font-sans by size, set on every element so it follows each
37
+ text's own size. The Plex UI Figma kit's Inter tracking (Apps 2.4, 3. Typography, mode Android & Web), exact
38
+ at every size of its scale: 0 up to 12px, -0.05px at 13, -0.10px at 14 and 15, -0.15px at 16 and 17,
39
+ -0.10px at 18, -0.15px from 20 to 24, -0.20px from 28 to 48, -0.30px at 60, -0.36px at 72; a size between
40
+ takes the value between. With another typeface set what it asks, normal for one that tracks itself.
41
+ --color-accent: the accent of the kit, the iOS tint: links, focus rings, info buttons, badges and alerts,
42
+ the prominent bar button and a phone sheet's tinted actions. Their lighter and darker steps are drawn
43
+ from it in both themes. Primary stays the neutral ink of Plex UI. */
44
+ --font-sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, "Segoe UI", "Noto Sans", "Helvetica", "Arial",
45
+ "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
46
+ --font-sans-tracking: max(
47
+ min(
48
+ max(
49
+ min(
50
+ max(
51
+ min(max(min(0px, calc(0.6px - 0.05em)), -0.1px), calc(0.65px - 0.05em)),
52
+ -0.15px,
53
+ min(calc(0.05em - 1px), calc(0.35px - 0.025em))
54
+ ),
55
+ calc(0.15px - 0.0125em)
56
+ ),
57
+ -0.2px
58
+ ),
59
+ calc(0.2px - 0.0083333em)
60
+ ),
61
+ min(-0.005em, -0.3px)
62
+ );
63
+ --font-mono: "Geist Mono Variable", "Geist Mono", ui-monospace, "Menlo", "Consolas", "Liberation Mono",
64
+ "DejaVu Sans Mono", "Courier New", monospace;
65
+ --color-accent: #0285ff;
66
+
28
67
  /* Font stacks */
29
- --font-sans: ui-sans-serif, -apple-system, system-ui, "Segoe UI", "Noto Sans", "Helvetica",
30
- "Arial", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
31
68
  --font-serif: ui-serif, Georgia, "Times New Roman", serif;
32
- --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", "Menlo", "Monaco", "Consolas",
33
- "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
34
69
 
35
70
  /* Font weights */
36
71
  --font-weight-normal: 400;
@@ -38,3 +73,34 @@
38
73
  --font-weight-semibold: 600;
39
74
  --font-weight-bold: 700;
40
75
  }
76
+
77
+ /* Every element takes the tracking of --font-sans at its own size: letter-spacing inherits as a length, so a
78
+ value set once on the page would keep the page's size in a smaller label and a larger title. In the base
79
+ layer, so a component or a utility that sets its own wins. The form controls are named as well: Tailwind's
80
+ preflight gives them `letter-spacing: inherit` by their element names, which a zero-specificity rule would
81
+ not beat, and a 14px button inside 16px text would take the 16px tracking.
82
+ A tracking set on an element by a utility (`tracking-wide`) or a style reaches the text inside it, a Button's
83
+ label among it. A monospace text keeps its face's spacing, by its tag, a font-mono utility or a style. */
84
+ @layer base {
85
+ :where(*, ::before, ::after),
86
+ button,
87
+ input,
88
+ select,
89
+ optgroup,
90
+ textarea,
91
+ ::file-selector-button {
92
+ letter-spacing: var(--font-sans-tracking);
93
+ }
94
+
95
+ :where([class*="tracking-"], [style*="letter-spacing"]) :where(*, ::before, ::after),
96
+ :where([class*="tracking-"], [style*="letter-spacing"]) :is(button, input, select, optgroup, textarea) {
97
+ letter-spacing: inherit;
98
+ }
99
+
100
+ :where(code, kbd, samp, pre, [class*="font-mono"], [style*="font-mono"]),
101
+ :where(code, kbd, samp, pre, [class*="font-mono"], [style*="font-mono"]) :where(*, ::before, ::after),
102
+ :where(code, kbd, samp, pre, [class*="font-mono"], [style*="font-mono"]) :is(button, input, select, optgroup, textarea),
103
+ :is(button, input, select, optgroup, textarea):where([class*="font-mono"], [style*="font-mono"]) {
104
+ letter-spacing: normal;
105
+ }
106
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.1.46",
3
+ "version": "0.3.0",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,234 +0,0 @@
1
- @layer components {.StatCard {
2
- display: flex;
3
- flex-direction: column;
4
- width: 100%;
5
- min-width: 0;
6
- padding: var(--stat-card-padding);
7
- border-radius: var(--stat-card-radius);
8
- background: var(--stat-card-background);
9
- box-shadow: 0 0 0 1px var(--stat-card-border-color) inset;
10
- font-size: var(--stat-card-label-font-size);
11
- line-height: var(--font-text-sm-line-height);
12
- }
13
-
14
- .StatCard:where([data-size="sm"]) {
15
- padding: var(--stat-card-sm-padding-block) var(--stat-card-sm-padding-inline);
16
- }
17
-
18
- .StatCard:where([data-size="sm"]) .Label {
19
- font-size: var(--stat-card-sm-label-font-size);
20
- line-height: var(--font-text-xs-line-height);
21
- }
22
-
23
- .StatCard:where([data-size="sm"]) .InfoIcon svg {
24
- width: var(--stat-card-sm-info-icon-size);
25
- height: var(--stat-card-sm-info-icon-size);
26
- }
27
-
28
- .StatCard:where([data-size="sm"]) .Value {
29
- font-size: var(--stat-card-sm-value-font-size);
30
- line-height: var(--font-heading-md-line-height);
31
- letter-spacing: var(--font-heading-md-tracking);
32
- }
33
-
34
- .StatCard:where([data-size="sm"]) .Trend {
35
- font-size: var(--stat-card-sm-trend-font-size);
36
- line-height: var(--font-text-xs-line-height);
37
- }
38
-
39
- .StatCard:where([data-size="sm"]) .ValueRow {
40
- margin-block-start: calc(var(--spacing) * 1.5);
41
- }
42
-
43
- .StatCard:where([data-size="sm"]) .Footer {
44
- margin-block-start: calc(var(--spacing) * 0.5);
45
- }
46
-
47
- .StatCard:where([data-size="sm"]) .Description {
48
- font-size: var(--stat-card-sm-description-font-size);
49
- line-height: var(--font-text-xs-line-height);
50
- }
51
-
52
- .StatCard:where([data-size="sm"]) .TrendLabel {
53
- font-size: var(--stat-card-sm-description-font-size);
54
- line-height: var(--font-text-xs-line-height);
55
- }
56
-
57
- .StatCard:where([data-size="sm"]) .IconWrapper {
58
- border-radius: var(--stat-card-sm-icon-wrapper-radius);
59
- }
60
-
61
- .StatCard:where([data-size="sm"]) .IconWrapper svg {
62
- width: var(--stat-card-sm-icon-size);
63
- height: var(--stat-card-sm-icon-size);
64
- }
65
-
66
- .StatCard:where([data-size="sm"]) .Body {
67
- gap: calc(var(--spacing) * 2.5);
68
- }
69
-
70
- .StatCard:where([data-variant="accent"]) {
71
- border-inline-start: var(--stat-card-accent-width) solid
72
- var(--stat-card-accent-color, var(--color-background-primary-solid));
73
- }
74
-
75
- .StatCard:where([data-variant="accent"]):where([data-accent-color="primary"]) {
76
- --stat-card-accent-color: var(--color-background-primary-solid);
77
- }
78
-
79
- .StatCard:where([data-variant="accent"]):where([data-accent-color="info"]) {
80
- --stat-card-accent-color: var(--color-background-info-solid);
81
- }
82
-
83
- .StatCard:where([data-variant="accent"]):where([data-accent-color="success"]) {
84
- --stat-card-accent-color: var(--color-background-success-solid);
85
- }
86
-
87
- .StatCard:where([data-variant="accent"]):where([data-accent-color="warning"]) {
88
- --stat-card-accent-color: var(--color-background-warning-solid);
89
- }
90
-
91
- .StatCard:where([data-variant="accent"]):where([data-accent-color="danger"]) {
92
- --stat-card-accent-color: var(--color-background-danger-solid);
93
- }
94
-
95
- .StatCard:where([data-variant="accent"]):where([data-accent-color="secondary"]) {
96
- --stat-card-accent-color: var(--color-background-secondary-solid);
97
- }
98
-
99
- .StatCard:where([data-variant="accent"]):where([data-accent-color="discovery"]) {
100
- --stat-card-accent-color: var(--color-background-discovery-solid);
101
- }
102
-
103
- .StatCard:where([data-variant="accent"]):where([data-accent-color="caution"]) {
104
- --stat-card-accent-color: var(--color-background-caution-solid);
105
- }.Header {
106
- display: flex;
107
- align-items: center;
108
- justify-content: space-between;
109
- gap: calc(var(--spacing) * 6);
110
- }.LabelRow {
111
- display: flex;
112
- align-items: center;
113
- gap: calc(var(--spacing) * 1);
114
- min-width: 0;
115
- }.Label {
116
- min-width: 0;
117
- overflow: hidden;
118
- color: var(--stat-card-label-color);
119
- font-size: var(--stat-card-label-font-size);
120
- line-height: var(--font-text-sm-line-height);
121
- text-overflow: ellipsis;
122
- white-space: nowrap;
123
- }.InfoIcon {
124
- display: inline-flex;
125
- flex-shrink: 0;
126
- color: var(--color-text-tertiary);
127
- cursor: help;
128
- }
129
-
130
- .InfoIcon svg {
131
- width: var(--stat-card-info-icon-size);
132
- height: var(--stat-card-info-icon-size);
133
- }.Body {
134
- display: flex;
135
- align-items: flex-start;
136
- gap: calc(var(--spacing) * 3);
137
- }.Content {
138
- flex: 1;
139
- min-width: 0;
140
- }
141
-
142
- .Content .ValueRow {
143
- margin-block-start: calc(var(--spacing) * 0.5);
144
- }.IconWrapper {
145
- display: flex;
146
- align-items: center;
147
- justify-content: center;
148
- flex-shrink: 0;
149
- align-self: stretch;
150
- aspect-ratio: 1;
151
- border-radius: var(--stat-card-icon-wrapper-radius);
152
- background: var(--stat-card-icon-wrapper-background);
153
- color: var(--stat-card-icon-color);
154
- }
155
-
156
- .IconWrapper svg {
157
- width: var(--stat-card-icon-size);
158
- height: var(--stat-card-icon-size);
159
- }.HeaderEnd {
160
- display: flex;
161
- align-items: center;
162
- gap: calc(var(--spacing) * 2);
163
- flex-shrink: 0;
164
- }.ValueRow {
165
- display: flex;
166
- align-items: baseline;
167
- gap: calc(var(--spacing) * 2);
168
- margin-block-start: calc(var(--spacing) * 3);
169
- }.Value {
170
- min-width: 0;
171
- color: var(--stat-card-value-color);
172
- font-size: var(--stat-card-value-font-size);
173
- font-weight: var(--stat-card-value-font-weight);
174
- line-height: var(--font-heading-xl-line-height);
175
- letter-spacing: var(--font-heading-xl-tracking);
176
- }.Trend {
177
- display: inline-flex;
178
- flex-shrink: 0;
179
- font-size: var(--stat-card-trend-font-size);
180
- font-weight: var(--stat-card-trend-font-weight);
181
- line-height: var(--font-text-sm-line-height);
182
- white-space: nowrap;
183
- }.TrendPositive {
184
- color: var(--stat-card-trend-positive-color);
185
- }.TrendNegative {
186
- color: var(--stat-card-trend-negative-color);
187
- }.TrendNeutral {
188
- color: var(--stat-card-trend-neutral-color);
189
- }.Footer {
190
- display: flex;
191
- flex-direction: column;
192
- gap: calc(var(--spacing) * 0.5);
193
- margin-block-start: calc(var(--spacing) * 2);
194
- }.TrendLabel {
195
- color: var(--stat-card-description-color);
196
- font-size: var(--stat-card-description-font-size);
197
- font-weight: var(--font-weight-normal);
198
- line-height: var(--font-text-sm-line-height);
199
- }.Description {
200
- color: var(--stat-card-description-color);
201
- font-size: var(--stat-card-description-font-size);
202
- line-height: var(--font-text-sm-line-height);
203
- text-wrap: pretty;
204
- }.Progress {
205
- display: flex;
206
- align-items: center;
207
- gap: calc(var(--spacing) * 2);
208
- margin-block-start: calc(var(--spacing) * 3);
209
- }.ProgressTrack {
210
- flex: 1;
211
- height: var(--stat-card-progress-height);
212
- border-radius: var(--stat-card-progress-radius);
213
- background: var(--stat-card-progress-background);
214
- overflow: hidden;
215
- }.ProgressBar {
216
- height: 100%;
217
- border-radius: inherit;
218
- background: var(--stat-card-progress-fill);
219
- }.ProgressLabel {
220
- color: var(--stat-card-description-color);
221
- font-size: var(--stat-card-description-font-size);
222
- line-height: var(--font-text-sm-line-height);
223
- white-space: nowrap;
224
- }.Sparkline {
225
- margin-block-start: calc(var(--spacing) * 3);
226
- color: var(--color-text-tertiary);
227
- }
228
-
229
- .Sparkline svg {
230
- display: block;
231
- width: 100%;
232
- height: auto;
233
- }
234
- }