@multiplatform.one/theme 7.69.2 → 7.71.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.
Files changed (36) hide show
  1. package/package.json +5 -5
  2. package/src/audit/constraintAudit.ts +2 -0
  3. package/src/expo.spec.ts +4 -4
  4. package/src/expo.ts +11 -1
  5. package/src/theme/colorRules.ts +87 -0
  6. package/src/theme/createDefaultThemeConfig.spec.ts +8 -4
  7. package/src/theme/createDefaultThemeConfig.ts +27 -3
  8. package/src/theme/createThemes.ts +221 -56
  9. package/src/theme/dedupeInherited.spec.ts +160 -0
  10. package/src/theme/dedupeInherited.ts +117 -0
  11. package/src/theme/defaults/builderOptions.ts +1 -1
  12. package/src/theme/fillContrast.spec.ts +204 -0
  13. package/src/theme/fillContrast.ts +163 -0
  14. package/src/theme/index.ts +2 -0
  15. package/src/theme/oneThemeEngine.spec.ts +192 -0
  16. package/src/theme/presets.ts +37 -2
  17. package/src/theme/selectedState.spec.ts +19 -1
  18. package/src/theme/switchThumb.spec.ts +25 -14
  19. package/src/theme/v3TokenRoles.ts +51 -0
  20. package/types/audit/constraintAudit.d.ts.map +1 -1
  21. package/types/expo.d.ts.map +1 -1
  22. package/types/theme/colorRules.d.ts +39 -0
  23. package/types/theme/colorRules.d.ts.map +1 -1
  24. package/types/theme/createDefaultThemeConfig.d.ts +13 -2
  25. package/types/theme/createDefaultThemeConfig.d.ts.map +1 -1
  26. package/types/theme/createThemes.d.ts.map +1 -1
  27. package/types/theme/dedupeInherited.d.ts +54 -0
  28. package/types/theme/dedupeInherited.d.ts.map +1 -0
  29. package/types/theme/fillContrast.d.ts +41 -0
  30. package/types/theme/fillContrast.d.ts.map +1 -0
  31. package/types/theme/index.d.ts +2 -0
  32. package/types/theme/index.d.ts.map +1 -1
  33. package/types/theme/presets.d.ts +24 -0
  34. package/types/theme/presets.d.ts.map +1 -1
  35. package/types/theme/v3TokenRoles.d.ts +51 -0
  36. package/types/theme/v3Token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B,CAAC;AAEpF,cAAc,YAAY,CAAC"}
@@ -1,4 +1,10 @@
1
1
  import type { Preset } from "./preset.types";
2
+ /**
3
+ * The house look. Its accent is Apple's system tint, MPO's `blue` scope, held
4
+ * by the engine to a white label that clears APCA Lc 60: the neutral inverse
5
+ * painted black fills in light and white in dark (LC-172), and every filled
6
+ * or selected control takes its colour from the theme's accent.
7
+ */
2
8
  export declare const defaultPreset: Preset;
3
9
  export declare const boldPreset: Preset;
4
10
  /**
@@ -24,4 +30,22 @@ export declare const densePreset: Preset;
24
30
  * identical to the default's: every px it adds comes from token values.
25
31
  */
26
32
  export declare const roomyPreset: Preset;
33
+ /**
34
+ * The SHC console's look on the house engine (LC-160, FZ-7970). The console
35
+ * paints MPO's house ramp and knobs (SHC-953) on Tamagui's own 44/18/9 tokens
36
+ * (`shc/packages/themes/buildMatrix.ts` `houseTokens`), so the preset sits on
37
+ * v5's 44/15 scale. Its fills take the console's one interaction accent, the
38
+ * springboard violet (`SPRINGBOARD_ACCENT`), as MPO's `purple` scope: a black
39
+ * filled control or chart series on the white ground breaks LC-172.
40
+ * Identifiers on a console page set `fontFamily="$mono"`, IBM Plex Mono.
41
+ */
42
+ export declare const consolePreset: Preset;
43
+ /**
44
+ * The SHC storefront's look (LC-160, FZ-7970): Tamagui v5's own scale
45
+ * (44 px controls, 15 px body) and no decorative hue tints, so nested regions
46
+ * stay on the neutral ramp. The SHC storefront has no accent of its own and a
47
+ * grey fill breaks LC-172, so its fills take Apple's system tint, MPO's `blue`
48
+ * scope, held by the engine to a white label that clears APCA Lc 60.
49
+ */
50
+ export declare const storefrontPreset: Preset;
27
51
  //# sourceMappingURL=presets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../src/theme/presets.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG7C,eAAO,MAAM,aAAa,EAAE,MA8B3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MA6BxB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,EAAE,MAGxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAGzB,CAAC"}
1
+ {"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../src/theme/presets.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,MA8B3B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MA6BxB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,EAAE,MAGxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,MAGzB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,EAAE,MAI3B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAK9B,CAAC"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * The SHC console's v3 named tokens (`shc/packages/themes/
3
+ * consoleBuilderOptions.ts`) and the MPO role each one becomes (LC-160,
4
+ * FZ-7970). A role is a key every MPO theme carries. The console switch
5
+ * (FZ-7970 lane 9) rewrites each `$good` read as `$green9` and so on, so the
6
+ * value comes from whatever theme the screen sits in and the holds (accent
7
+ * floor, named ink, hairline) reach it.
8
+ *
9
+ * `springboard` marks the keys with no MPO role: the home-screen wall and
10
+ * plate colours. They stay console-only, written as additive
11
+ * `builderOptions.getTheme` keys on the two root schemes.
12
+ */
13
+ export declare const v3TokenRoles: {
14
+ readonly backgroundChrome: "background";
15
+ readonly backgroundStrong: "color3";
16
+ readonly backgroundSunk: "color3";
17
+ readonly backgroundScrim: "shadow6";
18
+ readonly hairline: "borderColorHairline";
19
+ readonly hairlineStrong: "borderColor";
20
+ readonly colorSubtle: "textMuted";
21
+ readonly colorMuted: "textMuted";
22
+ readonly colorInverse: "color1";
23
+ readonly grabColor: "color8";
24
+ readonly good: "green9";
25
+ readonly goodSoft: "green3";
26
+ readonly warning: "yellow9";
27
+ readonly warningSoft: "yellow3";
28
+ readonly critical: "red9";
29
+ readonly criticalSoft: "red3";
30
+ readonly info: "blue9";
31
+ readonly idle: "textMuted";
32
+ readonly accentSoft: "selectedBackground";
33
+ readonly accentOn: "accentColor";
34
+ readonly accentText: "selectedColor";
35
+ readonly accentBorder: "accentBackground";
36
+ readonly spark: "accentBackground";
37
+ readonly wall1: "springboard";
38
+ readonly wall2: "springboard";
39
+ readonly wall3: "springboard";
40
+ readonly wall4: "springboard";
41
+ readonly plate: "springboard";
42
+ readonly plateBorder: "springboard";
43
+ readonly plateInk: "springboard";
44
+ readonly platePaper: "springboard";
45
+ readonly platePewter: "springboard";
46
+ readonly plateRingHi: "springboard";
47
+ readonly plateRingLo: "springboard";
48
+ readonly stoppedWash: "springboard";
49
+ };
50
+ export type V3Token = keyof typeof v3TokenRoles;
51
+ //# sourceMappingURL=v3TokenRoles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v3TokenRoles.d.ts","sourceRoot":"","sources":["../../src/theme/v3TokenRoles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCf,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,YAAY,CAAC"}