@wintermuted/ui-theme 1.0.2 → 1.0.3
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
CHANGED
|
@@ -40,6 +40,16 @@ They are also included in the aggregate theme and use the existing tokens.
|
|
|
40
40
|
NumberStepper needs button and tooltip CSS when loading sheets individually.
|
|
41
41
|
Color-picker and selector styles never depend on application toolbar or game selectors.
|
|
42
42
|
|
|
43
|
+
`load-status.css` and `action-disclosure.css` provide scoped `.wm-load-status` and
|
|
44
|
+
`.wm-action-disclosure-*` styles for neutral loading/retry feedback and independent
|
|
45
|
+
header actions. They are exported under `styles/components/` and registered in the
|
|
46
|
+
aggregate theme. Load tokens and button CSS when importing these sheets individually;
|
|
47
|
+
base CSS is optional for document defaults. `load-status.css` imports `spinner.css`,
|
|
48
|
+
which owns `.wm-sr-only`, so help-mode announcements stay visually hidden with modular imports.
|
|
49
|
+
RefreshAction uses button CSS alone.
|
|
50
|
+
The additive `--wm-color-warning-text` token supplies readable warning text in light/dark
|
|
51
|
+
themes without changing the existing warning color or Button/Accordion defaults.
|
|
52
|
+
|
|
43
53
|
This package lives in `packages/ui-theme` within the [Wintermuted UI monorepo](https://github.com/wintermuted/wintermuted-ui). New monorepo tags are not directly installable as the theme through a GitHub-source npm dependency; use npm releases or a tarball produced by `npm pack --workspace=@wintermuted/ui-theme`.
|
|
44
54
|
|
|
45
55
|
## Migrating to 1.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wintermuted/ui-theme",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Shared Wintermuted UI theme (design tokens, base resets, and component styles) derived from the CV styling language.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"volta": {
|
|
@@ -78,7 +78,9 @@
|
|
|
78
78
|
"./styles/components/color-picker.css": "./styles/components/color-picker.css",
|
|
79
79
|
"./styles/components/ranked-bar-list.css": "./styles/components/ranked-bar-list.css",
|
|
80
80
|
"./styles/components/number-stepper.css": "./styles/components/number-stepper.css",
|
|
81
|
-
"./styles/components/language-selector.css": "./styles/components/language-selector.css"
|
|
81
|
+
"./styles/components/language-selector.css": "./styles/components/language-selector.css",
|
|
82
|
+
"./styles/components/load-status.css": "./styles/components/load-status.css",
|
|
83
|
+
"./styles/components/action-disclosure.css": "./styles/components/action-disclosure.css"
|
|
82
84
|
},
|
|
83
85
|
"scripts": {
|
|
84
86
|
"lint": "stylelint \"styles/**/*.css\" \"index.css\""
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.wm-action-disclosure-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--wm-space-2);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.wm-action-disclosure-heading {
|
|
8
|
+
flex: 1;
|
|
9
|
+
min-inline-size: 0;
|
|
10
|
+
margin: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.wm-action-disclosure .wm-action-disclosure-trigger {
|
|
14
|
+
justify-content: flex-start;
|
|
15
|
+
inline-size: 100%;
|
|
16
|
+
min-block-size: var(--wm-control-height);
|
|
17
|
+
padding: var(--wm-space-1);
|
|
18
|
+
border: 0;
|
|
19
|
+
background: transparent;
|
|
20
|
+
color: var(--wm-color-text-secondary);
|
|
21
|
+
font: inherit;
|
|
22
|
+
font-size: var(--wm-text-sm);
|
|
23
|
+
letter-spacing: normal;
|
|
24
|
+
text-transform: none;
|
|
25
|
+
text-align: start;
|
|
26
|
+
white-space: normal;
|
|
27
|
+
overflow-wrap: anywhere;
|
|
28
|
+
transform: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.wm-action-disclosure-indicator {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
flex: 0 0 auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.wm-action-disclosure-trigger[aria-expanded="true"] > .wm-action-disclosure-indicator {
|
|
37
|
+
transform: rotate(90deg);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.wm-action-disclosure .wm-action-disclosure-action {
|
|
41
|
+
flex: 0 0 auto;
|
|
42
|
+
min-inline-size: var(--wm-control-height);
|
|
43
|
+
min-block-size: var(--wm-control-height);
|
|
44
|
+
max-inline-size: 50%;
|
|
45
|
+
padding: var(--wm-space-2);
|
|
46
|
+
border: 0;
|
|
47
|
+
background: transparent;
|
|
48
|
+
color: var(--wm-color-text-secondary);
|
|
49
|
+
letter-spacing: normal;
|
|
50
|
+
text-transform: none;
|
|
51
|
+
white-space: normal;
|
|
52
|
+
overflow-wrap: anywhere;
|
|
53
|
+
transform: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.wm-action-disclosure .wm-action-disclosure-trigger:hover,
|
|
57
|
+
.wm-action-disclosure .wm-action-disclosure-action:hover {
|
|
58
|
+
background: var(--wm-color-surface-muted);
|
|
59
|
+
color: var(--wm-color-text);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.wm-action-disclosure .wm-action-disclosure-trigger:focus-visible,
|
|
63
|
+
.wm-action-disclosure .wm-action-disclosure-action:focus-visible {
|
|
64
|
+
outline: 2px solid var(--wm-color-accent);
|
|
65
|
+
outline-offset: -2px;
|
|
66
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@import url("./spinner.css");
|
|
2
|
+
|
|
3
|
+
.wm-load-status {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
gap: var(--wm-space-1);
|
|
8
|
+
max-inline-size: 100%;
|
|
9
|
+
color: var(--wm-color-danger);
|
|
10
|
+
overflow-wrap: anywhere;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.wm-load-status-warning {
|
|
14
|
+
color: var(--wm-color-warning-text);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.wm-load-status .wm-load-status-retry {
|
|
18
|
+
min-inline-size: var(--wm-control-height);
|
|
19
|
+
min-block-size: var(--wm-control-height);
|
|
20
|
+
padding: var(--wm-space-1);
|
|
21
|
+
color: inherit;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.wm-load-status-loading {
|
|
25
|
+
color: var(--wm-color-text-muted);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.wm-load-status-retry:focus-visible {
|
|
29
|
+
outline: 2px solid var(--wm-color-accent);
|
|
30
|
+
outline-offset: -2px;
|
|
31
|
+
}
|
package/styles/components.css
CHANGED
package/styles/tokens.css
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
--wm-color-success-soft: #e6f4ea;
|
|
35
35
|
--wm-color-success-border: #cfe6d4;
|
|
36
36
|
--wm-color-warning: #ea8600;
|
|
37
|
+
--wm-color-warning-text: #946000;
|
|
37
38
|
--wm-color-warning-soft: #fff7e0;
|
|
38
39
|
--wm-color-warning-border: #f6d28b;
|
|
39
40
|
--wm-color-danger: #c5221f;
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
--wm-color-success-soft: #132719;
|
|
72
73
|
--wm-color-success-border: #21452c;
|
|
73
74
|
--wm-color-warning: #ffb95a;
|
|
75
|
+
--wm-color-warning-text: #ffb95a;
|
|
74
76
|
--wm-color-warning-soft: #35250f;
|
|
75
77
|
--wm-color-warning-border: #5e441d;
|
|
76
78
|
--wm-color-danger: #ff978f;
|