@loworbitstudio/visor-theme-engine 0.10.0 → 0.11.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/index.js +34 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1205,6 +1205,23 @@ var SEMANTIC_SURFACE_MAP = {
|
|
|
1205
1205
|
light: { role: "info", shade: 500 },
|
|
1206
1206
|
dark: { role: "info", shade: 500 }
|
|
1207
1207
|
},
|
|
1208
|
+
// VI-478: status soft tints (BL-193) — alpha overlays, semantically distinct
|
|
1209
|
+
// from the OPAQUE `surface-{status}-subtle` above (do NOT alias them together).
|
|
1210
|
+
// Default to a color-mix of the status color so they track the theme; themes
|
|
1211
|
+
// pin exact values via overrides (blacklight-underground: success @10%,
|
|
1212
|
+
// warning/error @12%).
|
|
1213
|
+
"success-soft": {
|
|
1214
|
+
light: { constant: "color-mix(in srgb, var(--color-success-500) 10%, transparent)" },
|
|
1215
|
+
dark: { constant: "color-mix(in srgb, var(--color-success-500) 10%, transparent)" }
|
|
1216
|
+
},
|
|
1217
|
+
"warning-soft": {
|
|
1218
|
+
light: { constant: "color-mix(in srgb, var(--color-warning-500) 12%, transparent)" },
|
|
1219
|
+
dark: { constant: "color-mix(in srgb, var(--color-warning-500) 12%, transparent)" }
|
|
1220
|
+
},
|
|
1221
|
+
"error-soft": {
|
|
1222
|
+
light: { constant: "color-mix(in srgb, var(--color-error-500) 12%, transparent)" },
|
|
1223
|
+
dark: { constant: "color-mix(in srgb, var(--color-error-500) 12%, transparent)" }
|
|
1224
|
+
},
|
|
1208
1225
|
// 5-tier ordinal elevation scale — deepest (0) to highest (4)
|
|
1209
1226
|
// Light mode: BO-10 near-white ramp (white → neutral-300).
|
|
1210
1227
|
// Dark mode: deep neutral ramp (neutral-950 → neutral-600).
|
|
@@ -1285,6 +1302,23 @@ var SEMANTIC_INTERACTIVE_MAP = {
|
|
|
1285
1302
|
light: { constant: "#ffffff" },
|
|
1286
1303
|
dark: { constant: "#ffffff" }
|
|
1287
1304
|
},
|
|
1305
|
+
// VI-478: brand-derived alpha-overlay helpers (BL-193). `soft`/`glow` are
|
|
1306
|
+
// alpha overlays that track the theme's primary via color-mix (distinct from
|
|
1307
|
+
// any opaque surface); `strong` is a solid lightened-brand emphasis color.
|
|
1308
|
+
// Themes pin exact values via overrides — e.g. blacklight-underground sets
|
|
1309
|
+
// soft @12% / glow @32% / strong #FFD050.
|
|
1310
|
+
"primary-soft": {
|
|
1311
|
+
light: { constant: "color-mix(in srgb, var(--color-primary-500) 12%, transparent)" },
|
|
1312
|
+
dark: { constant: "color-mix(in srgb, var(--color-primary-500) 12%, transparent)" }
|
|
1313
|
+
},
|
|
1314
|
+
"primary-glow": {
|
|
1315
|
+
light: { constant: "color-mix(in srgb, var(--color-primary-500) 32%, transparent)" },
|
|
1316
|
+
dark: { constant: "color-mix(in srgb, var(--color-primary-500) 32%, transparent)" }
|
|
1317
|
+
},
|
|
1318
|
+
"primary-strong": {
|
|
1319
|
+
light: { role: "primary", shade: 600 },
|
|
1320
|
+
dark: { role: "primary", shade: 400 }
|
|
1321
|
+
},
|
|
1288
1322
|
// Secondary action
|
|
1289
1323
|
"secondary-bg": {
|
|
1290
1324
|
light: { constant: "#ffffff" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loworbitstudio/visor-theme-engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Theme engine for the Visor design system — shade generation, token mapping, font resolution, and import/export for .visor.yaml themes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|