@nswds/tokens 4.0.0 → 4.2.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/dist/css/colors/semantic/hex.dark.css +1 -1
- package/dist/css/colors/semantic/hsl.dark.css +1 -1
- package/dist/css/colors/semantic/oklch.dark.css +1 -1
- package/dist/css/colors/semantic/rgb.dark.css +1 -1
- package/dist/css/shadow/global.css +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/less/shadow/global.less +4 -4
- package/dist/scss/shadow/global.scss +4 -4
- package/dist/tokens/global/shadow/canonical.json +4 -4
- package/dist/tokens/motion.base.json +118 -0
- package/dist/tokens/primitives-global.light.json +1908 -0
- package/dist/tokens/primitives-semantic.dark.json +532 -0
- package/dist/tokens/primitives-semantic.light.json +147 -1525
- package/dist/tokens/z-index.base.json +132 -0
- package/package.json +9 -2
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
"z-index": {
|
|
3
|
+
"base": {
|
|
4
|
+
"$type": "number",
|
|
5
|
+
"$value": 0,
|
|
6
|
+
"$description": "Base stacking level (0) — default in-flow content.",
|
|
7
|
+
"$extensions": {
|
|
8
|
+
"com.figma": {
|
|
9
|
+
"hiddenFromPublishing": false,
|
|
10
|
+
"scopes": [
|
|
11
|
+
"ALL_SCOPES"
|
|
12
|
+
],
|
|
13
|
+
"codeSyntax": {
|
|
14
|
+
"WEB": "var(--z-index-base)"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"dropdown": {
|
|
20
|
+
"$type": "number",
|
|
21
|
+
"$value": 1000,
|
|
22
|
+
"$description": "Dropdown menus and select popups.",
|
|
23
|
+
"$extensions": {
|
|
24
|
+
"com.figma": {
|
|
25
|
+
"hiddenFromPublishing": false,
|
|
26
|
+
"scopes": [
|
|
27
|
+
"ALL_SCOPES"
|
|
28
|
+
],
|
|
29
|
+
"codeSyntax": {
|
|
30
|
+
"WEB": "var(--z-index-dropdown)"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"sticky": {
|
|
36
|
+
"$type": "number",
|
|
37
|
+
"$value": 1100,
|
|
38
|
+
"$description": "Sticky elements that pin on scroll (headers, toolbars).",
|
|
39
|
+
"$extensions": {
|
|
40
|
+
"com.figma": {
|
|
41
|
+
"hiddenFromPublishing": false,
|
|
42
|
+
"scopes": [
|
|
43
|
+
"ALL_SCOPES"
|
|
44
|
+
],
|
|
45
|
+
"codeSyntax": {
|
|
46
|
+
"WEB": "var(--z-index-sticky)"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"overlay": {
|
|
52
|
+
"$type": "number",
|
|
53
|
+
"$value": 1200,
|
|
54
|
+
"$description": "Full-screen overlay scrims sitting behind modal content.",
|
|
55
|
+
"$extensions": {
|
|
56
|
+
"com.figma": {
|
|
57
|
+
"hiddenFromPublishing": false,
|
|
58
|
+
"scopes": [
|
|
59
|
+
"ALL_SCOPES"
|
|
60
|
+
],
|
|
61
|
+
"codeSyntax": {
|
|
62
|
+
"WEB": "var(--z-index-overlay)"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"modal": {
|
|
68
|
+
"$type": "number",
|
|
69
|
+
"$value": 1300,
|
|
70
|
+
"$description": "Modal dialogs and side sheets.",
|
|
71
|
+
"$extensions": {
|
|
72
|
+
"com.figma": {
|
|
73
|
+
"hiddenFromPublishing": false,
|
|
74
|
+
"scopes": [
|
|
75
|
+
"ALL_SCOPES"
|
|
76
|
+
],
|
|
77
|
+
"codeSyntax": {
|
|
78
|
+
"WEB": "var(--z-index-modal)"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"popover": {
|
|
84
|
+
"$type": "number",
|
|
85
|
+
"$value": 1400,
|
|
86
|
+
"$description": "Popovers anchored to a trigger, above modals.",
|
|
87
|
+
"$extensions": {
|
|
88
|
+
"com.figma": {
|
|
89
|
+
"hiddenFromPublishing": false,
|
|
90
|
+
"scopes": [
|
|
91
|
+
"ALL_SCOPES"
|
|
92
|
+
],
|
|
93
|
+
"codeSyntax": {
|
|
94
|
+
"WEB": "var(--z-index-popover)"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"toast": {
|
|
100
|
+
"$type": "number",
|
|
101
|
+
"$value": 1500,
|
|
102
|
+
"$description": "Toast and snackbar notifications.",
|
|
103
|
+
"$extensions": {
|
|
104
|
+
"com.figma": {
|
|
105
|
+
"hiddenFromPublishing": false,
|
|
106
|
+
"scopes": [
|
|
107
|
+
"ALL_SCOPES"
|
|
108
|
+
],
|
|
109
|
+
"codeSyntax": {
|
|
110
|
+
"WEB": "var(--z-index-toast)"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"tooltip": {
|
|
116
|
+
"$type": "number",
|
|
117
|
+
"$value": 1600,
|
|
118
|
+
"$description": "Tooltips — the top-most interactive layer.",
|
|
119
|
+
"$extensions": {
|
|
120
|
+
"com.figma": {
|
|
121
|
+
"hiddenFromPublishing": false,
|
|
122
|
+
"scopes": [
|
|
123
|
+
"ALL_SCOPES"
|
|
124
|
+
],
|
|
125
|
+
"codeSyntax": {
|
|
126
|
+
"WEB": "var(--z-index-tooltip)"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nswds/tokens",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Design tokens for NSW Government digital products, providing colour tokens, theme outputs, and brand assets for use across CSS, SCSS, Less, JavaScript, TypeScript, JSON, Tailwind, Figma, and DTCG-compatible workflows.",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -46,7 +46,14 @@
|
|
|
46
46
|
"build:canonical": "node scripts/build-canonical.mjs",
|
|
47
47
|
"test:tokens": "vitest run --globals",
|
|
48
48
|
"sync-tokens-to-figma": "tsx scripts/sync_tokens_to_figma.ts",
|
|
49
|
-
"sync-figma-to-tokens": "tsx scripts/sync_figma_to_tokens.ts"
|
|
49
|
+
"sync-figma-to-tokens": "tsx scripts/sync_figma_to_tokens.ts",
|
|
50
|
+
"snyk:check": "bash -lc 'npm exec --yes --package snyk@latest -- snyk test --all-projects --exclude=fixtures,.next --json-file-output=snyk-analysis.json; code=$?; if [ $code -eq 0 ] || [ $code -eq 1 ]; then exit 0; fi; exit $code'",
|
|
51
|
+
"snyk:monitor": "npm exec --yes --package snyk@latest -- snyk monitor --all-projects --exclude=fixtures,.next",
|
|
52
|
+
"branch:create": "scripts/create-branch.sh",
|
|
53
|
+
"branch:suggest": "scripts/suggest-branch-name.sh",
|
|
54
|
+
"branch:suggest:create": "scripts/suggest-branch-name.sh --create",
|
|
55
|
+
"commit": "scripts/git-commit.sh",
|
|
56
|
+
"pr": "scripts/pull-request.sh"
|
|
50
57
|
},
|
|
51
58
|
"tsup": {
|
|
52
59
|
"entry": [
|