@netzi/tokens 0.1.0-beta.10
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 +965 -0
- package/LICENSE.md +33 -0
- package/README.md +1008 -0
- package/lib/brand-context.d.ts +10 -0
- package/lib/brand-context.js +65 -0
- package/lib/brand.d.ts +90 -0
- package/lib/brand.js +256 -0
- package/lib/contrast.d.ts +14 -0
- package/lib/contrast.js +34 -0
- package/package.json +56 -0
- package/public-tokens.json +460 -0
- package/styles/base.css +139 -0
- package/styles/fonts/LICENSE-FiraCode.txt +93 -0
- package/styles/fonts/LICENSE-PlusJakartaSans.txt +93 -0
- package/styles/fonts/fira-code-latin-ext.woff2 +0 -0
- package/styles/fonts/fira-code-latin.woff2 +0 -0
- package/styles/fonts/plus-jakarta-sans-latin-ext.woff2 +0 -0
- package/styles/fonts/plus-jakarta-sans-latin.woff2 +0 -0
- package/styles/fonts.css +136 -0
- package/styles/index.css +7 -0
- package/styles/tokens.css +1426 -0
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Tokens públicos de @netzi/tokens: el contrato con las apps. Lo que no está aquí es interno y puede cambiar sin aviso. Generado desde la fuente DTCG: no se edita a mano.",
|
|
3
|
+
"tokens": [
|
|
4
|
+
{
|
|
5
|
+
"name": "--netzi-radius-sm",
|
|
6
|
+
"path": "radius.sm",
|
|
7
|
+
"layer": "primitives",
|
|
8
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa --netzi-radius-control (controles y piezas pequeñas). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "--netzi-radius",
|
|
12
|
+
"path": "radius",
|
|
13
|
+
"layer": "primitives",
|
|
14
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa --netzi-radius-surface-sm (paneles de un control, avisos, tarjetas compactas). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "--netzi-radius-lg",
|
|
18
|
+
"path": "radius.lg",
|
|
19
|
+
"layer": "primitives",
|
|
20
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa --netzi-radius-surface (tarjetas, diálogos, paneles). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "--netzi-space-0",
|
|
24
|
+
"path": "space.0",
|
|
25
|
+
"layer": "primitives",
|
|
26
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa 0, que no necesita token. Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "--netzi-space-1",
|
|
30
|
+
"path": "space.1",
|
|
31
|
+
"layer": "primitives",
|
|
32
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): sin papel propio (2px no es un paso del ritmo de layout); entre piezas de un mismo elemento usa --netzi-space-related. Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "--netzi-space-2",
|
|
36
|
+
"path": "space.2",
|
|
37
|
+
"layer": "primitives",
|
|
38
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa --netzi-space-related (piezas de un mismo elemento). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "--netzi-space-3",
|
|
42
|
+
"path": "space.3",
|
|
43
|
+
"layer": "primitives",
|
|
44
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa --netzi-space-group (elementos hermanos de un grupo). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "--netzi-space-4",
|
|
48
|
+
"path": "space.4",
|
|
49
|
+
"layer": "primitives",
|
|
50
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa --netzi-space-stack (grupos apilados) o --netzi-space-inset-sm (relleno compacto). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "--netzi-space-5",
|
|
54
|
+
"path": "space.5",
|
|
55
|
+
"layer": "primitives",
|
|
56
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa --netzi-space-inset (relleno de una tarjeta o un panel). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "--netzi-space-6",
|
|
60
|
+
"path": "space.6",
|
|
61
|
+
"layer": "primitives",
|
|
62
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa --netzi-space-inset-lg (relleno de un diálogo o un panel grande). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "--netzi-space-7",
|
|
66
|
+
"path": "space.7",
|
|
67
|
+
"layer": "primitives",
|
|
68
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa --netzi-space-section (entre secciones de una página). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "--netzi-space-8",
|
|
72
|
+
"path": "space.8",
|
|
73
|
+
"layer": "primitives",
|
|
74
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa --netzi-space-page (entre regiones de una página y su margen). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "--netzi-font-size-xs",
|
|
78
|
+
"path": "font.size.xs",
|
|
79
|
+
"layer": "primitives",
|
|
80
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el tamaño de su papel, --netzi-typography-caption-font-size (#155), o su estilo de texto entero, --netzi-typography-caption. Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "--netzi-font-size-sm",
|
|
84
|
+
"path": "font.size.sm",
|
|
85
|
+
"layer": "primitives",
|
|
86
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el tamaño de su papel, --netzi-typography-body-sm-font-size (#155), o su estilo de texto entero, --netzi-typography-body-sm. Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "--netzi-font-size-md",
|
|
90
|
+
"path": "font.size.md",
|
|
91
|
+
"layer": "primitives",
|
|
92
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el tamaño de su papel, --netzi-typography-body-ui-font-size (#155), o su estilo de texto entero, --netzi-typography-body-ui. Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "--netzi-font-size-lg",
|
|
96
|
+
"path": "font.size.lg",
|
|
97
|
+
"layer": "primitives",
|
|
98
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el tamaño de su papel, --netzi-typography-body-font-size (#155), o su estilo de texto entero, --netzi-typography-body. Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "--netzi-font-size-xl",
|
|
102
|
+
"path": "font.size.xl",
|
|
103
|
+
"layer": "primitives",
|
|
104
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el tamaño de su papel, --netzi-typography-title-font-size (#155), o su estilo de texto entero, --netzi-typography-title. Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "--netzi-font-size-2xl",
|
|
108
|
+
"path": "font.size.2xl",
|
|
109
|
+
"layer": "primitives",
|
|
110
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el tamaño de su papel, --netzi-typography-headline-font-size (#155), o su estilo de texto entero, --netzi-typography-headline. Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "--netzi-font-size-3xl",
|
|
114
|
+
"path": "font.size.3xl",
|
|
115
|
+
"layer": "primitives",
|
|
116
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el tamaño de su papel, --netzi-typography-display-font-size (#155), o su estilo de texto entero, --netzi-typography-display. Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "--netzi-font-weight-regular",
|
|
120
|
+
"path": "font.weight.regular",
|
|
121
|
+
"layer": "primitives",
|
|
122
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el estilo de texto de su papel (--netzi-typography-body, --netzi-typography-body-sm). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "--netzi-font-weight-medium",
|
|
126
|
+
"path": "font.weight.medium",
|
|
127
|
+
"layer": "primitives",
|
|
128
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): sin estilo propio; usa el estilo de texto de su papel (--netzi-typography-body). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "--netzi-font-weight-semibold",
|
|
132
|
+
"path": "font.weight.semibold",
|
|
133
|
+
"layer": "primitives",
|
|
134
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el estilo de texto de su papel (--netzi-typography-title-sm, --netzi-typography-caption). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "--netzi-font-weight-bold",
|
|
138
|
+
"path": "font.weight.bold",
|
|
139
|
+
"layer": "primitives",
|
|
140
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el estilo de texto de su papel (--netzi-typography-title, --netzi-typography-headline). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "--netzi-font-weight-extrabold",
|
|
144
|
+
"path": "font.weight.extrabold",
|
|
145
|
+
"layer": "primitives",
|
|
146
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el estilo de texto de su papel, --netzi-typography-display. Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "--netzi-line-height-none",
|
|
150
|
+
"path": "line-height.none",
|
|
151
|
+
"layer": "primitives",
|
|
152
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): sin estilo propio; cada estilo de texto trae su interlineado (--netzi-typography-caption). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "--netzi-line-height-tight",
|
|
156
|
+
"path": "line-height.tight",
|
|
157
|
+
"layer": "primitives",
|
|
158
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el estilo de texto de su papel (--netzi-typography-title, --netzi-typography-caption). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "--netzi-line-height-normal",
|
|
162
|
+
"path": "line-height.normal",
|
|
163
|
+
"layer": "primitives",
|
|
164
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): usa el estilo de texto de su papel (--netzi-typography-body, --netzi-typography-body-sm). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "--netzi-line-height-relaxed",
|
|
168
|
+
"path": "line-height.relaxed",
|
|
169
|
+
"layer": "primitives",
|
|
170
|
+
"deprecated": "Escala primitiva, en desuso para las apps (#228): sin estilo propio; cada estilo de texto trae su interlineado (--netzi-typography-body). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11, cuando pasa a interna."
|
|
171
|
+
},
|
|
172
|
+
{ "name": "--netzi-blue-text", "path": "blue.text", "layer": "semantic" },
|
|
173
|
+
{ "name": "--netzi-blue-graphic", "path": "blue.graphic", "layer": "semantic" },
|
|
174
|
+
{ "name": "--netzi-green-text", "path": "green.text", "layer": "semantic" },
|
|
175
|
+
{ "name": "--netzi-green-graphic", "path": "green.graphic", "layer": "semantic" },
|
|
176
|
+
{ "name": "--netzi-yellow-text", "path": "yellow.text", "layer": "semantic" },
|
|
177
|
+
{ "name": "--netzi-yellow-graphic", "path": "yellow.graphic", "layer": "semantic" },
|
|
178
|
+
{ "name": "--netzi-red-text", "path": "red.text", "layer": "semantic" },
|
|
179
|
+
{ "name": "--netzi-red-graphic", "path": "red.graphic", "layer": "semantic" },
|
|
180
|
+
{ "name": "--netzi-purple-text", "path": "purple.text", "layer": "semantic" },
|
|
181
|
+
{ "name": "--netzi-info", "path": "info", "layer": "semantic" },
|
|
182
|
+
{ "name": "--netzi-info-text", "path": "info.text", "layer": "semantic" },
|
|
183
|
+
{ "name": "--netzi-info-graphic", "path": "info.graphic", "layer": "semantic" },
|
|
184
|
+
{ "name": "--netzi-info-veil", "path": "info.veil", "layer": "semantic" },
|
|
185
|
+
{ "name": "--netzi-success", "path": "success", "layer": "semantic" },
|
|
186
|
+
{ "name": "--netzi-success-text", "path": "success.text", "layer": "semantic" },
|
|
187
|
+
{ "name": "--netzi-success-graphic", "path": "success.graphic", "layer": "semantic" },
|
|
188
|
+
{ "name": "--netzi-success-veil", "path": "success.veil", "layer": "semantic" },
|
|
189
|
+
{ "name": "--netzi-warning", "path": "warning", "layer": "semantic" },
|
|
190
|
+
{ "name": "--netzi-warning-text", "path": "warning.text", "layer": "semantic" },
|
|
191
|
+
{ "name": "--netzi-warning-graphic", "path": "warning.graphic", "layer": "semantic" },
|
|
192
|
+
{ "name": "--netzi-warning-veil", "path": "warning.veil", "layer": "semantic" },
|
|
193
|
+
{ "name": "--netzi-danger", "path": "danger", "layer": "semantic" },
|
|
194
|
+
{ "name": "--netzi-danger-text", "path": "danger.text", "layer": "semantic" },
|
|
195
|
+
{ "name": "--netzi-danger-graphic", "path": "danger.graphic", "layer": "semantic" },
|
|
196
|
+
{ "name": "--netzi-danger-veil", "path": "danger.veil", "layer": "semantic" },
|
|
197
|
+
{
|
|
198
|
+
"name": "--netzi-surface-1",
|
|
199
|
+
"path": "surface.1",
|
|
200
|
+
"layer": "semantic",
|
|
201
|
+
"deprecated": "Usa surface (--netzi-surface). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11."
|
|
202
|
+
},
|
|
203
|
+
{ "name": "--netzi-surface-2", "path": "surface.2", "layer": "semantic" },
|
|
204
|
+
{ "name": "--netzi-surface-3", "path": "surface.3", "layer": "semantic" },
|
|
205
|
+
{ "name": "--netzi-surface", "path": "surface", "layer": "semantic" },
|
|
206
|
+
{
|
|
207
|
+
"name": "--netzi-text-1",
|
|
208
|
+
"path": "text.1",
|
|
209
|
+
"layer": "semantic",
|
|
210
|
+
"deprecated": "Usa text (--netzi-text). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11."
|
|
211
|
+
},
|
|
212
|
+
{ "name": "--netzi-text-2", "path": "text.2", "layer": "semantic" },
|
|
213
|
+
{ "name": "--netzi-text-3", "path": "text.3", "layer": "semantic" },
|
|
214
|
+
{ "name": "--netzi-text", "path": "text", "layer": "semantic" },
|
|
215
|
+
{ "name": "--netzi-radius-control", "path": "radius.control", "layer": "semantic" },
|
|
216
|
+
{ "name": "--netzi-radius-surface", "path": "radius.surface", "layer": "semantic" },
|
|
217
|
+
{ "name": "--netzi-radius-surface-sm", "path": "radius.surface.sm", "layer": "semantic" },
|
|
218
|
+
{ "name": "--netzi-radius-pill", "path": "radius.pill", "layer": "semantic" },
|
|
219
|
+
{
|
|
220
|
+
"name": "--netzi-radius-md",
|
|
221
|
+
"path": "radius.md",
|
|
222
|
+
"layer": "semantic",
|
|
223
|
+
"deprecated": "Usa radius.surface.sm (--netzi-radius-surface-sm). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11."
|
|
224
|
+
},
|
|
225
|
+
{ "name": "--netzi-primary", "path": "primary", "layer": "semantic" },
|
|
226
|
+
{ "name": "--netzi-primary-dark", "path": "primary.dark", "layer": "semantic" },
|
|
227
|
+
{ "name": "--netzi-primary-hover", "path": "primary.hover", "layer": "semantic" },
|
|
228
|
+
{ "name": "--netzi-primary-pressed", "path": "primary.pressed", "layer": "semantic" },
|
|
229
|
+
{ "name": "--netzi-primary-text", "path": "primary.text", "layer": "semantic" },
|
|
230
|
+
{ "name": "--netzi-primary-graphic", "path": "primary.graphic", "layer": "semantic" },
|
|
231
|
+
{ "name": "--netzi-primary-tint", "path": "primary.tint", "layer": "semantic" },
|
|
232
|
+
{ "name": "--netzi-primary-tint-strong", "path": "primary.tint.strong", "layer": "semantic" },
|
|
233
|
+
{ "name": "--netzi-on-primary", "path": "on.primary", "layer": "semantic" },
|
|
234
|
+
{ "name": "--netzi-on-primary-dark", "path": "on.primary.dark", "layer": "semantic" },
|
|
235
|
+
{ "name": "--netzi-on-accent", "path": "on.accent", "layer": "semantic" },
|
|
236
|
+
{ "name": "--netzi-state-hover", "path": "state.hover", "layer": "semantic" },
|
|
237
|
+
{ "name": "--netzi-state-hover-opacity", "path": "state.hover.opacity", "layer": "semantic" },
|
|
238
|
+
{ "name": "--netzi-state-focus", "path": "state.focus", "layer": "semantic" },
|
|
239
|
+
{ "name": "--netzi-state-focus-opacity", "path": "state.focus.opacity", "layer": "semantic" },
|
|
240
|
+
{ "name": "--netzi-state-pressed", "path": "state.pressed", "layer": "semantic" },
|
|
241
|
+
{
|
|
242
|
+
"name": "--netzi-state-pressed-opacity",
|
|
243
|
+
"path": "state.pressed.opacity",
|
|
244
|
+
"layer": "semantic"
|
|
245
|
+
},
|
|
246
|
+
{ "name": "--netzi-state-dragged", "path": "state.dragged", "layer": "semantic" },
|
|
247
|
+
{
|
|
248
|
+
"name": "--netzi-state-dragged-opacity",
|
|
249
|
+
"path": "state.dragged.opacity",
|
|
250
|
+
"layer": "semantic"
|
|
251
|
+
},
|
|
252
|
+
{ "name": "--netzi-state-selected", "path": "state.selected", "layer": "semantic" },
|
|
253
|
+
{
|
|
254
|
+
"name": "--netzi-state-disabled-opacity",
|
|
255
|
+
"path": "state.disabled.opacity",
|
|
256
|
+
"layer": "semantic"
|
|
257
|
+
},
|
|
258
|
+
{ "name": "--netzi-bg", "path": "bg", "layer": "semantic" },
|
|
259
|
+
{ "name": "--netzi-border-2", "path": "border.2", "layer": "semantic" },
|
|
260
|
+
{ "name": "--netzi-border", "path": "border", "layer": "semantic" },
|
|
261
|
+
{ "name": "--netzi-elevation-base", "path": "elevation.base", "layer": "semantic" },
|
|
262
|
+
{ "name": "--netzi-elevation-raised", "path": "elevation.raised", "layer": "semantic" },
|
|
263
|
+
{ "name": "--netzi-elevation-floating", "path": "elevation.floating", "layer": "semantic" },
|
|
264
|
+
{ "name": "--netzi-elevation-modal", "path": "elevation.modal", "layer": "semantic" },
|
|
265
|
+
{
|
|
266
|
+
"name": "--netzi-shadow-sm",
|
|
267
|
+
"path": "shadow.sm",
|
|
268
|
+
"layer": "semantic",
|
|
269
|
+
"deprecated": "Usa elevation.raised (--netzi-elevation-raised). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11."
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "--netzi-shadow",
|
|
273
|
+
"path": "shadow",
|
|
274
|
+
"layer": "semantic",
|
|
275
|
+
"deprecated": "Usa elevation.floating (--netzi-elevation-floating). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11."
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "--netzi-shadow-lg",
|
|
279
|
+
"path": "shadow.lg",
|
|
280
|
+
"layer": "semantic",
|
|
281
|
+
"deprecated": "Usa elevation.modal (--netzi-elevation-modal). Deprecado en @netzi/tokens 0.1.0-beta.10; se retira como pronto en @netzi/tokens 0.1.0-beta.11."
|
|
282
|
+
},
|
|
283
|
+
{ "name": "--netzi-space-related", "path": "space.related", "layer": "semantic" },
|
|
284
|
+
{ "name": "--netzi-space-group", "path": "space.group", "layer": "semantic" },
|
|
285
|
+
{ "name": "--netzi-space-stack", "path": "space.stack", "layer": "semantic" },
|
|
286
|
+
{ "name": "--netzi-space-inset", "path": "space.inset", "layer": "semantic" },
|
|
287
|
+
{ "name": "--netzi-space-inset-sm", "path": "space.inset.sm", "layer": "semantic" },
|
|
288
|
+
{ "name": "--netzi-space-inset-lg", "path": "space.inset.lg", "layer": "semantic" },
|
|
289
|
+
{ "name": "--netzi-space-section", "path": "space.section", "layer": "semantic" },
|
|
290
|
+
{ "name": "--netzi-space-page", "path": "space.page", "layer": "semantic" },
|
|
291
|
+
{ "name": "--netzi-font-sans", "path": "font.sans", "layer": "semantic" },
|
|
292
|
+
{ "name": "--netzi-font-mono", "path": "font.mono", "layer": "semantic" },
|
|
293
|
+
{ "name": "--netzi-font-scale", "path": "font.scale", "layer": "semantic" },
|
|
294
|
+
{ "name": "--netzi-typography-display", "path": "typography.display", "layer": "semantic" },
|
|
295
|
+
{
|
|
296
|
+
"name": "--netzi-typography-display-letter-spacing",
|
|
297
|
+
"path": "typography.display.letterSpacing",
|
|
298
|
+
"layer": "semantic"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "--netzi-typography-display-font-size",
|
|
302
|
+
"path": "typography.display.fontSize",
|
|
303
|
+
"layer": "semantic"
|
|
304
|
+
},
|
|
305
|
+
{ "name": "--netzi-typography-headline", "path": "typography.headline", "layer": "semantic" },
|
|
306
|
+
{
|
|
307
|
+
"name": "--netzi-typography-headline-letter-spacing",
|
|
308
|
+
"path": "typography.headline.letterSpacing",
|
|
309
|
+
"layer": "semantic"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "--netzi-typography-headline-font-size",
|
|
313
|
+
"path": "typography.headline.fontSize",
|
|
314
|
+
"layer": "semantic"
|
|
315
|
+
},
|
|
316
|
+
{ "name": "--netzi-typography-title", "path": "typography.title", "layer": "semantic" },
|
|
317
|
+
{
|
|
318
|
+
"name": "--netzi-typography-title-letter-spacing",
|
|
319
|
+
"path": "typography.title.letterSpacing",
|
|
320
|
+
"layer": "semantic"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "--netzi-typography-title-font-size",
|
|
324
|
+
"path": "typography.title.fontSize",
|
|
325
|
+
"layer": "semantic"
|
|
326
|
+
},
|
|
327
|
+
{ "name": "--netzi-typography-title-sm", "path": "typography.title.sm", "layer": "semantic" },
|
|
328
|
+
{
|
|
329
|
+
"name": "--netzi-typography-title-sm-letter-spacing",
|
|
330
|
+
"path": "typography.title.sm.letterSpacing",
|
|
331
|
+
"layer": "semantic"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "--netzi-typography-title-sm-font-size",
|
|
335
|
+
"path": "typography.title.sm.fontSize",
|
|
336
|
+
"layer": "semantic"
|
|
337
|
+
},
|
|
338
|
+
{ "name": "--netzi-typography-body", "path": "typography.body", "layer": "semantic" },
|
|
339
|
+
{
|
|
340
|
+
"name": "--netzi-typography-body-letter-spacing",
|
|
341
|
+
"path": "typography.body.letterSpacing",
|
|
342
|
+
"layer": "semantic"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "--netzi-typography-body-font-size",
|
|
346
|
+
"path": "typography.body.fontSize",
|
|
347
|
+
"layer": "semantic"
|
|
348
|
+
},
|
|
349
|
+
{ "name": "--netzi-typography-body-ui", "path": "typography.body.ui", "layer": "semantic" },
|
|
350
|
+
{
|
|
351
|
+
"name": "--netzi-typography-body-ui-letter-spacing",
|
|
352
|
+
"path": "typography.body.ui.letterSpacing",
|
|
353
|
+
"layer": "semantic"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "--netzi-typography-body-ui-font-size",
|
|
357
|
+
"path": "typography.body.ui.fontSize",
|
|
358
|
+
"layer": "semantic"
|
|
359
|
+
},
|
|
360
|
+
{ "name": "--netzi-typography-body-sm", "path": "typography.body.sm", "layer": "semantic" },
|
|
361
|
+
{
|
|
362
|
+
"name": "--netzi-typography-body-sm-letter-spacing",
|
|
363
|
+
"path": "typography.body.sm.letterSpacing",
|
|
364
|
+
"layer": "semantic"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "--netzi-typography-body-sm-font-size",
|
|
368
|
+
"path": "typography.body.sm.fontSize",
|
|
369
|
+
"layer": "semantic"
|
|
370
|
+
},
|
|
371
|
+
{ "name": "--netzi-typography-caption", "path": "typography.caption", "layer": "semantic" },
|
|
372
|
+
{
|
|
373
|
+
"name": "--netzi-typography-caption-letter-spacing",
|
|
374
|
+
"path": "typography.caption.letterSpacing",
|
|
375
|
+
"layer": "semantic"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "--netzi-typography-caption-font-size",
|
|
379
|
+
"path": "typography.caption.fontSize",
|
|
380
|
+
"layer": "semantic"
|
|
381
|
+
},
|
|
382
|
+
{ "name": "--netzi-tint", "path": "tint", "layer": "semantic" },
|
|
383
|
+
{ "name": "--netzi-duration-instant", "path": "duration.instant", "layer": "semantic" },
|
|
384
|
+
{ "name": "--netzi-duration-fast", "path": "duration.fast", "layer": "semantic" },
|
|
385
|
+
{ "name": "--netzi-duration-base", "path": "duration.base", "layer": "semantic" },
|
|
386
|
+
{ "name": "--netzi-duration-slow", "path": "duration.slow", "layer": "semantic" },
|
|
387
|
+
{ "name": "--netzi-duration-flash", "path": "duration.flash", "layer": "semantic" },
|
|
388
|
+
{ "name": "--netzi-duration-loop-spin", "path": "duration.loop.spin", "layer": "semantic" },
|
|
389
|
+
{ "name": "--netzi-duration-loop-orbit", "path": "duration.loop.orbit", "layer": "semantic" },
|
|
390
|
+
{ "name": "--netzi-duration-loop-pulse", "path": "duration.loop.pulse", "layer": "semantic" },
|
|
391
|
+
{ "name": "--netzi-duration-loop-sweep", "path": "duration.loop.sweep", "layer": "semantic" },
|
|
392
|
+
{ "name": "--netzi-duration-loop-shine", "path": "duration.loop.shine", "layer": "semantic" },
|
|
393
|
+
{ "name": "--netzi-duration-move-fast", "path": "duration.move.fast", "layer": "semantic" },
|
|
394
|
+
{ "name": "--netzi-duration-move-base", "path": "duration.move.base", "layer": "semantic" },
|
|
395
|
+
{ "name": "--netzi-duration-move-slow", "path": "duration.move.slow", "layer": "semantic" },
|
|
396
|
+
{ "name": "--netzi-ease-standard", "path": "ease.standard", "layer": "semantic" },
|
|
397
|
+
{ "name": "--netzi-ease-enter", "path": "ease.enter", "layer": "semantic" },
|
|
398
|
+
{ "name": "--netzi-ease-exit", "path": "ease.exit", "layer": "semantic" },
|
|
399
|
+
{ "name": "--netzi-ease-settle", "path": "ease.settle", "layer": "semantic" },
|
|
400
|
+
{ "name": "--netzi-ease-swing", "path": "ease.swing", "layer": "semantic" },
|
|
401
|
+
{ "name": "--netzi-ease-spin", "path": "ease.spin", "layer": "semantic" },
|
|
402
|
+
{ "name": "--netzi-measure", "path": "measure", "layer": "semantic" },
|
|
403
|
+
{ "name": "--netzi-layer-content", "path": "layer.content", "layer": "semantic" },
|
|
404
|
+
{ "name": "--netzi-layer-sticky", "path": "layer.sticky", "layer": "semantic" },
|
|
405
|
+
{ "name": "--netzi-layer-bar", "path": "layer.bar", "layer": "semantic" },
|
|
406
|
+
{ "name": "--netzi-layer-flyout", "path": "layer.flyout", "layer": "semantic" },
|
|
407
|
+
{ "name": "--netzi-layer-scrim", "path": "layer.scrim", "layer": "semantic" },
|
|
408
|
+
{ "name": "--netzi-layer-modal", "path": "layer.modal", "layer": "semantic" },
|
|
409
|
+
{ "name": "--netzi-layer-dropdown", "path": "layer.dropdown", "layer": "semantic" },
|
|
410
|
+
{ "name": "--netzi-layer-toast", "path": "layer.toast", "layer": "semantic" },
|
|
411
|
+
{ "name": "--netzi-layer-tooltip", "path": "layer.tooltip", "layer": "semantic" },
|
|
412
|
+
{ "name": "--netzi-layer-blocking", "path": "layer.blocking", "layer": "semantic" },
|
|
413
|
+
{ "name": "--netzi-layer-top", "path": "layer.top", "layer": "semantic" },
|
|
414
|
+
{ "name": "--netzi-window-reflow", "path": "window.reflow", "layer": "semantic" },
|
|
415
|
+
{ "name": "--netzi-window-medium", "path": "window.medium", "layer": "semantic" },
|
|
416
|
+
{ "name": "--netzi-window-expanded", "path": "window.expanded", "layer": "semantic" },
|
|
417
|
+
{ "name": "--netzi-window-large", "path": "window.large", "layer": "semantic" },
|
|
418
|
+
{ "name": "--netzi-window-extra-large", "path": "window.extra-large", "layer": "semantic" },
|
|
419
|
+
{ "name": "--netzi-float-bg", "path": "float.bg", "layer": "component" },
|
|
420
|
+
{ "name": "--netzi-float-border-2", "path": "float.border.2", "layer": "component" },
|
|
421
|
+
{ "name": "--netzi-float-border", "path": "float.border", "layer": "component" },
|
|
422
|
+
{ "name": "--netzi-float-surface-2", "path": "float.surface.2", "layer": "component" },
|
|
423
|
+
{ "name": "--netzi-float-surface-3", "path": "float.surface.3", "layer": "component" },
|
|
424
|
+
{ "name": "--netzi-float-surface", "path": "float.surface", "layer": "component" },
|
|
425
|
+
{ "name": "--netzi-float-filter", "path": "float.filter", "layer": "component" },
|
|
426
|
+
{
|
|
427
|
+
"name": "--netzi-float-filter-identity",
|
|
428
|
+
"path": "float.filter.identity",
|
|
429
|
+
"layer": "component"
|
|
430
|
+
},
|
|
431
|
+
{ "name": "--netzi-float-glow", "path": "float.glow", "layer": "component" },
|
|
432
|
+
{ "name": "--netzi-scrim", "path": "scrim", "layer": "component" },
|
|
433
|
+
{ "name": "--netzi-scrim-filter", "path": "scrim.filter", "layer": "component" },
|
|
434
|
+
{ "name": "--netzi-control-py", "path": "control.py", "layer": "component" },
|
|
435
|
+
{ "name": "--netzi-control-px", "path": "control.px", "layer": "component" },
|
|
436
|
+
{ "name": "--netzi-control-px-sm", "path": "control.px.sm", "layer": "component" },
|
|
437
|
+
{ "name": "--netzi-control-px-md", "path": "control.px.md", "layer": "component" },
|
|
438
|
+
{ "name": "--netzi-control-px-lg", "path": "control.px.lg", "layer": "component" },
|
|
439
|
+
{ "name": "--netzi-control-h-sm", "path": "control.h.sm", "layer": "component" },
|
|
440
|
+
{ "name": "--netzi-control-h-md", "path": "control.h.md", "layer": "component" },
|
|
441
|
+
{ "name": "--netzi-control-h-lg", "path": "control.h.lg", "layer": "component" },
|
|
442
|
+
{ "name": "--netzi-control-fs-sm", "path": "control.fs.sm", "layer": "component" },
|
|
443
|
+
{ "name": "--netzi-control-fs-md", "path": "control.fs.md", "layer": "component" },
|
|
444
|
+
{ "name": "--netzi-control-fs-lg", "path": "control.fs.lg", "layer": "component" },
|
|
445
|
+
{ "name": "--netzi-touch-target", "path": "touch-target", "layer": "component" },
|
|
446
|
+
{ "name": "--netzi-touch-gap", "path": "touch-gap", "layer": "component" },
|
|
447
|
+
{ "name": "--netzi-focus-ring", "path": "focus-ring", "layer": "component" },
|
|
448
|
+
{ "name": "--netzi-chart-1", "path": "chart.1", "layer": "component" },
|
|
449
|
+
{ "name": "--netzi-chart-2", "path": "chart.2", "layer": "component" },
|
|
450
|
+
{ "name": "--netzi-chart-3", "path": "chart.3", "layer": "component" },
|
|
451
|
+
{ "name": "--netzi-chart-4", "path": "chart.4", "layer": "component" },
|
|
452
|
+
{ "name": "--netzi-chart-5", "path": "chart.5", "layer": "component" },
|
|
453
|
+
{ "name": "--netzi-chart-6", "path": "chart.6", "layer": "component" },
|
|
454
|
+
{ "name": "--netzi-chart-7", "path": "chart.7", "layer": "component" },
|
|
455
|
+
{ "name": "--netzi-chart-8", "path": "chart.8", "layer": "component" },
|
|
456
|
+
{ "name": "--netzi-ambient", "path": "ambient", "layer": "component" },
|
|
457
|
+
{ "name": "--netzi-float-lens", "path": "float.lens", "layer": "theme" },
|
|
458
|
+
{ "name": "--netzi-float-lens-size", "path": "float.lens.size", "layer": "theme" }
|
|
459
|
+
]
|
|
460
|
+
}
|
package/styles/base.css
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/* ===========================================================
|
|
2
|
+
@netzi/tokens — Base (reset + tipografía base + scrollbar)
|
|
3
|
+
OPCIONAL. Aplica un reset suave y estilos globales que usan los
|
|
4
|
+
tokens. Si tu app ya tiene su propio reset, importa solo
|
|
5
|
+
tokens.css en lugar de index.css.
|
|
6
|
+
Depende de tokens.css (las custom properties --netzi-*).
|
|
7
|
+
=========================================================== */
|
|
8
|
+
|
|
9
|
+
* {
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
html,
|
|
16
|
+
body {
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
body {
|
|
21
|
+
font-family: var(--netzi-font-sans);
|
|
22
|
+
font-size: var(--netzi-typography-body-font-size);
|
|
23
|
+
background: var(--netzi-bg);
|
|
24
|
+
color: var(--netzi-text);
|
|
25
|
+
line-height: 1.55;
|
|
26
|
+
-webkit-font-smoothing: antialiased;
|
|
27
|
+
transition:
|
|
28
|
+
background 0.2s,
|
|
29
|
+
color 0.2s;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
a {
|
|
33
|
+
color: var(--netzi-primary);
|
|
34
|
+
text-decoration: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Los controles heredan tipografía y color del contexto. Sin esto, los <button>
|
|
38
|
+
usan el color por defecto del navegador (negro), y los iconos que usan
|
|
39
|
+
`currentColor` quedarían negros (invisibles en tema oscuro). */
|
|
40
|
+
button,
|
|
41
|
+
input,
|
|
42
|
+
select,
|
|
43
|
+
textarea {
|
|
44
|
+
font-family: inherit;
|
|
45
|
+
color: inherit;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
h1,
|
|
49
|
+
h2,
|
|
50
|
+
h3 {
|
|
51
|
+
font-weight: 800;
|
|
52
|
+
line-height: 1.2;
|
|
53
|
+
letter-spacing: -0.02em;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.netzi-mono {
|
|
57
|
+
font-family: var(--netzi-font-mono);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* --- Scrollbar (claro/oscuro) --- */
|
|
61
|
+
* {
|
|
62
|
+
scrollbar-width: thin;
|
|
63
|
+
scrollbar-color: rgba(145, 158, 171, 0.45) transparent;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
*::-webkit-scrollbar {
|
|
67
|
+
width: 9px;
|
|
68
|
+
height: 9px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
*::-webkit-scrollbar-track {
|
|
72
|
+
background: transparent;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
*::-webkit-scrollbar-thumb {
|
|
76
|
+
background: rgba(145, 158, 171, 0.4);
|
|
77
|
+
border-radius: 100px;
|
|
78
|
+
border: 2px solid transparent;
|
|
79
|
+
background-clip: padding-box;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
83
|
+
background: rgba(145, 158, 171, 0.65);
|
|
84
|
+
background-clip: padding-box;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
*::-webkit-scrollbar-corner {
|
|
88
|
+
background: transparent;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* --- Impresión (#176) ---
|
|
92
|
+
Los colores ya salen claros y opacos de tokens.css (el tema oscuro, el cristal y el fondo
|
|
93
|
+
ambiental no aplican al imprimir). Aquí, lo global: el papel en blanco, nada a medio animar
|
|
94
|
+
y el documento con su alto natural, para que el navegador lo reparta en páginas. */
|
|
95
|
+
@media print {
|
|
96
|
+
html,
|
|
97
|
+
body {
|
|
98
|
+
height: auto;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
body {
|
|
102
|
+
background: var(--netzi-surface);
|
|
103
|
+
transition: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Una transición o una animación a medio camino se imprimiría tal cual: el papel recibe cada
|
|
107
|
+
cosa en su estado final. Con prioridad, porque las de los componentes son más específicas. */
|
|
108
|
+
*,
|
|
109
|
+
*::before,
|
|
110
|
+
*::after {
|
|
111
|
+
animation: none !important;
|
|
112
|
+
transition: none !important;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* En papel un enlace solo se distingue por su forma: el color puede salir en gris en una
|
|
116
|
+
impresora en blanco y negro (WCAG 1.4.1), así que va subrayado. */
|
|
117
|
+
a[href] {
|
|
118
|
+
color: var(--netzi-primary-text);
|
|
119
|
+
text-decoration: underline;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* La dirección de un enlace externo, a la vista en papel, solo donde se pide: en el propio
|
|
123
|
+
enlace o en un contenedor con el atributo data-print-urls. En toda la página llenaría de
|
|
124
|
+
direcciones el menú y cada botón con enlace. */
|
|
125
|
+
a[data-print-urls][href^='http']::after,
|
|
126
|
+
[data-print-urls] a[href^='http']::after {
|
|
127
|
+
content: ' (' attr(href) ')';
|
|
128
|
+
color: var(--netzi-text-2);
|
|
129
|
+
font-size: 0.85em;
|
|
130
|
+
overflow-wrap: anywhere;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* La parada de Tab que pone netziTruncated en un texto cortado (#167): el anillo de foco del
|
|
135
|
+
kit (3:1), por dentro para que no lo recorte la caja que corta el texto. */
|
|
136
|
+
[data-netzi-truncated-stop]:focus-visible {
|
|
137
|
+
outline: 2px solid var(--netzi-focus-ring);
|
|
138
|
+
outline-offset: -2px;
|
|
139
|
+
}
|