@ponchia/ui 0.11.0 → 0.13.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/CHANGELOG.md +98 -0
- package/MIGRATIONS.json +24 -0
- package/README.md +5 -5
- package/behaviors/forms.d.ts +1 -1
- package/behaviors/internal.d.ts +1 -1
- package/classes/classes.json +3 -1
- package/classes/index.d.ts +2 -0
- package/classes/index.js +3 -1
- package/classes/vscode.css-custom-data.json +64 -0
- package/css/base.css +2 -2
- package/css/blocknote.css +61 -0
- package/css/clamp.css +2 -2
- package/css/content.css +126 -0
- package/css/dataviz.css +117 -64
- package/css/disclosure.css +10 -10
- package/css/forms.css +8 -8
- package/css/legend.css +1 -2
- package/css/primitives.css +5 -6
- package/css/row.css +2 -2
- package/css/term.css +2 -2
- package/css/textref.css +2 -2
- package/css/toc.css +2 -2
- package/css/tokens.css +43 -0
- package/css/workbench.css +2 -2
- package/dist/bronto.css +1 -1
- package/dist/css/analytical.css +1 -1
- package/dist/css/base.css +1 -1
- package/dist/css/blocknote.css +1 -0
- package/dist/css/clamp.css +1 -1
- package/dist/css/content.css +1 -1
- package/dist/css/dataviz.css +1 -1
- package/dist/css/disclosure.css +1 -1
- package/dist/css/forms.css +1 -1
- package/dist/css/legend.css +1 -1
- package/dist/css/report-kit.css +1 -1
- package/dist/css/row.css +1 -1
- package/dist/css/term.css +1 -1
- package/dist/css/textref.css +1 -1
- package/dist/css/toc.css +1 -1
- package/dist/css/tokens.css +1 -1
- package/dist/css/workbench.css +1 -1
- package/docs/adr/0001-color-system.md +29 -0
- package/docs/architecture.md +1 -1
- package/docs/compositions.md +2 -2
- package/docs/contrast.md +24 -24
- package/docs/frontier-primitives.md +5 -0
- package/docs/interop/blocknote.md +60 -0
- package/docs/mermaid.md +1 -1
- package/docs/migrations/0.11-to-0.12.md +47 -0
- package/docs/package-contract.md +12 -2
- package/docs/reference.md +18 -1
- package/docs/renderer.md +100 -0
- package/docs/reporting.md +9 -9
- package/docs/stability.md +4 -2
- package/docs/theming.md +77 -20
- package/docs/usage.md +12 -8
- package/docs/vega.md +24 -23
- package/llms.txt +8 -4
- package/package.json +24 -12
- package/renderer/index.d.ts +203 -0
- package/renderer/index.d.ts.map +1 -0
- package/renderer/index.js +650 -0
- package/tokens/charts.d.ts +16 -10
- package/tokens/charts.js +65 -49
- package/tokens/charts.json +77 -29
- package/tokens/figma.variables.json +240 -0
- package/tokens/index.d.ts +2 -2
- package/tokens/index.js +30 -2
- package/tokens/index.json +32 -0
- package/tokens/mermaid.js +56 -56
- package/tokens/mermaid.json +56 -56
- package/tokens/resolved.json +17 -1
- package/tokens/tokens.dtcg.json +190 -0
- package/tokens/vega.d.ts +3 -3
- package/tokens/vega.js +111 -72
- package/tokens/vega.json +198 -126
package/tokens/index.js
CHANGED
|
@@ -33,10 +33,17 @@ export const cssVars = {
|
|
|
33
33
|
'--space-lg': '1.35rem',
|
|
34
34
|
'--space-xl': '1.75rem',
|
|
35
35
|
'--space-2xl': '2.5rem',
|
|
36
|
+
// Half steps on the 0.25rem unit, for dense tool chrome: 2, 3, 6 and 10px
|
|
37
|
+
// at a 16px root, the gaps a toolbar, a row or a node header needs and the
|
|
38
|
+
// t-shirt scale skips. Named by units, so --space-1-5 is 1.5 x --space-2xs.
|
|
39
|
+
'--space-0-5': '0.125rem',
|
|
40
|
+
'--space-0-75': '0.1875rem',
|
|
41
|
+
'--space-1-5': '0.375rem',
|
|
42
|
+
'--space-2-5': '0.625rem',
|
|
36
43
|
// Tap targets. Both floors are clamped in px against the rem so they cannot
|
|
37
44
|
// shrink below the standard when a host re-points the root font size —
|
|
38
|
-
//
|
|
39
|
-
//
|
|
45
|
+
// under a 15px root a bare 2.9rem is 43.5px, half a pixel short of the
|
|
46
|
+
// target floor.
|
|
40
47
|
// `--tap-target` is the WCAG 2.5.5 (AAA) / iOS-HIG / Material 44px target
|
|
41
48
|
// every coarse-pointer control floats to. `--tap-target-min` is the WCAG
|
|
42
49
|
// 2.5.8 (AA) 24px minimum, for controls that only have to clear the smaller
|
|
@@ -85,6 +92,27 @@ export const cssVars = {
|
|
|
85
92
|
'--z-overlay': '30',
|
|
86
93
|
'--z-popover': '50',
|
|
87
94
|
'--z-toast': '60',
|
|
95
|
+
// A workspace's named layers: a tool drawn over a canvas stacks chrome,
|
|
96
|
+
// panels, dialogs, menus, toasts, tooltips and presentation chrome. Where a
|
|
97
|
+
// page layer already means the same thing the workspace name aliases it,
|
|
98
|
+
// so the two scales cannot disagree. A menu sits above a dialog because a
|
|
99
|
+
// dialog opens menus; presentation chrome sits above everything it drives.
|
|
100
|
+
'--z-canvas': 'var(--z-base)',
|
|
101
|
+
'--z-chrome': 'var(--z-sticky)',
|
|
102
|
+
'--z-panel': '25',
|
|
103
|
+
'--z-modal': 'var(--z-overlay)',
|
|
104
|
+
'--z-menu': 'var(--z-popover)',
|
|
105
|
+
'--z-tooltip': '70',
|
|
106
|
+
'--z-navigation': '80',
|
|
107
|
+
// Zoom. --ui-px is one screen pixel. On a page these are plain px; inside
|
|
108
|
+
// a scaled surface marked [data-ui-zoom] (css/tokens.css) they are
|
|
109
|
+
// re-declared in --ui-px, 1px divided by the host's --ui-zoom, so hairlines
|
|
110
|
+
// and focus rings stay visible zoomed out and crisp zoomed in.
|
|
111
|
+
'--ui-zoom': '1',
|
|
112
|
+
'--ui-px': '1px',
|
|
113
|
+
'--hairline': '1px',
|
|
114
|
+
'--focus-ring-width': '2px',
|
|
115
|
+
'--focus-ring-offset': '2px',
|
|
88
116
|
'--accent-1': 'color-mix(in oklch, var(--accent) 8%, var(--accent-ramp-end))',
|
|
89
117
|
'--accent-2': 'color-mix(in oklch, var(--accent) 16%, var(--accent-ramp-end))',
|
|
90
118
|
'--accent-3': 'color-mix(in oklch, var(--accent) 32%, var(--accent-ramp-end))',
|
package/tokens/index.json
CHANGED
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
"--space-lg": "1.35rem",
|
|
15
15
|
"--space-xl": "1.75rem",
|
|
16
16
|
"--space-2xl": "2.5rem",
|
|
17
|
+
"--space-0-5": "0.125rem",
|
|
18
|
+
"--space-0-75": "0.1875rem",
|
|
19
|
+
"--space-1-5": "0.375rem",
|
|
20
|
+
"--space-2-5": "0.625rem",
|
|
17
21
|
"--tap-target": "max(44px, 2.9rem)",
|
|
18
22
|
"--tap-target-min": "max(24px, 1.6rem)",
|
|
19
23
|
"--safe-area-top": "env(safe-area-inset-top, 0px)",
|
|
@@ -48,6 +52,18 @@
|
|
|
48
52
|
"--z-overlay": "30",
|
|
49
53
|
"--z-popover": "50",
|
|
50
54
|
"--z-toast": "60",
|
|
55
|
+
"--z-canvas": "var(--z-base)",
|
|
56
|
+
"--z-chrome": "var(--z-sticky)",
|
|
57
|
+
"--z-panel": "25",
|
|
58
|
+
"--z-modal": "var(--z-overlay)",
|
|
59
|
+
"--z-menu": "var(--z-popover)",
|
|
60
|
+
"--z-tooltip": "70",
|
|
61
|
+
"--z-navigation": "80",
|
|
62
|
+
"--ui-zoom": "1",
|
|
63
|
+
"--ui-px": "1px",
|
|
64
|
+
"--hairline": "1px",
|
|
65
|
+
"--focus-ring-width": "2px",
|
|
66
|
+
"--focus-ring-offset": "2px",
|
|
51
67
|
"--accent-1": "color-mix(in oklch, var(--accent) 8%, var(--accent-ramp-end))",
|
|
52
68
|
"--accent-2": "color-mix(in oklch, var(--accent) 16%, var(--accent-ramp-end))",
|
|
53
69
|
"--accent-3": "color-mix(in oklch, var(--accent) 32%, var(--accent-ramp-end))",
|
|
@@ -165,6 +181,10 @@
|
|
|
165
181
|
"space-lg": "1.35rem",
|
|
166
182
|
"space-xl": "1.75rem",
|
|
167
183
|
"space-2xl": "2.5rem",
|
|
184
|
+
"space-0-5": "0.125rem",
|
|
185
|
+
"space-0-75": "0.1875rem",
|
|
186
|
+
"space-1-5": "0.375rem",
|
|
187
|
+
"space-2-5": "0.625rem",
|
|
168
188
|
"tap-target": "max(44px, 2.9rem)",
|
|
169
189
|
"tap-target-min": "max(24px, 1.6rem)",
|
|
170
190
|
"safe-area-top": "env(safe-area-inset-top, 0px)",
|
|
@@ -199,6 +219,18 @@
|
|
|
199
219
|
"z-overlay": "30",
|
|
200
220
|
"z-popover": "50",
|
|
201
221
|
"z-toast": "60",
|
|
222
|
+
"z-canvas": "var(--z-base)",
|
|
223
|
+
"z-chrome": "var(--z-sticky)",
|
|
224
|
+
"z-panel": "25",
|
|
225
|
+
"z-modal": "var(--z-overlay)",
|
|
226
|
+
"z-menu": "var(--z-popover)",
|
|
227
|
+
"z-tooltip": "70",
|
|
228
|
+
"z-navigation": "80",
|
|
229
|
+
"ui-zoom": "1",
|
|
230
|
+
"ui-px": "1px",
|
|
231
|
+
"hairline": "1px",
|
|
232
|
+
"focus-ring-width": "2px",
|
|
233
|
+
"focus-ring-offset": "2px",
|
|
202
234
|
"accent-1": "color-mix(in oklch, var(--accent) 8%, var(--accent-ramp-end))",
|
|
203
235
|
"accent-2": "color-mix(in oklch, var(--accent) 16%, var(--accent-ramp-end))",
|
|
204
236
|
"accent-3": "color-mix(in oklch, var(--accent) 32%, var(--accent-ramp-end))",
|
package/tokens/mermaid.js
CHANGED
|
@@ -60,34 +60,34 @@ export const mermaid = {
|
|
|
60
60
|
tagLabelColor: '#0a0a0a',
|
|
61
61
|
tagLabelBackground: '#ececea',
|
|
62
62
|
tagLabelBorder: '#d8d8d4',
|
|
63
|
-
pie1: '#
|
|
64
|
-
pie2: '#
|
|
65
|
-
pie3: '#
|
|
66
|
-
pie4: '#
|
|
67
|
-
pie5: '#
|
|
68
|
-
pie6: '#
|
|
69
|
-
pie7: '#
|
|
70
|
-
pie8: '#
|
|
71
|
-
pie9: '#
|
|
72
|
-
pie10: '#
|
|
73
|
-
pie11: '#
|
|
74
|
-
pie12: '#
|
|
75
|
-
git0: '#
|
|
76
|
-
git1: '#
|
|
77
|
-
git2: '#
|
|
78
|
-
git3: '#
|
|
79
|
-
git4: '#
|
|
80
|
-
git5: '#
|
|
81
|
-
git6: '#
|
|
82
|
-
git7: '#
|
|
83
|
-
fillType0: '#
|
|
84
|
-
fillType1: '#
|
|
85
|
-
fillType2: '#
|
|
86
|
-
fillType3: '#
|
|
87
|
-
fillType4: '#
|
|
88
|
-
fillType5: '#
|
|
89
|
-
fillType6: '#
|
|
90
|
-
fillType7: '#
|
|
63
|
+
pie1: '#2a78d6',
|
|
64
|
+
pie2: '#eb6834',
|
|
65
|
+
pie3: '#1baf7a',
|
|
66
|
+
pie4: '#eda100',
|
|
67
|
+
pie5: '#e87ba4',
|
|
68
|
+
pie6: '#008300',
|
|
69
|
+
pie7: '#4a3aa7',
|
|
70
|
+
pie8: '#e34948',
|
|
71
|
+
pie9: '#2a78d6',
|
|
72
|
+
pie10: '#eb6834',
|
|
73
|
+
pie11: '#1baf7a',
|
|
74
|
+
pie12: '#eda100',
|
|
75
|
+
git0: '#2a78d6',
|
|
76
|
+
git1: '#eb6834',
|
|
77
|
+
git2: '#1baf7a',
|
|
78
|
+
git3: '#eda100',
|
|
79
|
+
git4: '#e87ba4',
|
|
80
|
+
git5: '#008300',
|
|
81
|
+
git6: '#4a3aa7',
|
|
82
|
+
git7: '#e34948',
|
|
83
|
+
fillType0: '#2a78d6',
|
|
84
|
+
fillType1: '#eb6834',
|
|
85
|
+
fillType2: '#1baf7a',
|
|
86
|
+
fillType3: '#eda100',
|
|
87
|
+
fillType4: '#e87ba4',
|
|
88
|
+
fillType5: '#008300',
|
|
89
|
+
fillType6: '#4a3aa7',
|
|
90
|
+
fillType7: '#e34948',
|
|
91
91
|
},
|
|
92
92
|
dark: {
|
|
93
93
|
darkMode: true,
|
|
@@ -141,34 +141,34 @@ export const mermaid = {
|
|
|
141
141
|
tagLabelColor: '#e6e6e6',
|
|
142
142
|
tagLabelBackground: '#242424',
|
|
143
143
|
tagLabelBorder: '#383838',
|
|
144
|
-
pie1: '#
|
|
145
|
-
pie2: '#
|
|
146
|
-
pie3: '#
|
|
147
|
-
pie4: '#
|
|
148
|
-
pie5: '#
|
|
149
|
-
pie6: '#
|
|
150
|
-
pie7: '#
|
|
151
|
-
pie8: '#
|
|
152
|
-
pie9: '#
|
|
153
|
-
pie10: '#
|
|
154
|
-
pie11: '#
|
|
155
|
-
pie12: '#
|
|
156
|
-
git0: '#
|
|
157
|
-
git1: '#
|
|
158
|
-
git2: '#
|
|
159
|
-
git3: '#
|
|
160
|
-
git4: '#
|
|
161
|
-
git5: '#
|
|
162
|
-
git6: '#
|
|
163
|
-
git7: '#
|
|
164
|
-
fillType0: '#
|
|
165
|
-
fillType1: '#
|
|
166
|
-
fillType2: '#
|
|
167
|
-
fillType3: '#
|
|
168
|
-
fillType4: '#
|
|
169
|
-
fillType5: '#
|
|
170
|
-
fillType6: '#
|
|
171
|
-
fillType7: '#
|
|
144
|
+
pie1: '#3987e5',
|
|
145
|
+
pie2: '#d95926',
|
|
146
|
+
pie3: '#199e70',
|
|
147
|
+
pie4: '#c98500',
|
|
148
|
+
pie5: '#d55181',
|
|
149
|
+
pie6: '#008300',
|
|
150
|
+
pie7: '#9085e9',
|
|
151
|
+
pie8: '#e66767',
|
|
152
|
+
pie9: '#3987e5',
|
|
153
|
+
pie10: '#d95926',
|
|
154
|
+
pie11: '#199e70',
|
|
155
|
+
pie12: '#c98500',
|
|
156
|
+
git0: '#3987e5',
|
|
157
|
+
git1: '#d95926',
|
|
158
|
+
git2: '#199e70',
|
|
159
|
+
git3: '#c98500',
|
|
160
|
+
git4: '#d55181',
|
|
161
|
+
git5: '#008300',
|
|
162
|
+
git6: '#9085e9',
|
|
163
|
+
git7: '#e66767',
|
|
164
|
+
fillType0: '#3987e5',
|
|
165
|
+
fillType1: '#d95926',
|
|
166
|
+
fillType2: '#199e70',
|
|
167
|
+
fillType3: '#c98500',
|
|
168
|
+
fillType4: '#d55181',
|
|
169
|
+
fillType5: '#008300',
|
|
170
|
+
fillType6: '#9085e9',
|
|
171
|
+
fillType7: '#e66767',
|
|
172
172
|
},
|
|
173
173
|
};
|
|
174
174
|
|
package/tokens/mermaid.json
CHANGED
|
@@ -51,34 +51,34 @@
|
|
|
51
51
|
"tagLabelColor": "#0a0a0a",
|
|
52
52
|
"tagLabelBackground": "#ececea",
|
|
53
53
|
"tagLabelBorder": "#d8d8d4",
|
|
54
|
-
"pie1": "#
|
|
55
|
-
"pie2": "#
|
|
56
|
-
"pie3": "#
|
|
57
|
-
"pie4": "#
|
|
58
|
-
"pie5": "#
|
|
59
|
-
"pie6": "#
|
|
60
|
-
"pie7": "#
|
|
61
|
-
"pie8": "#
|
|
62
|
-
"pie9": "#
|
|
63
|
-
"pie10": "#
|
|
64
|
-
"pie11": "#
|
|
65
|
-
"pie12": "#
|
|
66
|
-
"git0": "#
|
|
67
|
-
"git1": "#
|
|
68
|
-
"git2": "#
|
|
69
|
-
"git3": "#
|
|
70
|
-
"git4": "#
|
|
71
|
-
"git5": "#
|
|
72
|
-
"git6": "#
|
|
73
|
-
"git7": "#
|
|
74
|
-
"fillType0": "#
|
|
75
|
-
"fillType1": "#
|
|
76
|
-
"fillType2": "#
|
|
77
|
-
"fillType3": "#
|
|
78
|
-
"fillType4": "#
|
|
79
|
-
"fillType5": "#
|
|
80
|
-
"fillType6": "#
|
|
81
|
-
"fillType7": "#
|
|
54
|
+
"pie1": "#2a78d6",
|
|
55
|
+
"pie2": "#eb6834",
|
|
56
|
+
"pie3": "#1baf7a",
|
|
57
|
+
"pie4": "#eda100",
|
|
58
|
+
"pie5": "#e87ba4",
|
|
59
|
+
"pie6": "#008300",
|
|
60
|
+
"pie7": "#4a3aa7",
|
|
61
|
+
"pie8": "#e34948",
|
|
62
|
+
"pie9": "#2a78d6",
|
|
63
|
+
"pie10": "#eb6834",
|
|
64
|
+
"pie11": "#1baf7a",
|
|
65
|
+
"pie12": "#eda100",
|
|
66
|
+
"git0": "#2a78d6",
|
|
67
|
+
"git1": "#eb6834",
|
|
68
|
+
"git2": "#1baf7a",
|
|
69
|
+
"git3": "#eda100",
|
|
70
|
+
"git4": "#e87ba4",
|
|
71
|
+
"git5": "#008300",
|
|
72
|
+
"git6": "#4a3aa7",
|
|
73
|
+
"git7": "#e34948",
|
|
74
|
+
"fillType0": "#2a78d6",
|
|
75
|
+
"fillType1": "#eb6834",
|
|
76
|
+
"fillType2": "#1baf7a",
|
|
77
|
+
"fillType3": "#eda100",
|
|
78
|
+
"fillType4": "#e87ba4",
|
|
79
|
+
"fillType5": "#008300",
|
|
80
|
+
"fillType6": "#4a3aa7",
|
|
81
|
+
"fillType7": "#e34948"
|
|
82
82
|
},
|
|
83
83
|
"dark": {
|
|
84
84
|
"darkMode": true,
|
|
@@ -131,33 +131,33 @@
|
|
|
131
131
|
"tagLabelColor": "#e6e6e6",
|
|
132
132
|
"tagLabelBackground": "#242424",
|
|
133
133
|
"tagLabelBorder": "#383838",
|
|
134
|
-
"pie1": "#
|
|
135
|
-
"pie2": "#
|
|
136
|
-
"pie3": "#
|
|
137
|
-
"pie4": "#
|
|
138
|
-
"pie5": "#
|
|
139
|
-
"pie6": "#
|
|
140
|
-
"pie7": "#
|
|
141
|
-
"pie8": "#
|
|
142
|
-
"pie9": "#
|
|
143
|
-
"pie10": "#
|
|
144
|
-
"pie11": "#
|
|
145
|
-
"pie12": "#
|
|
146
|
-
"git0": "#
|
|
147
|
-
"git1": "#
|
|
148
|
-
"git2": "#
|
|
149
|
-
"git3": "#
|
|
150
|
-
"git4": "#
|
|
151
|
-
"git5": "#
|
|
152
|
-
"git6": "#
|
|
153
|
-
"git7": "#
|
|
154
|
-
"fillType0": "#
|
|
155
|
-
"fillType1": "#
|
|
156
|
-
"fillType2": "#
|
|
157
|
-
"fillType3": "#
|
|
158
|
-
"fillType4": "#
|
|
159
|
-
"fillType5": "#
|
|
160
|
-
"fillType6": "#
|
|
161
|
-
"fillType7": "#
|
|
134
|
+
"pie1": "#3987e5",
|
|
135
|
+
"pie2": "#d95926",
|
|
136
|
+
"pie3": "#199e70",
|
|
137
|
+
"pie4": "#c98500",
|
|
138
|
+
"pie5": "#d55181",
|
|
139
|
+
"pie6": "#008300",
|
|
140
|
+
"pie7": "#9085e9",
|
|
141
|
+
"pie8": "#e66767",
|
|
142
|
+
"pie9": "#3987e5",
|
|
143
|
+
"pie10": "#d95926",
|
|
144
|
+
"pie11": "#199e70",
|
|
145
|
+
"pie12": "#c98500",
|
|
146
|
+
"git0": "#3987e5",
|
|
147
|
+
"git1": "#d95926",
|
|
148
|
+
"git2": "#199e70",
|
|
149
|
+
"git3": "#c98500",
|
|
150
|
+
"git4": "#d55181",
|
|
151
|
+
"git5": "#008300",
|
|
152
|
+
"git6": "#9085e9",
|
|
153
|
+
"git7": "#e66767",
|
|
154
|
+
"fillType0": "#3987e5",
|
|
155
|
+
"fillType1": "#d95926",
|
|
156
|
+
"fillType2": "#199e70",
|
|
157
|
+
"fillType3": "#c98500",
|
|
158
|
+
"fillType4": "#d55181",
|
|
159
|
+
"fillType5": "#008300",
|
|
160
|
+
"fillType6": "#9085e9",
|
|
161
|
+
"fillType7": "#e66767"
|
|
162
162
|
}
|
|
163
163
|
}
|
package/tokens/resolved.json
CHANGED
|
@@ -141,6 +141,10 @@
|
|
|
141
141
|
"--space-lg": "1.35rem",
|
|
142
142
|
"--space-xl": "1.75rem",
|
|
143
143
|
"--space-2xl": "2.5rem",
|
|
144
|
+
"--space-0-5": "0.125rem",
|
|
145
|
+
"--space-0-75": "0.1875rem",
|
|
146
|
+
"--space-1-5": "0.375rem",
|
|
147
|
+
"--space-2-5": "0.625rem",
|
|
144
148
|
"--tap-target": "max(44px, 2.9rem)",
|
|
145
149
|
"--tap-target-min": "max(24px, 1.6rem)",
|
|
146
150
|
"--safe-area-top": "env(safe-area-inset-top, 0px)",
|
|
@@ -174,6 +178,18 @@
|
|
|
174
178
|
"--z-sticky": "20",
|
|
175
179
|
"--z-overlay": "30",
|
|
176
180
|
"--z-popover": "50",
|
|
177
|
-
"--z-toast": "60"
|
|
181
|
+
"--z-toast": "60",
|
|
182
|
+
"--z-canvas": "0",
|
|
183
|
+
"--z-chrome": "20",
|
|
184
|
+
"--z-panel": "25",
|
|
185
|
+
"--z-modal": "30",
|
|
186
|
+
"--z-menu": "50",
|
|
187
|
+
"--z-tooltip": "70",
|
|
188
|
+
"--z-navigation": "80",
|
|
189
|
+
"--ui-zoom": "1",
|
|
190
|
+
"--ui-px": "1px",
|
|
191
|
+
"--hairline": "1px",
|
|
192
|
+
"--focus-ring-width": "2px",
|
|
193
|
+
"--focus-ring-offset": "2px"
|
|
178
194
|
}
|
|
179
195
|
}
|
package/tokens/tokens.dtcg.json
CHANGED
|
@@ -179,6 +179,58 @@
|
|
|
179
179
|
"authoredValue": "2.5rem"
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
+
},
|
|
183
|
+
"0-5": {
|
|
184
|
+
"$type": "dimension",
|
|
185
|
+
"$value": {
|
|
186
|
+
"value": 0.125,
|
|
187
|
+
"unit": "rem"
|
|
188
|
+
},
|
|
189
|
+
"$extensions": {
|
|
190
|
+
"com.ponchia.css": {
|
|
191
|
+
"variable": "--space-0-5",
|
|
192
|
+
"authoredValue": "0.125rem"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"0-75": {
|
|
197
|
+
"$type": "dimension",
|
|
198
|
+
"$value": {
|
|
199
|
+
"value": 0.1875,
|
|
200
|
+
"unit": "rem"
|
|
201
|
+
},
|
|
202
|
+
"$extensions": {
|
|
203
|
+
"com.ponchia.css": {
|
|
204
|
+
"variable": "--space-0-75",
|
|
205
|
+
"authoredValue": "0.1875rem"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"1-5": {
|
|
210
|
+
"$type": "dimension",
|
|
211
|
+
"$value": {
|
|
212
|
+
"value": 0.375,
|
|
213
|
+
"unit": "rem"
|
|
214
|
+
},
|
|
215
|
+
"$extensions": {
|
|
216
|
+
"com.ponchia.css": {
|
|
217
|
+
"variable": "--space-1-5",
|
|
218
|
+
"authoredValue": "0.375rem"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"2-5": {
|
|
223
|
+
"$type": "dimension",
|
|
224
|
+
"$value": {
|
|
225
|
+
"value": 0.625,
|
|
226
|
+
"unit": "rem"
|
|
227
|
+
},
|
|
228
|
+
"$extensions": {
|
|
229
|
+
"com.ponchia.css": {
|
|
230
|
+
"variable": "--space-2-5",
|
|
231
|
+
"authoredValue": "0.625rem"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
182
234
|
}
|
|
183
235
|
},
|
|
184
236
|
"mono": {
|
|
@@ -534,6 +586,144 @@
|
|
|
534
586
|
"authoredValue": "60"
|
|
535
587
|
}
|
|
536
588
|
}
|
|
589
|
+
},
|
|
590
|
+
"canvas": {
|
|
591
|
+
"$type": "number",
|
|
592
|
+
"$value": 0,
|
|
593
|
+
"$extensions": {
|
|
594
|
+
"com.ponchia.css": {
|
|
595
|
+
"variable": "--z-canvas",
|
|
596
|
+
"authoredValue": "var(--z-base)"
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
"chrome": {
|
|
601
|
+
"$type": "number",
|
|
602
|
+
"$value": 20,
|
|
603
|
+
"$extensions": {
|
|
604
|
+
"com.ponchia.css": {
|
|
605
|
+
"variable": "--z-chrome",
|
|
606
|
+
"authoredValue": "var(--z-sticky)"
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
"panel": {
|
|
611
|
+
"$type": "number",
|
|
612
|
+
"$value": 25,
|
|
613
|
+
"$extensions": {
|
|
614
|
+
"com.ponchia.css": {
|
|
615
|
+
"variable": "--z-panel",
|
|
616
|
+
"authoredValue": "25"
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
"modal": {
|
|
621
|
+
"$type": "number",
|
|
622
|
+
"$value": 30,
|
|
623
|
+
"$extensions": {
|
|
624
|
+
"com.ponchia.css": {
|
|
625
|
+
"variable": "--z-modal",
|
|
626
|
+
"authoredValue": "var(--z-overlay)"
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
"menu": {
|
|
631
|
+
"$type": "number",
|
|
632
|
+
"$value": 50,
|
|
633
|
+
"$extensions": {
|
|
634
|
+
"com.ponchia.css": {
|
|
635
|
+
"variable": "--z-menu",
|
|
636
|
+
"authoredValue": "var(--z-popover)"
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"tooltip": {
|
|
641
|
+
"$type": "number",
|
|
642
|
+
"$value": 70,
|
|
643
|
+
"$extensions": {
|
|
644
|
+
"com.ponchia.css": {
|
|
645
|
+
"variable": "--z-tooltip",
|
|
646
|
+
"authoredValue": "70"
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
"navigation": {
|
|
651
|
+
"$type": "number",
|
|
652
|
+
"$value": 80,
|
|
653
|
+
"$extensions": {
|
|
654
|
+
"com.ponchia.css": {
|
|
655
|
+
"variable": "--z-navigation",
|
|
656
|
+
"authoredValue": "80"
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"ui": {
|
|
662
|
+
"zoom": {
|
|
663
|
+
"$type": "number",
|
|
664
|
+
"$value": 1,
|
|
665
|
+
"$extensions": {
|
|
666
|
+
"com.ponchia.css": {
|
|
667
|
+
"variable": "--ui-zoom",
|
|
668
|
+
"authoredValue": "1"
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
"px": {
|
|
673
|
+
"$type": "dimension",
|
|
674
|
+
"$value": {
|
|
675
|
+
"value": 1,
|
|
676
|
+
"unit": "px"
|
|
677
|
+
},
|
|
678
|
+
"$extensions": {
|
|
679
|
+
"com.ponchia.css": {
|
|
680
|
+
"variable": "--ui-px",
|
|
681
|
+
"authoredValue": "1px"
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
"hairline": {
|
|
687
|
+
"DEFAULT": {
|
|
688
|
+
"$type": "dimension",
|
|
689
|
+
"$value": {
|
|
690
|
+
"value": 1,
|
|
691
|
+
"unit": "px"
|
|
692
|
+
},
|
|
693
|
+
"$extensions": {
|
|
694
|
+
"com.ponchia.css": {
|
|
695
|
+
"variable": "--hairline",
|
|
696
|
+
"authoredValue": "1px"
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
"focus": {
|
|
702
|
+
"ring-width": {
|
|
703
|
+
"$type": "dimension",
|
|
704
|
+
"$value": {
|
|
705
|
+
"value": 2,
|
|
706
|
+
"unit": "px"
|
|
707
|
+
},
|
|
708
|
+
"$extensions": {
|
|
709
|
+
"com.ponchia.css": {
|
|
710
|
+
"variable": "--focus-ring-width",
|
|
711
|
+
"authoredValue": "2px"
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"ring-offset": {
|
|
716
|
+
"$type": "dimension",
|
|
717
|
+
"$value": {
|
|
718
|
+
"value": 2,
|
|
719
|
+
"unit": "px"
|
|
720
|
+
},
|
|
721
|
+
"$extensions": {
|
|
722
|
+
"com.ponchia.css": {
|
|
723
|
+
"variable": "--focus-ring-offset",
|
|
724
|
+
"authoredValue": "2px"
|
|
725
|
+
}
|
|
726
|
+
}
|
|
537
727
|
}
|
|
538
728
|
}
|
|
539
729
|
},
|
package/tokens/vega.d.ts
CHANGED
|
@@ -23,11 +23,11 @@ export declare const vega: { light: VegaConfig; dark: VegaConfig };
|
|
|
23
23
|
* back to light. Spread into a spec's `config`, or pass to vega-embed. */
|
|
24
24
|
export declare function brontoVegaConfig(theme?: 'light' | 'dark'): VegaConfig;
|
|
25
25
|
|
|
26
|
-
/** The resolved accent hex
|
|
27
|
-
*
|
|
26
|
+
/** The resolved accent hex for a theme — to spend the accent on one emphasised
|
|
27
|
+
* mark while the other marks stay neutral. */
|
|
28
28
|
export declare function brontoVegaAccent(theme?: 'light' | 'dark'): string;
|
|
29
29
|
|
|
30
|
-
/** The neutral
|
|
30
|
+
/** The neutral ink hex for a theme (`--text-dim`). */
|
|
31
31
|
export declare function brontoVegaNeutral(theme?: 'light' | 'dark'): string;
|
|
32
32
|
|
|
33
33
|
declare const _default: typeof brontoVegaConfig;
|