@neovici/cosmoz-tokens 3.5.0 → 3.5.2
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/package.json +2 -2
- package/src/semantic.css +3 -3
- package/src/shadows.css +16 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-tokens",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"description": "Design tokens for Cosmoz web components based on Untitled UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-tokens",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@pionjs/pion": "^2.5.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@changesets/cli": "^
|
|
63
|
+
"@changesets/cli": "^3.0.2",
|
|
64
64
|
"@commitlint/cli": "^20.0.0",
|
|
65
65
|
"@commitlint/config-conventional": "^20.0.0",
|
|
66
66
|
"@neovici/cfg": "^2.8.0",
|
package/src/semantic.css
CHANGED
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
--cz-color-fg-info-secondary: var(--cz-color-info-400);
|
|
192
192
|
|
|
193
193
|
/* Focus ring adjustments for dark mode */
|
|
194
|
-
--cz-focus-ring: 0 0 0
|
|
195
|
-
--cz-focus-ring-error: 0 0 0
|
|
196
|
-
--cz-focus-ring-info: 0 0 0
|
|
194
|
+
--cz-focus-ring: inset 0 0 0 2px var(--cz-color-brand-800);
|
|
195
|
+
--cz-focus-ring-error: inset 0 0 0 2px var(--cz-color-error-800);
|
|
196
|
+
--cz-focus-ring-info: inset 0 0 0 2px var(--cz-color-info-800);
|
|
197
197
|
}
|
package/src/shadows.css
CHANGED
|
@@ -33,6 +33,20 @@
|
|
|
33
33
|
--cz-shadow-xs-skeumorphic: var(--cz-shadow-skeumorphic), var(--cz-shadow-xs);
|
|
34
34
|
|
|
35
35
|
/* Focus ring shadows */
|
|
36
|
-
--cz-focus-ring: 0 0 0
|
|
37
|
-
--cz-focus-ring-error: 0 0 0
|
|
36
|
+
--cz-focus-ring: inset 0 0 0 2px var(--cz-color-brand-100);
|
|
37
|
+
--cz-focus-ring-error: inset 0 0 0 2px var(--cz-color-error-100);
|
|
38
|
+
--cz-focus-ring-info: inset 0 0 0 2px var(--cz-color-info-100);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:root[data-theme='dark'] {
|
|
42
|
+
/*
|
|
43
|
+
* The light-theme skeumorphic ring is near-black, so on a dark surface it
|
|
44
|
+
* disappears and the ::before highlight is left acting as the border. Flip
|
|
45
|
+
* the ring to light so it stays the edge, and drop the highlight, which
|
|
46
|
+
* would otherwise draw a second border just inside it.
|
|
47
|
+
*/
|
|
48
|
+
--cz-shadow-skeumorphic:
|
|
49
|
+
0px 0px 0px 1px rgba(255, 255, 255, 0.12) inset,
|
|
50
|
+
0px -2px 0px 0px rgba(10, 13, 18, 0.2) inset;
|
|
51
|
+
--skeumorphic-color: transparent;
|
|
38
52
|
}
|