@loworbitstudio/visor-theme-engine 0.4.0 → 0.4.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/dist/adapters/index.d.ts +73 -8
- package/dist/adapters/index.js +719 -21
- package/dist/{chunk-NZF2MS4L.js → chunk-SXT2KY6D.js} +30 -6
- package/dist/index.d.ts +122 -6
- package/dist/index.js +266 -66
- package/dist/{types-DgAumoCX.d.ts → types-ljcTtODU.d.ts} +57 -0
- package/package.json +1 -1
- package/src/visor-theme.schema.json +68 -0
|
@@ -184,6 +184,29 @@
|
|
|
184
184
|
"normal": { "type": "string" },
|
|
185
185
|
"wide": { "type": "string" }
|
|
186
186
|
}
|
|
187
|
+
},
|
|
188
|
+
"slots": {
|
|
189
|
+
"type": "object",
|
|
190
|
+
"description": "Per-slot overrides for the generated Flutter Material TextTheme. Any subset of the 16 slots may be specified; omitted slots fall through to the Material 3 2024 defaults shipped in visor_core.",
|
|
191
|
+
"additionalProperties": false,
|
|
192
|
+
"properties": {
|
|
193
|
+
"displayLarge": { "$ref": "#/$defs/textSlotOverride" },
|
|
194
|
+
"displayMedium": { "$ref": "#/$defs/textSlotOverride" },
|
|
195
|
+
"displaySmall": { "$ref": "#/$defs/textSlotOverride" },
|
|
196
|
+
"headlineLarge": { "$ref": "#/$defs/textSlotOverride" },
|
|
197
|
+
"headlineMedium": { "$ref": "#/$defs/textSlotOverride" },
|
|
198
|
+
"headlineSmall": { "$ref": "#/$defs/textSlotOverride" },
|
|
199
|
+
"titleLarge": { "$ref": "#/$defs/textSlotOverride" },
|
|
200
|
+
"titleMedium": { "$ref": "#/$defs/textSlotOverride" },
|
|
201
|
+
"titleSmall": { "$ref": "#/$defs/textSlotOverride" },
|
|
202
|
+
"bodyLarge": { "$ref": "#/$defs/textSlotOverride" },
|
|
203
|
+
"bodyMedium": { "$ref": "#/$defs/textSlotOverride" },
|
|
204
|
+
"bodySmall": { "$ref": "#/$defs/textSlotOverride" },
|
|
205
|
+
"labelLarge": { "$ref": "#/$defs/textSlotOverride" },
|
|
206
|
+
"labelMedium": { "$ref": "#/$defs/textSlotOverride" },
|
|
207
|
+
"labelSmall": { "$ref": "#/$defs/textSlotOverride" },
|
|
208
|
+
"labelXSmall": { "$ref": "#/$defs/textSlotOverride" }
|
|
209
|
+
}
|
|
187
210
|
}
|
|
188
211
|
}
|
|
189
212
|
},
|
|
@@ -223,6 +246,17 @@
|
|
|
223
246
|
"xl": { "type": "string" }
|
|
224
247
|
}
|
|
225
248
|
},
|
|
249
|
+
"strokeWidths": {
|
|
250
|
+
"type": "object",
|
|
251
|
+
"description": "Stroke-width scale in pixels — used for borders, outlines, dividers, progress-indicator strokes. Defaults: thin=1, regular=1.5, medium=2, thick=2.5.",
|
|
252
|
+
"additionalProperties": false,
|
|
253
|
+
"properties": {
|
|
254
|
+
"thin": { "type": "number", "minimum": 0 },
|
|
255
|
+
"regular": { "type": "number", "minimum": 0 },
|
|
256
|
+
"medium": { "type": "number", "minimum": 0 },
|
|
257
|
+
"thick": { "type": "number", "minimum": 0 }
|
|
258
|
+
}
|
|
259
|
+
},
|
|
226
260
|
"motion": {
|
|
227
261
|
"type": "object",
|
|
228
262
|
"description": "Motion/animation configuration.",
|
|
@@ -265,6 +299,18 @@
|
|
|
265
299
|
"additionalProperties": { "type": "string" }
|
|
266
300
|
}
|
|
267
301
|
}
|
|
302
|
+
},
|
|
303
|
+
"migrate": {
|
|
304
|
+
"type": "object",
|
|
305
|
+
"description": "Migration metadata consumed by `visor migrate` commands. Does not affect CSS generation or theme application.",
|
|
306
|
+
"additionalProperties": false,
|
|
307
|
+
"properties": {
|
|
308
|
+
"token-substitution": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"description": "§3.1 V7-primitive → Visor-semantic substitution table. Maps V7 CSS custom property names (with -- prefix) to Visor semantic token names. Consumed by `visor migrate token-substitution`.",
|
|
311
|
+
"additionalProperties": { "type": "string" }
|
|
312
|
+
}
|
|
313
|
+
}
|
|
268
314
|
}
|
|
269
315
|
},
|
|
270
316
|
"$defs": {
|
|
@@ -277,6 +323,28 @@
|
|
|
277
323
|
{ "pattern": "^hsla?\\(" },
|
|
278
324
|
{ "pattern": "^oklch\\(" }
|
|
279
325
|
]
|
|
326
|
+
},
|
|
327
|
+
"textSlotOverride": {
|
|
328
|
+
"type": "object",
|
|
329
|
+
"description": "Per-slot override for one Material TextTheme entry.",
|
|
330
|
+
"additionalProperties": false,
|
|
331
|
+
"properties": {
|
|
332
|
+
"size": {
|
|
333
|
+
"type": "number",
|
|
334
|
+
"exclusiveMinimum": 0,
|
|
335
|
+
"description": "Font size in logical pixels (Flutter TextStyle.fontSize)."
|
|
336
|
+
},
|
|
337
|
+
"weight": {
|
|
338
|
+
"type": "integer",
|
|
339
|
+
"minimum": 100,
|
|
340
|
+
"maximum": 900,
|
|
341
|
+
"description": "Font weight."
|
|
342
|
+
},
|
|
343
|
+
"letter-spacing": {
|
|
344
|
+
"type": "number",
|
|
345
|
+
"description": "Letter spacing in logical pixels (Flutter TextStyle.letterSpacing). Material defaults include negative values, e.g. -0.25 for displayLarge."
|
|
346
|
+
}
|
|
347
|
+
}
|
|
280
348
|
}
|
|
281
349
|
}
|
|
282
350
|
}
|