@oxyhq/bloom 0.40.0 → 0.41.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/lib/commonjs/theme/color-engine/scheme-variants.js +23 -0
- package/lib/commonjs/theme/color-engine/scheme-variants.js.map +1 -1
- package/lib/commonjs/theme/color-presets.js +13 -13
- package/lib/commonjs/theme/color-presets.js.map +1 -1
- package/lib/commonjs/theme/color-scope/seed-scope.js +1 -0
- package/lib/commonjs/theme/color-scope/seed-scope.js.map +1 -1
- package/lib/module/theme/color-engine/scheme-variants.js +22 -0
- package/lib/module/theme/color-engine/scheme-variants.js.map +1 -1
- package/lib/module/theme/color-presets.js +13 -13
- package/lib/module/theme/color-presets.js.map +1 -1
- package/lib/module/theme/color-scope/seed-scope.js +1 -0
- package/lib/module/theme/color-scope/seed-scope.js.map +1 -1
- package/lib/typescript/commonjs/theme/color-engine/scheme-variants.d.ts +10 -1
- package/lib/typescript/commonjs/theme/color-engine/scheme-variants.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/seed-scope.d.ts +3 -2
- package/lib/typescript/commonjs/theme/color-scope/seed-scope.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-engine/scheme-variants.d.ts +10 -1
- package/lib/typescript/module/theme/color-engine/scheme-variants.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/seed-scope.d.ts +3 -2
- package/lib/typescript/module/theme/color-scope/seed-scope.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/theme/__tests__/__fixtures__/golden-resolved-tokens.json +74 -74
- package/src/theme/__tests__/__snapshots__/visual-gallery.test.tsx.snap +68 -68
- package/src/theme/color-engine/scheme-variants.ts +30 -1
- package/src/theme/color-presets.ts +13 -13
- package/src/theme/color-scope/seed-scope.ts +4 -2
|
@@ -25,11 +25,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
25
25
|
"primaryLight": "rgb(36 26 14)",
|
|
26
26
|
"primarySubtle": "rgb(101 62 0)",
|
|
27
27
|
"primarySubtleForeground": "rgb(255 221 184)",
|
|
28
|
-
"secondary": "rgb(
|
|
29
|
-
"secondaryForeground": "rgb(
|
|
28
|
+
"secondary": "rgb(255 186 43)",
|
|
29
|
+
"secondaryForeground": "rgb(66 44 0)",
|
|
30
30
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
31
31
|
"success": "#10B981",
|
|
32
|
-
"tertiary": "rgb(
|
|
32
|
+
"tertiary": "rgb(243 192 0)",
|
|
33
33
|
"tertiaryForeground": "rgb(61 46 0)",
|
|
34
34
|
"text": "rgb(244 223 203)",
|
|
35
35
|
"textSecondary": "rgb(217 195 171)",
|
|
@@ -60,11 +60,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
60
60
|
"primaryLight": "rgb(255 241 229)",
|
|
61
61
|
"primarySubtle": "rgb(255 221 184)",
|
|
62
62
|
"primarySubtleForeground": "rgb(101 62 0)",
|
|
63
|
-
"secondary": "rgb(
|
|
63
|
+
"secondary": "rgb(125 87 0)",
|
|
64
64
|
"secondaryForeground": "rgb(255 255 255)",
|
|
65
65
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
66
66
|
"success": "#10B981",
|
|
67
|
-
"tertiary": "rgb(
|
|
67
|
+
"tertiary": "rgb(117 91 0)",
|
|
68
68
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
69
69
|
"text": "rgb(36 26 14)",
|
|
70
70
|
"textSecondary": "rgb(84 68 50)",
|
|
@@ -95,12 +95,12 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
95
95
|
"primaryLight": "rgb(21 28 36)",
|
|
96
96
|
"primarySubtle": "rgb(0 74 120)",
|
|
97
97
|
"primarySubtleForeground": "rgb(207 229 255)",
|
|
98
|
-
"secondary": "rgb(
|
|
99
|
-
"secondaryForeground": "rgb(
|
|
98
|
+
"secondary": "rgb(175 198 255)",
|
|
99
|
+
"secondaryForeground": "rgb(0 45 109)",
|
|
100
100
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
101
101
|
"success": "#10B981",
|
|
102
|
-
"tertiary": "rgb(193
|
|
103
|
-
"tertiaryForeground": "rgb(
|
|
102
|
+
"tertiary": "rgb(193 193 255)",
|
|
103
|
+
"tertiaryForeground": "rgb(18 0 169)",
|
|
104
104
|
"text": "rgb(220 227 238)",
|
|
105
105
|
"textSecondary": "rgb(190 199 212)",
|
|
106
106
|
"textTertiary": "rgb(136 146 158)",
|
|
@@ -130,11 +130,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
130
130
|
"primaryLight": "rgb(237 244 255)",
|
|
131
131
|
"primarySubtle": "rgb(207 229 255)",
|
|
132
132
|
"primarySubtleForeground": "rgb(0 74 120)",
|
|
133
|
-
"secondary": "rgb(
|
|
133
|
+
"secondary": "rgb(0 89 200)",
|
|
134
134
|
"secondaryForeground": "rgb(255 255 255)",
|
|
135
135
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
136
136
|
"success": "#10B981",
|
|
137
|
-
"tertiary": "rgb(
|
|
137
|
+
"tertiary": "rgb(71 71 225)",
|
|
138
138
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
139
139
|
"text": "rgb(21 28 36)",
|
|
140
140
|
"textSecondary": "rgb(62 72 82)",
|
|
@@ -165,11 +165,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
165
165
|
"primaryLight": "rgb(24 29 18)",
|
|
166
166
|
"primarySubtle": "rgb(40 80 0)",
|
|
167
167
|
"primarySubtleForeground": "rgb(138 254 0)",
|
|
168
|
-
"secondary": "rgb(
|
|
169
|
-
"secondaryForeground": "rgb(
|
|
168
|
+
"secondary": "rgb(102 222 124)",
|
|
169
|
+
"secondaryForeground": "rgb(0 57 19)",
|
|
170
170
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
171
171
|
"success": "#10B981",
|
|
172
|
-
"tertiary": "rgb(
|
|
172
|
+
"tertiary": "rgb(0 226 157)",
|
|
173
173
|
"tertiaryForeground": "rgb(0 56 36)",
|
|
174
174
|
"text": "rgb(223 229 211)",
|
|
175
175
|
"textSecondary": "rgb(193 202 180)",
|
|
@@ -200,11 +200,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
200
200
|
"primaryLight": "rgb(240 246 227)",
|
|
201
201
|
"primarySubtle": "rgb(138 254 0)",
|
|
202
202
|
"primarySubtleForeground": "rgb(40 80 0)",
|
|
203
|
-
"secondary": "rgb(
|
|
203
|
+
"secondary": "rgb(0 110 43)",
|
|
204
204
|
"secondaryForeground": "rgb(255 255 255)",
|
|
205
205
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
206
206
|
"success": "#10B981",
|
|
207
|
-
"tertiary": "rgb(
|
|
207
|
+
"tertiary": "rgb(0 108 73)",
|
|
208
208
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
209
209
|
"text": "rgb(24 29 18)",
|
|
210
210
|
"textSecondary": "rgb(65 73 57)",
|
|
@@ -235,11 +235,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
235
235
|
"primaryLight": "rgb(19 30 24)",
|
|
236
236
|
"primarySubtle": "rgb(0 82 54)",
|
|
237
237
|
"primarySubtleForeground": "rgb(71 255 184)",
|
|
238
|
-
"secondary": "rgb(
|
|
239
|
-
"secondaryForeground": "rgb(
|
|
238
|
+
"secondary": "rgb(0 223 192)",
|
|
239
|
+
"secondaryForeground": "rgb(0 56 46)",
|
|
240
240
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
241
241
|
"success": "#10B981",
|
|
242
|
-
"tertiary": "rgb(
|
|
242
|
+
"tertiary": "rgb(0 221 218)",
|
|
243
243
|
"tertiaryForeground": "rgb(0 55 54)",
|
|
244
244
|
"text": "rgb(217 230 220)",
|
|
245
245
|
"textSecondary": "rgb(186 203 191)",
|
|
@@ -270,11 +270,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
270
270
|
"primaryLight": "rgb(234 247 237)",
|
|
271
271
|
"primarySubtle": "rgb(71 255 184)",
|
|
272
272
|
"primarySubtleForeground": "rgb(0 82 54)",
|
|
273
|
-
"secondary": "rgb(
|
|
273
|
+
"secondary": "rgb(0 107 91)",
|
|
274
274
|
"secondaryForeground": "rgb(255 255 255)",
|
|
275
275
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
276
276
|
"success": "#10B981",
|
|
277
|
-
"tertiary": "rgb(
|
|
277
|
+
"tertiary": "rgb(0 106 104)",
|
|
278
278
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
279
279
|
"text": "rgb(19 30 24)",
|
|
280
280
|
"textSecondary": "rgb(59 74 65)",
|
|
@@ -305,11 +305,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
305
305
|
"primaryLight": "rgb(17 30 28)",
|
|
306
306
|
"primarySubtle": "rgb(0 80 72)",
|
|
307
307
|
"primarySubtleForeground": "rgb(0 254 229)",
|
|
308
|
-
"secondary": "rgb(
|
|
308
|
+
"secondary": "rgb(0 220 230)",
|
|
309
309
|
"secondaryForeground": "rgb(0 55 58)",
|
|
310
310
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
311
311
|
"success": "#10B981",
|
|
312
|
-
"tertiary": "rgb(
|
|
312
|
+
"tertiary": "rgb(38 216 255)",
|
|
313
313
|
"tertiaryForeground": "rgb(0 54 65)",
|
|
314
314
|
"text": "rgb(215 230 225)",
|
|
315
315
|
"textSecondary": "rgb(184 202 198)",
|
|
@@ -340,11 +340,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
340
340
|
"primaryLight": "rgb(232 247 242)",
|
|
341
341
|
"primarySubtle": "rgb(0 254 229)",
|
|
342
342
|
"primarySubtleForeground": "rgb(0 80 72)",
|
|
343
|
-
"secondary": "rgb(
|
|
343
|
+
"secondary": "rgb(0 105 110)",
|
|
344
344
|
"secondaryForeground": "rgb(255 255 255)",
|
|
345
345
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
346
346
|
"success": "#10B981",
|
|
347
|
-
"tertiary": "rgb(
|
|
347
|
+
"tertiary": "rgb(0 103 124)",
|
|
348
348
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
349
349
|
"text": "rgb(17 30 28)",
|
|
350
350
|
"textSecondary": "rgb(57 74 71)",
|
|
@@ -375,11 +375,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
375
375
|
"primaryLight": "rgb(38 24 17)",
|
|
376
376
|
"primarySubtle": "rgb(120 50 0)",
|
|
377
377
|
"primarySubtleForeground": "rgb(255 219 202)",
|
|
378
|
-
"secondary": "rgb(
|
|
379
|
-
"secondaryForeground": "rgb(
|
|
378
|
+
"secondary": "rgb(255 184 118)",
|
|
379
|
+
"secondaryForeground": "rgb(75 39 0)",
|
|
380
380
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
381
381
|
"success": "#10B981",
|
|
382
|
-
"tertiary": "rgb(
|
|
382
|
+
"tertiary": "rgb(255 186 71)",
|
|
383
383
|
"tertiaryForeground": "rgb(68 43 0)",
|
|
384
384
|
"text": "rgb(248 221 209)",
|
|
385
385
|
"textSecondary": "rgb(223 192 178)",
|
|
@@ -410,11 +410,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
410
410
|
"primaryLight": "rgb(255 241 235)",
|
|
411
411
|
"primarySubtle": "rgb(255 219 202)",
|
|
412
412
|
"primarySubtleForeground": "rgb(120 50 0)",
|
|
413
|
-
"secondary": "rgb(
|
|
413
|
+
"secondary": "rgb(141 79 0)",
|
|
414
414
|
"secondaryForeground": "rgb(255 255 255)",
|
|
415
415
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
416
416
|
"success": "#10B981",
|
|
417
|
-
"tertiary": "rgb(
|
|
417
|
+
"tertiary": "rgb(128 86 0)",
|
|
418
418
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
419
419
|
"text": "rgb(38 24 17)",
|
|
420
420
|
"textSecondary": "rgb(87 66 56)",
|
|
@@ -445,12 +445,12 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
445
445
|
"primaryLight": "rgb(33 25 34)",
|
|
446
446
|
"primarySubtle": "rgb(119 0 154)",
|
|
447
447
|
"primarySubtleForeground": "rgb(251 215 255)",
|
|
448
|
-
"secondary": "rgb(
|
|
449
|
-
"secondaryForeground": "rgb(
|
|
448
|
+
"secondary": "rgb(255 171 243)",
|
|
449
|
+
"secondaryForeground": "rgb(91 0 91)",
|
|
450
450
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
451
451
|
"success": "#10B981",
|
|
452
|
-
"tertiary": "rgb(
|
|
453
|
-
"tertiaryForeground": "rgb(
|
|
452
|
+
"tertiary": "rgb(255 174 217)",
|
|
453
|
+
"tertiaryForeground": "rgb(97 0 70)",
|
|
454
454
|
"text": "rgb(237 222 235)",
|
|
455
455
|
"textSecondary": "rgb(210 193 210)",
|
|
456
456
|
"textTertiary": "rgb(155 140 155)",
|
|
@@ -480,11 +480,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
480
480
|
"primaryLight": "rgb(255 239 253)",
|
|
481
481
|
"primarySubtle": "rgb(251 215 255)",
|
|
482
482
|
"primarySubtleForeground": "rgb(119 0 154)",
|
|
483
|
-
"secondary": "rgb(
|
|
483
|
+
"secondary": "rgb(153 51 148)",
|
|
484
484
|
"secondaryForeground": "rgb(255 255 255)",
|
|
485
485
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
486
486
|
"success": "#10B981",
|
|
487
|
-
"tertiary": "rgb(
|
|
487
|
+
"tertiary": "rgb(169 36 127)",
|
|
488
488
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
489
489
|
"text": "rgb(33 25 34)",
|
|
490
490
|
"textSecondary": "rgb(79 67 80)",
|
|
@@ -515,12 +515,12 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
515
515
|
"primaryLight": "rgb(37 24 29)",
|
|
516
516
|
"primarySubtle": "rgb(140 0 83)",
|
|
517
517
|
"primarySubtleForeground": "rgb(255 217 228)",
|
|
518
|
-
"secondary": "rgb(
|
|
519
|
-
"secondaryForeground": "rgb(
|
|
518
|
+
"secondary": "rgb(255 178 190)",
|
|
519
|
+
"secondaryForeground": "rgb(102 0 38)",
|
|
520
520
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
521
521
|
"success": "#10B981",
|
|
522
522
|
"tertiary": "rgb(255 179 175)",
|
|
523
|
-
"tertiaryForeground": "rgb(
|
|
523
|
+
"tertiaryForeground": "rgb(104 0 14)",
|
|
524
524
|
"text": "rgb(245 220 227)",
|
|
525
525
|
"textSecondary": "rgb(219 191 200)",
|
|
526
526
|
"textTertiary": "rgb(163 138 146)",
|
|
@@ -550,11 +550,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
550
550
|
"primaryLight": "rgb(255 240 243)",
|
|
551
551
|
"primarySubtle": "rgb(255 217 228)",
|
|
552
552
|
"primarySubtleForeground": "rgb(140 0 83)",
|
|
553
|
-
"secondary": "rgb(
|
|
553
|
+
"secondary": "rgb(170 48 81)",
|
|
554
554
|
"secondaryForeground": "rgb(255 255 255)",
|
|
555
555
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
556
556
|
"success": "#10B981",
|
|
557
|
-
"tertiary": "rgb(
|
|
557
|
+
"tertiary": "rgb(178 42 48)",
|
|
558
558
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
559
559
|
"text": "rgb(37 24 29)",
|
|
560
560
|
"textSecondary": "rgb(85 65 72)",
|
|
@@ -585,12 +585,12 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
585
585
|
"primaryLight": "rgb(29 26 36)",
|
|
586
586
|
"primarySubtle": "rgb(86 0 202)",
|
|
587
587
|
"primarySubtleForeground": "rgb(233 221 255)",
|
|
588
|
-
"secondary": "rgb(
|
|
589
|
-
"secondaryForeground": "rgb(
|
|
588
|
+
"secondary": "rgb(227 181 255)",
|
|
589
|
+
"secondaryForeground": "rgb(77 0 122)",
|
|
590
590
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
591
591
|
"success": "#10B981",
|
|
592
|
-
"tertiary": "rgb(
|
|
593
|
-
"tertiaryForeground": "rgb(
|
|
592
|
+
"tertiary": "rgb(254 169 255)",
|
|
593
|
+
"tertiaryForeground": "rgb(88 0 98)",
|
|
594
594
|
"text": "rgb(231 224 238)",
|
|
595
595
|
"textSecondary": "rgb(203 195 213)",
|
|
596
596
|
"textTertiary": "rgb(148 142 159)",
|
|
@@ -620,11 +620,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
620
620
|
"primaryLight": "rgb(248 241 255)",
|
|
621
621
|
"primarySubtle": "rgb(233 221 255)",
|
|
622
622
|
"primarySubtleForeground": "rgb(86 0 202)",
|
|
623
|
-
"secondary": "rgb(
|
|
623
|
+
"secondary": "rgb(131 60 180)",
|
|
624
624
|
"secondaryForeground": "rgb(255 255 255)",
|
|
625
625
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
626
626
|
"success": "#10B981",
|
|
627
|
-
"tertiary": "rgb(
|
|
627
|
+
"tertiary": "rgb(154 41 166)",
|
|
628
628
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
629
629
|
"text": "rgb(29 26 36)",
|
|
630
630
|
"textSecondary": "rgb(73 68 83)",
|
|
@@ -655,11 +655,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
655
655
|
"primaryLight": "rgb(39 24 23)",
|
|
656
656
|
"primarySubtle": "rgb(147 0 19)",
|
|
657
657
|
"primarySubtleForeground": "rgb(255 218 215)",
|
|
658
|
-
"secondary": "rgb(
|
|
659
|
-
"secondaryForeground": "rgb(
|
|
658
|
+
"secondary": "rgb(255 181 152)",
|
|
659
|
+
"secondaryForeground": "rgb(89 28 0)",
|
|
660
660
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
661
661
|
"success": "#10B981",
|
|
662
|
-
"tertiary": "rgb(
|
|
662
|
+
"tertiary": "rgb(255 183 126)",
|
|
663
663
|
"tertiaryForeground": "rgb(77 38 0)",
|
|
664
664
|
"text": "rgb(249 220 217)",
|
|
665
665
|
"textSecondary": "rgb(223 191 188)",
|
|
@@ -690,11 +690,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
690
690
|
"primaryLight": "rgb(255 240 239)",
|
|
691
691
|
"primarySubtle": "rgb(255 218 215)",
|
|
692
692
|
"primarySubtleForeground": "rgb(147 0 19)",
|
|
693
|
-
"secondary": "rgb(
|
|
693
|
+
"secondary": "rgb(166 60 0)",
|
|
694
694
|
"secondaryForeground": "rgb(255 255 255)",
|
|
695
695
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
696
696
|
"success": "#10B981",
|
|
697
|
-
"tertiary": "rgb(
|
|
697
|
+
"tertiary": "rgb(145 76 0)",
|
|
698
698
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
699
699
|
"text": "rgb(39 24 23)",
|
|
700
700
|
"textSecondary": "rgb(88 65 63)",
|
|
@@ -725,12 +725,12 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
725
725
|
"primaryLight": "rgb(20 29 35)",
|
|
726
726
|
"primarySubtle": "rgb(0 76 110)",
|
|
727
727
|
"primarySubtleForeground": "rgb(201 230 255)",
|
|
728
|
-
"secondary": "rgb(
|
|
729
|
-
"secondaryForeground": "rgb(
|
|
728
|
+
"secondary": "rgb(164 200 255)",
|
|
729
|
+
"secondaryForeground": "rgb(0 49 94)",
|
|
730
730
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
731
731
|
"success": "#10B981",
|
|
732
|
-
"tertiary": "rgb(
|
|
733
|
-
"tertiaryForeground": "rgb(
|
|
732
|
+
"tertiary": "rgb(183 196 255)",
|
|
733
|
+
"tertiaryForeground": "rgb(0 38 131)",
|
|
734
734
|
"text": "rgb(219 227 237)",
|
|
735
735
|
"textSecondary": "rgb(188 200 211)",
|
|
736
736
|
"textTertiary": "rgb(134 146 157)",
|
|
@@ -760,11 +760,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
760
760
|
"primaryLight": "rgb(236 245 254)",
|
|
761
761
|
"primarySubtle": "rgb(201 230 255)",
|
|
762
762
|
"primarySubtleForeground": "rgb(0 76 110)",
|
|
763
|
-
"secondary": "rgb(
|
|
763
|
+
"secondary": "rgb(0 95 173)",
|
|
764
764
|
"secondaryForeground": "rgb(255 255 255)",
|
|
765
765
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
766
766
|
"success": "#10B981",
|
|
767
|
-
"tertiary": "rgb(
|
|
767
|
+
"tertiary": "rgb(26 79 226)",
|
|
768
768
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
769
769
|
"text": "rgb(20 29 35)",
|
|
770
770
|
"textSecondary": "rgb(61 72 81)",
|
|
@@ -795,11 +795,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
795
795
|
"primaryLight": "rgb(17 29 32)",
|
|
796
796
|
"primarySubtle": "rgb(0 79 88)",
|
|
797
797
|
"primarySubtleForeground": "rgb(154 240 255)",
|
|
798
|
-
"secondary": "rgb(
|
|
799
|
-
"secondaryForeground": "rgb(
|
|
798
|
+
"secondary": "rgb(103 211 255)",
|
|
799
|
+
"secondaryForeground": "rgb(0 53 70)",
|
|
800
800
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
801
801
|
"success": "#10B981",
|
|
802
|
-
"tertiary": "rgb(
|
|
802
|
+
"tertiary": "rgb(146 204 255)",
|
|
803
803
|
"tertiaryForeground": "rgb(0 51 81)",
|
|
804
804
|
"text": "rgb(215 229 232)",
|
|
805
805
|
"textSecondary": "rgb(184 202 205)",
|
|
@@ -830,11 +830,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
830
830
|
"primaryLight": "rgb(233 246 249)",
|
|
831
831
|
"primarySubtle": "rgb(154 240 255)",
|
|
832
832
|
"primarySubtleForeground": "rgb(0 79 88)",
|
|
833
|
-
"secondary": "rgb(
|
|
833
|
+
"secondary": "rgb(0 102 132)",
|
|
834
834
|
"secondaryForeground": "rgb(255 255 255)",
|
|
835
835
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
836
836
|
"success": "#10B981",
|
|
837
|
-
"tertiary": "rgb(
|
|
837
|
+
"tertiary": "rgb(0 100 151)",
|
|
838
838
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
839
839
|
"text": "rgb(17 29 32)",
|
|
840
840
|
"textSecondary": "rgb(57 73 77)",
|
|
@@ -865,11 +865,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
865
865
|
"primaryLight": "rgb(33 27 13)",
|
|
866
866
|
"primarySubtle": "rgb(90 67 0)",
|
|
867
867
|
"primarySubtleForeground": "rgb(255 223 154)",
|
|
868
|
-
"secondary": "rgb(
|
|
869
|
-
"secondaryForeground": "rgb(
|
|
868
|
+
"secondary": "rgb(232 196 0)",
|
|
869
|
+
"secondaryForeground": "rgb(58 48 0)",
|
|
870
870
|
"shadow": "rgba(0, 0, 0, 0.3)",
|
|
871
871
|
"success": "#10B981",
|
|
872
|
-
"tertiary": "rgb(
|
|
872
|
+
"tertiary": "rgb(213 203 0)",
|
|
873
873
|
"tertiaryForeground": "rgb(53 50 0)",
|
|
874
874
|
"text": "rgb(238 225 202)",
|
|
875
875
|
"textSecondary": "rgb(211 197 170)",
|
|
@@ -900,11 +900,11 @@ exports[`theme.colors snapshot for all presets (catches unintended palette shift
|
|
|
900
900
|
"primaryLight": "rgb(255 242 221)",
|
|
901
901
|
"primarySubtle": "rgb(255 223 154)",
|
|
902
902
|
"primarySubtleForeground": "rgb(90 67 0)",
|
|
903
|
-
"secondary": "rgb(
|
|
903
|
+
"secondary": "rgb(111 93 0)",
|
|
904
904
|
"secondaryForeground": "rgb(255 255 255)",
|
|
905
905
|
"shadow": "rgba(0, 0, 0, 0.1)",
|
|
906
906
|
"success": "#10B981",
|
|
907
|
-
"tertiary": "rgb(
|
|
907
|
+
"tertiary": "rgb(102 96 0)",
|
|
908
908
|
"tertiaryForeground": "rgb(255 255 255)",
|
|
909
909
|
"text": "rgb(33 27 13)",
|
|
910
910
|
"textSecondary": "rgb(79 70 49)",
|
|
@@ -13,7 +13,7 @@ import { sanitizeDegreesDouble } from './math-utils';
|
|
|
13
13
|
import { TonalPalette } from './tonal-palette';
|
|
14
14
|
import { Variant } from './variant';
|
|
15
15
|
|
|
16
|
-
export type SchemeVariant = 'vibrant' | 'expressive' | 'tonalSpot' | 'neutral';
|
|
16
|
+
export type SchemeVariant = 'vivid' | 'vibrant' | 'expressive' | 'tonalSpot' | 'neutral';
|
|
17
17
|
|
|
18
18
|
const VIBRANT_HUES = [0.0, 41.0, 61.0, 101.0, 131.0, 181.0, 251.0, 301.0, 360.0];
|
|
19
19
|
const VIBRANT_SECONDARY_ROTATIONS = [18.0, 15.0, 10.0, 12.0, 15.0, 18.0, 15.0, 12.0, 12.0];
|
|
@@ -45,6 +45,34 @@ export function schemeVibrant(source: Hct, isDark: boolean, contrastLevel: numbe
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/** Playful, intentionally detached from the seed hue (primary rotated 240°). */
|
|
48
|
+
/**
|
|
49
|
+
* Bloom's own brand-vivid scheme. Same vibrant base (max-chroma primary) but the
|
|
50
|
+
* secondary and tertiary accents keep MUCH more chroma than canonical M3 (which
|
|
51
|
+
* intentionally desaturates supporting accents). Neutrals stay low-chroma so
|
|
52
|
+
* surfaces read as clean tinted light/dark. This is what the presets use — the
|
|
53
|
+
* old hand-authored palette felt more vivid than pure M3, and this restores that
|
|
54
|
+
* across the whole primary/secondary/tertiary trio.
|
|
55
|
+
*/
|
|
56
|
+
export function schemeVivid(source: Hct, isDark: boolean, contrastLevel: number): DynamicScheme {
|
|
57
|
+
return new DynamicScheme({
|
|
58
|
+
sourceColorArgb: source.toInt(),
|
|
59
|
+
variant: Variant.VIBRANT,
|
|
60
|
+
contrastLevel,
|
|
61
|
+
isDark,
|
|
62
|
+
primaryPalette: TonalPalette.fromHueAndChroma(source.hue, 200.0),
|
|
63
|
+
secondaryPalette: TonalPalette.fromHueAndChroma(
|
|
64
|
+
DynamicScheme.getRotatedHue(source, VIBRANT_HUES, VIBRANT_SECONDARY_ROTATIONS),
|
|
65
|
+
64.0,
|
|
66
|
+
),
|
|
67
|
+
tertiaryPalette: TonalPalette.fromHueAndChroma(
|
|
68
|
+
DynamicScheme.getRotatedHue(source, VIBRANT_HUES, VIBRANT_TERTIARY_ROTATIONS),
|
|
69
|
+
72.0,
|
|
70
|
+
),
|
|
71
|
+
neutralPalette: TonalPalette.fromHueAndChroma(source.hue, 10.0),
|
|
72
|
+
neutralVariantPalette: TonalPalette.fromHueAndChroma(source.hue, 12.0),
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
48
76
|
export function schemeExpressive(source: Hct, isDark: boolean, contrastLevel: number): DynamicScheme {
|
|
49
77
|
return new DynamicScheme({
|
|
50
78
|
sourceColorArgb: source.toInt(),
|
|
@@ -96,6 +124,7 @@ export function schemeNeutral(source: Hct, isDark: boolean, contrastLevel: numbe
|
|
|
96
124
|
}
|
|
97
125
|
|
|
98
126
|
const BUILDERS: Record<SchemeVariant, (s: Hct, d: boolean, c: number) => DynamicScheme> = {
|
|
127
|
+
vivid: schemeVivid,
|
|
99
128
|
vibrant: schemeVibrant,
|
|
100
129
|
expressive: schemeExpressive,
|
|
101
130
|
tonalSpot: schemeTonalSpot,
|
|
@@ -74,17 +74,17 @@ export function hexToAppColorName(hex: string): AppColorName {
|
|
|
74
74
|
* bold `vibrant` derivation to match the prior saturated palette.
|
|
75
75
|
*/
|
|
76
76
|
export const APP_COLOR_PRESETS: Record<AppColorName, AppColorPreset> = {
|
|
77
|
-
teal: { name: 'teal', hex: '#005c67', variant: '
|
|
78
|
-
blue: { name: 'blue', hex: '#1d9bf0', variant: '
|
|
79
|
-
green: { name: 'green', hex: '#10b981', variant: '
|
|
80
|
-
amber: { name: 'amber', hex: '#f59e0b', variant: '
|
|
81
|
-
yellow: { name: 'yellow', hex: '#ffc300', variant: '
|
|
82
|
-
red: { name: 'red', hex: '#ef4444', variant: '
|
|
83
|
-
purple: { name: 'purple', hex: '#8b5cf6', variant: '
|
|
84
|
-
pink: { name: 'pink', hex: '#ec4899', variant: '
|
|
85
|
-
sky: { name: 'sky', hex: '#0ea5e9', variant: '
|
|
86
|
-
orange: { name: 'orange', hex: '#f97316', variant: '
|
|
87
|
-
mint: { name: 'mint', hex: '#14b8a6', variant: '
|
|
88
|
-
oxy: { name: 'oxy', hex: '#c46ede', variant: '
|
|
89
|
-
faircoin: { name: 'faircoin', hex: '#9ffb50', variant: '
|
|
77
|
+
teal: { name: 'teal', hex: '#005c67', variant: 'vivid' },
|
|
78
|
+
blue: { name: 'blue', hex: '#1d9bf0', variant: 'vivid' },
|
|
79
|
+
green: { name: 'green', hex: '#10b981', variant: 'vivid' },
|
|
80
|
+
amber: { name: 'amber', hex: '#f59e0b', variant: 'vivid' },
|
|
81
|
+
yellow: { name: 'yellow', hex: '#ffc300', variant: 'vivid' },
|
|
82
|
+
red: { name: 'red', hex: '#ef4444', variant: 'vivid' },
|
|
83
|
+
purple: { name: 'purple', hex: '#8b5cf6', variant: 'vivid' },
|
|
84
|
+
pink: { name: 'pink', hex: '#ec4899', variant: 'vivid' },
|
|
85
|
+
sky: { name: 'sky', hex: '#0ea5e9', variant: 'vivid' },
|
|
86
|
+
orange: { name: 'orange', hex: '#f97316', variant: 'vivid' },
|
|
87
|
+
mint: { name: 'mint', hex: '#14b8a6', variant: 'vivid' },
|
|
88
|
+
oxy: { name: 'oxy', hex: '#c46ede', variant: 'vivid' },
|
|
89
|
+
faircoin: { name: 'faircoin', hex: '#9ffb50', variant: 'vivid' },
|
|
90
90
|
};
|
|
@@ -65,8 +65,9 @@ export interface SeedScopeOptions {
|
|
|
65
65
|
seed: string;
|
|
66
66
|
mode: 'light' | 'dark';
|
|
67
67
|
/**
|
|
68
|
-
* The tonal scheme variant. Defaults to `'
|
|
69
|
-
* named Bloom preset uses, so a preset's seed reproduces that preset exactly
|
|
68
|
+
* The tonal scheme variant. Defaults to `'vivid'` — the same variant every
|
|
69
|
+
* named Bloom preset uses, so a preset's seed reproduces that preset exactly
|
|
70
|
+
* (and an artwork-extracted seed gets the same brand-vivid feel as the app).
|
|
70
71
|
*/
|
|
71
72
|
variant?: SchemeVariant;
|
|
72
73
|
/** −1 (low) … 0 (normal) … 1 (high). Defaults to 0. */
|
|
@@ -88,6 +89,7 @@ export interface SeedScopeOptions {
|
|
|
88
89
|
export function buildSeedScopeVars(options: SeedScopeOptions): Record<string, string> {
|
|
89
90
|
const roles = generateRoleColors({
|
|
90
91
|
seed: options.seed,
|
|
92
|
+
variant: options.variant ?? 'vivid',
|
|
91
93
|
isDark: options.mode === 'dark',
|
|
92
94
|
contrastLevel: options.contrastLevel ?? 0,
|
|
93
95
|
});
|