@datatechsolutions/tympan-tokens 0.4.1 → 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.
@@ -44,7 +44,7 @@
44
44
  1
45
45
  ],
46
46
  "hex": "#ffffff",
47
- "alpha": 0.9
47
+ "alpha": 0.86
48
48
  },
49
49
  "$extensions": {
50
50
  "br.com.datatechsolutions.tympan": {
@@ -88,11 +88,11 @@
88
88
  "$value": {
89
89
  "colorSpace": "srgb",
90
90
  "components": [
91
- 0.9451,
92
- 0.9608,
93
- 0.9765
91
+ 0.949,
92
+ 0.9529,
93
+ 0.9804
94
94
  ],
95
- "hex": "#f1f5f9"
95
+ "hex": "#f2f3fa"
96
96
  },
97
97
  "$extensions": {
98
98
  "br.com.datatechsolutions.tympan": {
@@ -120,11 +120,11 @@
120
120
  "$value": {
121
121
  "colorSpace": "srgb",
122
122
  "components": [
123
- 0.2,
124
- 0.2549,
125
- 0.3333
123
+ 0.2784,
124
+ 0.3333,
125
+ 0.4118
126
126
  ],
127
- "hex": "#334155"
127
+ "hex": "#475569"
128
128
  },
129
129
  "$extensions": {
130
130
  "br.com.datatechsolutions.tympan": {
@@ -136,11 +136,11 @@
136
136
  "$value": {
137
137
  "colorSpace": "srgb",
138
138
  "components": [
139
- 0.302,
140
- 0.3529,
141
- 0.4196
139
+ 0.3569,
140
+ 0.4039,
141
+ 0.4745
142
142
  ],
143
- "hex": "#4d5a6b"
143
+ "hex": "#5b6779"
144
144
  },
145
145
  "$extensions": {
146
146
  "br.com.datatechsolutions.tympan": {
@@ -157,7 +157,7 @@
157
157
  0.7216
158
158
  ],
159
159
  "hex": "#94a3b8",
160
- "alpha": 0.3
160
+ "alpha": 0.26
161
161
  },
162
162
  "$extensions": {
163
163
  "br.com.datatechsolutions.tympan": {
@@ -397,11 +397,11 @@
397
397
  "$value": {
398
398
  "colorSpace": "srgb",
399
399
  "components": [
400
- 0.0392,
401
- 0.0863,
402
- 0.1569
400
+ 0.0588,
401
+ 0.0902,
402
+ 0.1647
403
403
  ],
404
- "hex": "#0a1628",
404
+ "hex": "#0f172a",
405
405
  "alpha": 0.4
406
406
  },
407
407
  "$extensions": {
@@ -414,12 +414,12 @@
414
414
  "$value": {
415
415
  "colorSpace": "srgb",
416
416
  "components": [
417
- 0.5569,
418
- 0.6039,
419
- 1
417
+ 0.6549,
418
+ 0.5451,
419
+ 0.9804
420
420
  ],
421
- "hex": "#8e9aff",
422
- "alpha": 0.07
421
+ "hex": "#a78bfa",
422
+ "alpha": 0.05
423
423
  },
424
424
  "$extensions": {
425
425
  "br.com.datatechsolutions.tympan": {
@@ -431,12 +431,12 @@
431
431
  "$value": {
432
432
  "colorSpace": "srgb",
433
433
  "components": [
434
- 0.3059,
435
- 0.7373,
436
- 0.9216
434
+ 0.2196,
435
+ 0.7412,
436
+ 0.9725
437
437
  ],
438
- "hex": "#4ebceb",
439
- "alpha": 0.05
438
+ "hex": "#38bdf8",
439
+ "alpha": 0.03
440
440
  },
441
441
  "$extensions": {
442
442
  "br.com.datatechsolutions.tympan": {
@@ -708,11 +708,11 @@
708
708
  "$value": {
709
709
  "colorSpace": "srgb",
710
710
  "components": [
711
- 0.302,
712
- 0.3529,
713
- 0.4196
711
+ 0.3569,
712
+ 0.4039,
713
+ 0.4745
714
714
  ],
715
- "hex": "#4d5a6b"
715
+ "hex": "#5b6779"
716
716
  },
717
717
  "$extensions": {
718
718
  "br.com.datatechsolutions.tympan": {
@@ -901,11 +901,11 @@
901
901
  "$value": {
902
902
  "colorSpace": "srgb",
903
903
  "components": [
904
- 0.2,
905
- 0.2549,
906
- 0.3333
904
+ 0.2784,
905
+ 0.3333,
906
+ 0.4118
907
907
  ],
908
- "hex": "#334155"
908
+ "hex": "#475569"
909
909
  },
910
910
  "$extensions": {
911
911
  "br.com.datatechsolutions.tympan": {
@@ -917,11 +917,11 @@
917
917
  "$value": {
918
918
  "colorSpace": "srgb",
919
919
  "components": [
920
- 0.2,
921
- 0.2549,
922
- 0.3333
920
+ 0.2784,
921
+ 0.3333,
922
+ 0.4118
923
923
  ],
924
- "hex": "#334155"
924
+ "hex": "#475569"
925
925
  },
926
926
  "$extensions": {
927
927
  "br.com.datatechsolutions.tympan": {
@@ -933,11 +933,11 @@
933
933
  "$value": {
934
934
  "colorSpace": "srgb",
935
935
  "components": [
936
- 0.2,
937
- 0.2549,
938
- 0.3333
936
+ 0.2784,
937
+ 0.3333,
938
+ 0.4118
939
939
  ],
940
- "hex": "#334155"
940
+ "hex": "#475569"
941
941
  },
942
942
  "$extensions": {
943
943
  "br.com.datatechsolutions.tympan": {
@@ -949,11 +949,11 @@
949
949
  "$value": {
950
950
  "colorSpace": "srgb",
951
951
  "components": [
952
- 0.2,
953
- 0.2549,
954
- 0.3333
952
+ 0.2784,
953
+ 0.3333,
954
+ 0.4118
955
955
  ],
956
- "hex": "#334155"
956
+ "hex": "#475569"
957
957
  },
958
958
  "$extensions": {
959
959
  "br.com.datatechsolutions.tympan": {
@@ -1097,11 +1097,11 @@
1097
1097
  "$value": {
1098
1098
  "colorSpace": "srgb",
1099
1099
  "components": [
1100
- 0.302,
1101
- 0.3529,
1102
- 0.4196
1100
+ 0.3569,
1101
+ 0.4039,
1102
+ 0.4745
1103
1103
  ],
1104
- "hex": "#4d5a6b"
1104
+ "hex": "#5b6779"
1105
1105
  },
1106
1106
  "$extensions": {
1107
1107
  "br.com.datatechsolutions.tympan": {
@@ -1163,11 +1163,11 @@
1163
1163
  "$value": {
1164
1164
  "colorSpace": "srgb",
1165
1165
  "components": [
1166
- 0.2,
1167
- 0.2549,
1168
- 0.3333
1166
+ 0.2784,
1167
+ 0.3333,
1168
+ 0.4118
1169
1169
  ],
1170
- "hex": "#334155"
1170
+ "hex": "#475569"
1171
1171
  },
1172
1172
  "$extensions": {
1173
1173
  "br.com.datatechsolutions.tympan": {
@@ -1196,11 +1196,11 @@
1196
1196
  "$value": {
1197
1197
  "colorSpace": "srgb",
1198
1198
  "components": [
1199
- 0.302,
1200
- 0.3529,
1201
- 0.4196
1199
+ 0.3569,
1200
+ 0.4039,
1201
+ 0.4745
1202
1202
  ],
1203
- "hex": "#4d5a6b"
1203
+ "hex": "#5b6779"
1204
1204
  },
1205
1205
  "$extensions": {
1206
1206
  "br.com.datatechsolutions.tympan": {
@@ -1246,11 +1246,11 @@
1246
1246
  "$value": {
1247
1247
  "colorSpace": "srgb",
1248
1248
  "components": [
1249
- 0.2,
1250
- 0.2549,
1251
- 0.3333
1249
+ 0.2784,
1250
+ 0.3333,
1251
+ 0.4118
1252
1252
  ],
1253
- "hex": "#334155"
1253
+ "hex": "#475569"
1254
1254
  },
1255
1255
  "$extensions": {
1256
1256
  "br.com.datatechsolutions.tympan": {
@@ -1300,7 +1300,7 @@
1300
1300
  0.7216
1301
1301
  ],
1302
1302
  "hex": "#94a3b8",
1303
- "alpha": 0.3
1303
+ "alpha": 0.26
1304
1304
  },
1305
1305
  "$extensions": {
1306
1306
  "br.com.datatechsolutions.tympan": {
@@ -2662,27 +2662,27 @@
2662
2662
  "color": {
2663
2663
  "colorSpace": "srgb",
2664
2664
  "components": [
2665
- 0.0392,
2666
- 0.0863,
2667
- 0.1569
2665
+ 0,
2666
+ 0,
2667
+ 0
2668
2668
  ],
2669
- "hex": "#0a1628",
2670
- "alpha": 0.04
2669
+ "hex": "#000000",
2670
+ "alpha": 0.1
2671
2671
  },
2672
2672
  "offsetX": {
2673
2673
  "value": 0,
2674
2674
  "unit": "px"
2675
2675
  },
2676
2676
  "offsetY": {
2677
- "value": 1,
2677
+ "value": 4,
2678
2678
  "unit": "px"
2679
2679
  },
2680
2680
  "blur": {
2681
- "value": 2,
2681
+ "value": 16,
2682
2682
  "unit": "px"
2683
2683
  },
2684
2684
  "spread": {
2685
- "value": 0,
2685
+ "value": -2,
2686
2686
  "unit": "px"
2687
2687
  }
2688
2688
  },
@@ -2690,27 +2690,27 @@
2690
2690
  "color": {
2691
2691
  "colorSpace": "srgb",
2692
2692
  "components": [
2693
- 0.0392,
2694
- 0.0863,
2695
- 0.1569
2693
+ 0,
2694
+ 0,
2695
+ 0
2696
2696
  ],
2697
- "hex": "#0a1628",
2698
- "alpha": 0.1
2697
+ "hex": "#000000",
2698
+ "alpha": 0.06
2699
2699
  },
2700
2700
  "offsetX": {
2701
2701
  "value": 0,
2702
2702
  "unit": "px"
2703
2703
  },
2704
2704
  "offsetY": {
2705
- "value": 8,
2705
+ "value": 12,
2706
2706
  "unit": "px"
2707
2707
  },
2708
2708
  "blur": {
2709
- "value": 24,
2709
+ "value": 40,
2710
2710
  "unit": "px"
2711
2711
  },
2712
2712
  "spread": {
2713
- "value": -12,
2713
+ "value": -8,
2714
2714
  "unit": "px"
2715
2715
  }
2716
2716
  }
@@ -2727,11 +2727,11 @@
2727
2727
  "color": {
2728
2728
  "colorSpace": "srgb",
2729
2729
  "components": [
2730
- 0.0392,
2731
- 0.0863,
2732
- 0.1569
2730
+ 0.0588,
2731
+ 0.0902,
2732
+ 0.1647
2733
2733
  ],
2734
- "hex": "#0a1628",
2734
+ "hex": "#0f172a",
2735
2735
  "alpha": 0.08
2736
2736
  },
2737
2737
  "offsetX": {
@@ -2750,6 +2750,34 @@
2750
2750
  "value": -2,
2751
2751
  "unit": "px"
2752
2752
  }
2753
+ },
2754
+ {
2755
+ "color": {
2756
+ "colorSpace": "srgb",
2757
+ "components": [
2758
+ 0.0588,
2759
+ 0.0902,
2760
+ 0.1647
2761
+ ],
2762
+ "hex": "#0f172a",
2763
+ "alpha": 0.04
2764
+ },
2765
+ "offsetX": {
2766
+ "value": 0,
2767
+ "unit": "px"
2768
+ },
2769
+ "offsetY": {
2770
+ "value": 2,
2771
+ "unit": "px"
2772
+ },
2773
+ "blur": {
2774
+ "value": 4,
2775
+ "unit": "px"
2776
+ },
2777
+ "spread": {
2778
+ "value": -2,
2779
+ "unit": "px"
2780
+ }
2753
2781
  }
2754
2782
  ],
2755
2783
  "$extensions": {
@@ -2764,12 +2792,12 @@
2764
2792
  "color": {
2765
2793
  "colorSpace": "srgb",
2766
2794
  "components": [
2767
- 0.0392,
2768
- 0.0863,
2769
- 0.1569
2795
+ 0.0588,
2796
+ 0.0902,
2797
+ 0.1647
2770
2798
  ],
2771
- "hex": "#0a1628",
2772
- "alpha": 0.14
2799
+ "hex": "#0f172a",
2800
+ "alpha": 0.12
2773
2801
  },
2774
2802
  "offsetX": {
2775
2803
  "value": 0,
@@ -2787,6 +2815,34 @@
2787
2815
  "value": -8,
2788
2816
  "unit": "px"
2789
2817
  }
2818
+ },
2819
+ {
2820
+ "color": {
2821
+ "colorSpace": "srgb",
2822
+ "components": [
2823
+ 0.0588,
2824
+ 0.0902,
2825
+ 0.1647
2826
+ ],
2827
+ "hex": "#0f172a",
2828
+ "alpha": 0.06
2829
+ },
2830
+ "offsetX": {
2831
+ "value": 0,
2832
+ "unit": "px"
2833
+ },
2834
+ "offsetY": {
2835
+ "value": 4,
2836
+ "unit": "px"
2837
+ },
2838
+ "blur": {
2839
+ "value": 8,
2840
+ "unit": "px"
2841
+ },
2842
+ "spread": {
2843
+ "value": -4,
2844
+ "unit": "px"
2845
+ }
2790
2846
  }
2791
2847
  ],
2792
2848
  "$extensions": {
@@ -2801,12 +2857,12 @@
2801
2857
  "color": {
2802
2858
  "colorSpace": "srgb",
2803
2859
  "components": [
2804
- 0.0392,
2805
- 0.0863,
2806
- 0.1569
2860
+ 0,
2861
+ 0,
2862
+ 0
2807
2863
  ],
2808
- "hex": "#0a1628",
2809
- "alpha": 0.35
2864
+ "hex": "#000000",
2865
+ "alpha": 0.45
2810
2866
  },
2811
2867
  "offsetX": {
2812
2868
  "value": 0,
@@ -2824,6 +2880,34 @@
2824
2880
  "value": -30,
2825
2881
  "unit": "px"
2826
2882
  }
2883
+ },
2884
+ {
2885
+ "color": {
2886
+ "colorSpace": "srgb",
2887
+ "components": [
2888
+ 0,
2889
+ 0,
2890
+ 0
2891
+ ],
2892
+ "hex": "#000000",
2893
+ "alpha": 0.18
2894
+ },
2895
+ "offsetX": {
2896
+ "value": 0,
2897
+ "unit": "px"
2898
+ },
2899
+ "offsetY": {
2900
+ "value": 16,
2901
+ "unit": "px"
2902
+ },
2903
+ "blur": {
2904
+ "value": 40,
2905
+ "unit": "px"
2906
+ },
2907
+ "spread": {
2908
+ "value": -12,
2909
+ "unit": "px"
2910
+ }
2827
2911
  }
2828
2912
  ],
2829
2913
  "$extensions": {
@@ -2843,7 +2927,7 @@
2843
2927
  1
2844
2928
  ],
2845
2929
  "hex": "#ffffff",
2846
- "alpha": 0
2930
+ "alpha": 0.7
2847
2931
  },
2848
2932
  "offsetX": {
2849
2933
  "value": 0,
@@ -2854,9 +2938,38 @@
2854
2938
  "unit": "px"
2855
2939
  },
2856
2940
  "blur": {
2941
+ "value": 2,
2942
+ "unit": "px"
2943
+ },
2944
+ "spread": {
2857
2945
  "value": 0,
2858
2946
  "unit": "px"
2859
2947
  },
2948
+ "inset": true
2949
+ },
2950
+ {
2951
+ "color": {
2952
+ "colorSpace": "srgb",
2953
+ "components": [
2954
+ 0,
2955
+ 0,
2956
+ 0
2957
+ ],
2958
+ "hex": "#000000",
2959
+ "alpha": 0.04
2960
+ },
2961
+ "offsetX": {
2962
+ "value": 0,
2963
+ "unit": "px"
2964
+ },
2965
+ "offsetY": {
2966
+ "value": -1,
2967
+ "unit": "px"
2968
+ },
2969
+ "blur": {
2970
+ "value": 2,
2971
+ "unit": "px"
2972
+ },
2860
2973
  "spread": {
2861
2974
  "value": 0,
2862
2975
  "unit": "px"
@@ -2897,7 +3010,7 @@
2897
3010
  },
2898
3011
  "radius-card": {
2899
3012
  "$value": {
2900
- "value": 19,
3013
+ "value": 20,
2901
3014
  "unit": "px"
2902
3015
  },
2903
3016
  "$extensions": {
@@ -2908,7 +3021,7 @@
2908
3021
  },
2909
3022
  "radius-sheet": {
2910
3023
  "$value": {
2911
- "value": 29,
3024
+ "value": 24,
2912
3025
  "unit": "px"
2913
3026
  },
2914
3027
  "$extensions": {
package/dist/index.d.ts CHANGED
@@ -109,6 +109,29 @@ export interface ThemeConfig {
109
109
  elevation?: Elevation;
110
110
  /** Arbitrary string variables (e.g. for textures) */
111
111
  strings?: Record<string, string>;
112
+ /**
113
+ * String variables per mode (`--ty-<name>`), for values that differ
114
+ * between light and dark: a glass edge, a fill gradient, a brand mark
115
+ * gradient. Like pins, they are exact design values: the generated
116
+ * high-contrast variant leaves them out, so components fall back.
117
+ */
118
+ modeStrings?: Partial<Record<Mode, Record<string, string>>>;
119
+ /** Backdrop saturation of glass surfaces per mode (1.15 when omitted). */
120
+ glassSaturate?: Partial<Record<Mode, number>>;
121
+ /** Exact shadow layers per mode, replacing the generated ones by name. */
122
+ shadowPins?: Partial<Record<Mode, Partial<Record<ShadowName, ShadowPin[]>>>>;
123
+ /** Card and sheet radii in px, when they do not follow the control radius. */
124
+ radii?: Partial<Record<'card' | 'sheet', number>>;
125
+ }
126
+ export type ShadowName = 'sheet' | 'raised' | 'floating' | 'modal' | 'sheet-inset';
127
+ /** One shadow layer of `shadowPins`, its colour as a CSS colour string. */
128
+ export interface ShadowPin {
129
+ x: number;
130
+ y: number;
131
+ blur: number;
132
+ spread: number;
133
+ color: string;
134
+ inset?: boolean;
112
135
  }
113
136
  export declare const RAMP_STEPS: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
114
137
  export type RampStep = (typeof RAMP_STEPS)[number];
@@ -156,7 +179,7 @@ export interface ResolvedTheme {
156
179
  angle: number;
157
180
  stops: Rgba[];
158
181
  };
159
- shadows: Record<'sheet' | 'raised' | 'floating' | 'modal' | 'sheet-inset', ShadowLayer[]>;
182
+ shadows: Record<ShadowName, ShadowLayer[]>;
160
183
  /** Pixel dimensions (radius, glass blur, focus width). */
161
184
  dimensions: Record<string, number>;
162
185
  /** Font stacks keyed by token name (`serif`, `sans`, `mono`); empty when the theme keeps the base stacks. */
@@ -201,8 +224,10 @@ export declare const fakhirPreset: ThemeConfig;
201
224
  /**
202
225
  * The Astrlabe workflow engine's look (`data-ty-theme="astrlabe"`): slate
203
226
  * neutrals, an indigo brand (indigo 500 as the accent family, one step darker
204
- * where text needs 4.5:1 on light grounds), translucent glass surfaces and the
205
- * rounder corners of that app (12 px controls, about 20 px cards). The call to
227
+ * where text needs 4.5:1 on light grounds), liquid-glass surfaces (gradient
228
+ * fills, specular edges, a strong saturation boost at night), the rounder
229
+ * corners of that app (12 px controls, 20 px cards, 24 px sheets), its
230
+ * compact type scale and the sky, indigo and violet mark. The call to
206
231
  * action is the indigo to purple gradient its primary buttons fill with, and
207
232
  * text (headings included) uses the platform's own system fonts. The state
208
233
  * contract holds on every ground: running is a cyan clearly off the indigo