@atom63/styles 0.1.0-beta.10 → 0.1.0-beta.11
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/generated/atom63.figma-sync.json +89 -13
- package/generated/atom63.tokens.json +70 -42
- package/package.json +1 -1
- package/src/compat/a63-from-shadcn.css +6 -0
- package/src/themes/terminal.css +16 -3
- package/src/themes/terminal.resolver.json +2 -2
- package/src/tokens/chart-palette.browser.test.ts +188 -0
- package/src/tokens/contrast.browser.test.ts +46 -0
- package/src/tokens/semantics.css +88 -30
- package/src/tokens/semantics.resolver.json +49 -16
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"summary": {
|
|
6
6
|
"collections": 14,
|
|
7
7
|
"variables": 1159,
|
|
8
|
-
"aliasValues":
|
|
8
|
+
"aliasValues": 804,
|
|
9
9
|
"skipped": 412,
|
|
10
|
-
"computed":
|
|
10
|
+
"computed": 68
|
|
11
11
|
},
|
|
12
12
|
"collections": [
|
|
13
13
|
{
|
|
@@ -16762,7 +16762,7 @@
|
|
|
16762
16762
|
"alias": "--a63-action-primary"
|
|
16763
16763
|
},
|
|
16764
16764
|
"dark": {
|
|
16765
|
-
"alias": "--a63-
|
|
16765
|
+
"alias": "--a63-brand-400"
|
|
16766
16766
|
}
|
|
16767
16767
|
},
|
|
16768
16768
|
"codeSyntax": "var(--a63-chart-1)",
|
|
@@ -16777,10 +16777,20 @@
|
|
|
16777
16777
|
"type": "COLOR",
|
|
16778
16778
|
"values": {
|
|
16779
16779
|
"light": {
|
|
16780
|
-
"
|
|
16780
|
+
"value": {
|
|
16781
|
+
"r": 0.780881,
|
|
16782
|
+
"g": 0.3618,
|
|
16783
|
+
"b": 0.167442,
|
|
16784
|
+
"a": 1
|
|
16785
|
+
}
|
|
16781
16786
|
},
|
|
16782
16787
|
"dark": {
|
|
16783
|
-
"
|
|
16788
|
+
"value": {
|
|
16789
|
+
"r": 0.992936,
|
|
16790
|
+
"g": 0.551494,
|
|
16791
|
+
"b": 0.478817,
|
|
16792
|
+
"a": 1
|
|
16793
|
+
}
|
|
16784
16794
|
}
|
|
16785
16795
|
},
|
|
16786
16796
|
"codeSyntax": "var(--a63-chart-2)",
|
|
@@ -16795,10 +16805,20 @@
|
|
|
16795
16805
|
"type": "COLOR",
|
|
16796
16806
|
"values": {
|
|
16797
16807
|
"light": {
|
|
16798
|
-
"
|
|
16808
|
+
"value": {
|
|
16809
|
+
"r": 0,
|
|
16810
|
+
"g": 0.523292,
|
|
16811
|
+
"b": 0.484518,
|
|
16812
|
+
"a": 1
|
|
16813
|
+
}
|
|
16799
16814
|
},
|
|
16800
16815
|
"dark": {
|
|
16801
|
-
"
|
|
16816
|
+
"value": {
|
|
16817
|
+
"r": 0.072759,
|
|
16818
|
+
"g": 0.722045,
|
|
16819
|
+
"b": 0.599749,
|
|
16820
|
+
"a": 1
|
|
16821
|
+
}
|
|
16802
16822
|
}
|
|
16803
16823
|
},
|
|
16804
16824
|
"codeSyntax": "var(--a63-chart-3)",
|
|
@@ -16813,10 +16833,20 @@
|
|
|
16813
16833
|
"type": "COLOR",
|
|
16814
16834
|
"values": {
|
|
16815
16835
|
"light": {
|
|
16816
|
-
"
|
|
16836
|
+
"value": {
|
|
16837
|
+
"r": 0.471677,
|
|
16838
|
+
"g": 0.513338,
|
|
16839
|
+
"b": 0,
|
|
16840
|
+
"a": 1
|
|
16841
|
+
}
|
|
16817
16842
|
},
|
|
16818
16843
|
"dark": {
|
|
16819
|
-
"
|
|
16844
|
+
"value": {
|
|
16845
|
+
"r": 0.832528,
|
|
16846
|
+
"g": 0.78138,
|
|
16847
|
+
"b": 0.357068,
|
|
16848
|
+
"a": 1
|
|
16849
|
+
}
|
|
16820
16850
|
}
|
|
16821
16851
|
},
|
|
16822
16852
|
"codeSyntax": "var(--a63-chart-4)",
|
|
@@ -16831,10 +16861,20 @@
|
|
|
16831
16861
|
"type": "COLOR",
|
|
16832
16862
|
"values": {
|
|
16833
16863
|
"light": {
|
|
16834
|
-
"
|
|
16864
|
+
"value": {
|
|
16865
|
+
"r": 0.579664,
|
|
16866
|
+
"g": 0.220036,
|
|
16867
|
+
"b": 0.548836,
|
|
16868
|
+
"a": 1
|
|
16869
|
+
}
|
|
16835
16870
|
},
|
|
16836
16871
|
"dark": {
|
|
16837
|
-
"
|
|
16872
|
+
"value": {
|
|
16873
|
+
"r": 0.747757,
|
|
16874
|
+
"g": 0.468924,
|
|
16875
|
+
"b": 0.827728,
|
|
16876
|
+
"a": 1
|
|
16877
|
+
}
|
|
16838
16878
|
}
|
|
16839
16879
|
},
|
|
16840
16880
|
"codeSyntax": "var(--a63-chart-5)",
|
|
@@ -22654,6 +22694,42 @@
|
|
|
22654
22694
|
],
|
|
22655
22695
|
"expression": "color-mix( in oklab, var(--surface-dark-6) calc(100% - var(--a63-surface-tint)), var(--a63-brand-600) var(--a63-surface-tint) )"
|
|
22656
22696
|
},
|
|
22697
|
+
{
|
|
22698
|
+
"token": "--a63-chart-2",
|
|
22699
|
+
"collection": "Mode",
|
|
22700
|
+
"variesOn": [
|
|
22701
|
+
"brand",
|
|
22702
|
+
"mode"
|
|
22703
|
+
],
|
|
22704
|
+
"expression": "oklch(from var(--a63-chart-1) 0.76 0.14 calc(h + 144))"
|
|
22705
|
+
},
|
|
22706
|
+
{
|
|
22707
|
+
"token": "--a63-chart-3",
|
|
22708
|
+
"collection": "Mode",
|
|
22709
|
+
"variesOn": [
|
|
22710
|
+
"brand",
|
|
22711
|
+
"mode"
|
|
22712
|
+
],
|
|
22713
|
+
"expression": "oklch(from var(--a63-chart-1) 0.7 0.13 calc(h + 288))"
|
|
22714
|
+
},
|
|
22715
|
+
{
|
|
22716
|
+
"token": "--a63-chart-4",
|
|
22717
|
+
"collection": "Mode",
|
|
22718
|
+
"variesOn": [
|
|
22719
|
+
"brand",
|
|
22720
|
+
"mode"
|
|
22721
|
+
],
|
|
22722
|
+
"expression": "oklch(from var(--a63-chart-1) 0.82 0.13 calc(h + 216))"
|
|
22723
|
+
},
|
|
22724
|
+
{
|
|
22725
|
+
"token": "--a63-chart-5",
|
|
22726
|
+
"collection": "Mode",
|
|
22727
|
+
"variesOn": [
|
|
22728
|
+
"brand",
|
|
22729
|
+
"mode"
|
|
22730
|
+
],
|
|
22731
|
+
"expression": "oklch(from var(--a63-chart-1) 0.68 0.15 calc(h + 72))"
|
|
22732
|
+
},
|
|
22657
22733
|
{
|
|
22658
22734
|
"token": "--a63-choice-box-shadow",
|
|
22659
22735
|
"collection": "Theme",
|
|
@@ -22914,7 +22990,7 @@
|
|
|
22914
22990
|
"surface",
|
|
22915
22991
|
"theme"
|
|
22916
22992
|
],
|
|
22917
|
-
"expression": "var(--surface-dark-11)"
|
|
22993
|
+
"expression": "color-mix( in oklab, var(--surface-dark-11) calc(100% - var(--a63-surface-tint) * 0.3), var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3) )"
|
|
22918
22994
|
},
|
|
22919
22995
|
{
|
|
22920
22996
|
"token": "--a63-text-tertiary",
|
|
@@ -22925,7 +23001,7 @@
|
|
|
22925
23001
|
"surface",
|
|
22926
23002
|
"theme"
|
|
22927
23003
|
],
|
|
22928
|
-
"expression": "color-mix(in oklab, var(--surface-dark-11) 30%, var(--surface-dark-10))"
|
|
23004
|
+
"expression": "color-mix( in oklab, color-mix(in oklab, var(--surface-dark-11) 30%, var(--surface-dark-10)) calc(100% - var(--a63-surface-tint) * 0.3), var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3) )"
|
|
22929
23005
|
},
|
|
22930
23006
|
{
|
|
22931
23007
|
"token": "--a63-track-shadow",
|
|
@@ -6270,7 +6270,7 @@
|
|
|
6270
6270
|
"name": "a63-chart-1",
|
|
6271
6271
|
"cssVar": "--a63-chart-1",
|
|
6272
6272
|
"type": "color",
|
|
6273
|
-
"value": "var(--a63-
|
|
6273
|
+
"value": "var(--a63-brand-400)",
|
|
6274
6274
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6275
6275
|
"layer": "semantic",
|
|
6276
6276
|
"figma": {
|
|
@@ -6279,7 +6279,7 @@
|
|
|
6279
6279
|
"mode": "Dark"
|
|
6280
6280
|
},
|
|
6281
6281
|
"lifecycle": "preview",
|
|
6282
|
-
"aliases": ["--a63-
|
|
6282
|
+
"aliases": ["--a63-brand-400"],
|
|
6283
6283
|
"scope": ":is(.dark, [data-a63-mode='dark'])"
|
|
6284
6284
|
},
|
|
6285
6285
|
{
|
|
@@ -6302,7 +6302,7 @@
|
|
|
6302
6302
|
"name": "a63-chart-1",
|
|
6303
6303
|
"cssVar": "--a63-chart-1",
|
|
6304
6304
|
"type": "color",
|
|
6305
|
-
"value": "var(--a63-action-primary)",
|
|
6305
|
+
"value": "var(--a63-if-light, var(--a63-action-primary)) var(--a63-if-dark, var(--a63-brand-400))",
|
|
6306
6306
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6307
6307
|
"layer": "semantic",
|
|
6308
6308
|
"figma": {
|
|
@@ -6310,14 +6310,14 @@
|
|
|
6310
6310
|
"path": "chart/1"
|
|
6311
6311
|
},
|
|
6312
6312
|
"lifecycle": "preview",
|
|
6313
|
-
"aliases": ["--a63-action-primary"],
|
|
6313
|
+
"aliases": ["--a63-action-primary", "--a63-brand-400", "--a63-if-dark", "--a63-if-light"],
|
|
6314
6314
|
"scope": "[data-a63-brand], [data-a63-surface]"
|
|
6315
6315
|
},
|
|
6316
6316
|
{
|
|
6317
6317
|
"name": "a63-chart-2",
|
|
6318
6318
|
"cssVar": "--a63-chart-2",
|
|
6319
6319
|
"type": "color",
|
|
6320
|
-
"value": "var(--
|
|
6320
|
+
"value": "oklch(from var(--a63-chart-1) 0.76 0.14 calc(h + 144))",
|
|
6321
6321
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6322
6322
|
"layer": "semantic",
|
|
6323
6323
|
"figma": {
|
|
@@ -6326,14 +6326,14 @@
|
|
|
6326
6326
|
"mode": "Dark"
|
|
6327
6327
|
},
|
|
6328
6328
|
"lifecycle": "preview",
|
|
6329
|
-
"aliases": ["--
|
|
6329
|
+
"aliases": ["--a63-chart-1"],
|
|
6330
6330
|
"scope": ":is(.dark, [data-a63-mode='dark'])"
|
|
6331
6331
|
},
|
|
6332
6332
|
{
|
|
6333
6333
|
"name": "a63-chart-2",
|
|
6334
6334
|
"cssVar": "--a63-chart-2",
|
|
6335
6335
|
"type": "color",
|
|
6336
|
-
"value": "var(--
|
|
6336
|
+
"value": "oklch(from var(--a63-chart-1) 0.6 0.15 calc(h + 144))",
|
|
6337
6337
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6338
6338
|
"layer": "semantic",
|
|
6339
6339
|
"figma": {
|
|
@@ -6342,14 +6342,14 @@
|
|
|
6342
6342
|
"mode": "Light"
|
|
6343
6343
|
},
|
|
6344
6344
|
"lifecycle": "preview",
|
|
6345
|
-
"aliases": ["--
|
|
6345
|
+
"aliases": ["--a63-chart-1"],
|
|
6346
6346
|
"scope": ":root, .light, [data-a63-mode='light']"
|
|
6347
6347
|
},
|
|
6348
6348
|
{
|
|
6349
6349
|
"name": "a63-chart-2",
|
|
6350
6350
|
"cssVar": "--a63-chart-2",
|
|
6351
6351
|
"type": "color",
|
|
6352
|
-
"value": "var(--a63-if-light, var(--
|
|
6352
|
+
"value": "var(--a63-if-light, oklch(from var(--a63-chart-1) 0.6 0.15 calc(h + 144))) var(--a63-if-dark, oklch(from var(--a63-chart-1) 0.76 0.14 calc(h + 144)))",
|
|
6353
6353
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6354
6354
|
"layer": "semantic",
|
|
6355
6355
|
"figma": {
|
|
@@ -6357,14 +6357,14 @@
|
|
|
6357
6357
|
"path": "chart/2"
|
|
6358
6358
|
},
|
|
6359
6359
|
"lifecycle": "preview",
|
|
6360
|
-
"aliases": ["--a63-
|
|
6360
|
+
"aliases": ["--a63-chart-1", "--a63-if-dark", "--a63-if-light"],
|
|
6361
6361
|
"scope": "[data-a63-brand], [data-a63-surface]"
|
|
6362
6362
|
},
|
|
6363
6363
|
{
|
|
6364
6364
|
"name": "a63-chart-3",
|
|
6365
6365
|
"cssVar": "--a63-chart-3",
|
|
6366
6366
|
"type": "color",
|
|
6367
|
-
"value": "var(--
|
|
6367
|
+
"value": "oklch(from var(--a63-chart-1) 0.7 0.13 calc(h + 288))",
|
|
6368
6368
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6369
6369
|
"layer": "semantic",
|
|
6370
6370
|
"figma": {
|
|
@@ -6373,14 +6373,14 @@
|
|
|
6373
6373
|
"mode": "Dark"
|
|
6374
6374
|
},
|
|
6375
6375
|
"lifecycle": "preview",
|
|
6376
|
-
"aliases": ["--
|
|
6376
|
+
"aliases": ["--a63-chart-1"],
|
|
6377
6377
|
"scope": ":is(.dark, [data-a63-mode='dark'])"
|
|
6378
6378
|
},
|
|
6379
6379
|
{
|
|
6380
6380
|
"name": "a63-chart-3",
|
|
6381
6381
|
"cssVar": "--a63-chart-3",
|
|
6382
6382
|
"type": "color",
|
|
6383
|
-
"value": "var(--
|
|
6383
|
+
"value": "oklch(from var(--a63-chart-1) 0.54 0.13 calc(h + 288))",
|
|
6384
6384
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6385
6385
|
"layer": "semantic",
|
|
6386
6386
|
"figma": {
|
|
@@ -6389,14 +6389,14 @@
|
|
|
6389
6389
|
"mode": "Light"
|
|
6390
6390
|
},
|
|
6391
6391
|
"lifecycle": "preview",
|
|
6392
|
-
"aliases": ["--
|
|
6392
|
+
"aliases": ["--a63-chart-1"],
|
|
6393
6393
|
"scope": ":root, .light, [data-a63-mode='light']"
|
|
6394
6394
|
},
|
|
6395
6395
|
{
|
|
6396
6396
|
"name": "a63-chart-3",
|
|
6397
6397
|
"cssVar": "--a63-chart-3",
|
|
6398
6398
|
"type": "color",
|
|
6399
|
-
"value": "var(--a63-if-light, var(--
|
|
6399
|
+
"value": "var(--a63-if-light, oklch(from var(--a63-chart-1) 0.54 0.13 calc(h + 288))) var(--a63-if-dark, oklch(from var(--a63-chart-1) 0.7 0.13 calc(h + 288)))",
|
|
6400
6400
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6401
6401
|
"layer": "semantic",
|
|
6402
6402
|
"figma": {
|
|
@@ -6404,14 +6404,14 @@
|
|
|
6404
6404
|
"path": "chart/3"
|
|
6405
6405
|
},
|
|
6406
6406
|
"lifecycle": "preview",
|
|
6407
|
-
"aliases": ["--a63-
|
|
6407
|
+
"aliases": ["--a63-chart-1", "--a63-if-dark", "--a63-if-light"],
|
|
6408
6408
|
"scope": "[data-a63-brand], [data-a63-surface]"
|
|
6409
6409
|
},
|
|
6410
6410
|
{
|
|
6411
6411
|
"name": "a63-chart-4",
|
|
6412
6412
|
"cssVar": "--a63-chart-4",
|
|
6413
6413
|
"type": "color",
|
|
6414
|
-
"value": "var(--
|
|
6414
|
+
"value": "oklch(from var(--a63-chart-1) 0.82 0.13 calc(h + 216))",
|
|
6415
6415
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6416
6416
|
"layer": "semantic",
|
|
6417
6417
|
"figma": {
|
|
@@ -6420,14 +6420,14 @@
|
|
|
6420
6420
|
"mode": "Dark"
|
|
6421
6421
|
},
|
|
6422
6422
|
"lifecycle": "preview",
|
|
6423
|
-
"aliases": ["--
|
|
6423
|
+
"aliases": ["--a63-chart-1"],
|
|
6424
6424
|
"scope": ":is(.dark, [data-a63-mode='dark'])"
|
|
6425
6425
|
},
|
|
6426
6426
|
{
|
|
6427
6427
|
"name": "a63-chart-4",
|
|
6428
6428
|
"cssVar": "--a63-chart-4",
|
|
6429
6429
|
"type": "color",
|
|
6430
|
-
"value": "var(--
|
|
6430
|
+
"value": "oklch(from var(--a63-chart-1) 0.58 0.14 calc(h + 216))",
|
|
6431
6431
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6432
6432
|
"layer": "semantic",
|
|
6433
6433
|
"figma": {
|
|
@@ -6436,14 +6436,14 @@
|
|
|
6436
6436
|
"mode": "Light"
|
|
6437
6437
|
},
|
|
6438
6438
|
"lifecycle": "preview",
|
|
6439
|
-
"aliases": ["--
|
|
6439
|
+
"aliases": ["--a63-chart-1"],
|
|
6440
6440
|
"scope": ":root, .light, [data-a63-mode='light']"
|
|
6441
6441
|
},
|
|
6442
6442
|
{
|
|
6443
6443
|
"name": "a63-chart-4",
|
|
6444
6444
|
"cssVar": "--a63-chart-4",
|
|
6445
6445
|
"type": "color",
|
|
6446
|
-
"value": "var(--a63-if-light, var(--
|
|
6446
|
+
"value": "var(--a63-if-light, oklch(from var(--a63-chart-1) 0.58 0.14 calc(h + 216))) var(--a63-if-dark, oklch(from var(--a63-chart-1) 0.82 0.13 calc(h + 216)))",
|
|
6447
6447
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6448
6448
|
"layer": "semantic",
|
|
6449
6449
|
"figma": {
|
|
@@ -6451,14 +6451,14 @@
|
|
|
6451
6451
|
"path": "chart/4"
|
|
6452
6452
|
},
|
|
6453
6453
|
"lifecycle": "preview",
|
|
6454
|
-
"aliases": ["--a63-
|
|
6454
|
+
"aliases": ["--a63-chart-1", "--a63-if-dark", "--a63-if-light"],
|
|
6455
6455
|
"scope": "[data-a63-brand], [data-a63-surface]"
|
|
6456
6456
|
},
|
|
6457
6457
|
{
|
|
6458
6458
|
"name": "a63-chart-5",
|
|
6459
6459
|
"cssVar": "--a63-chart-5",
|
|
6460
6460
|
"type": "color",
|
|
6461
|
-
"value": "var(--
|
|
6461
|
+
"value": "oklch(from var(--a63-chart-1) 0.68 0.15 calc(h + 72))",
|
|
6462
6462
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6463
6463
|
"layer": "semantic",
|
|
6464
6464
|
"figma": {
|
|
@@ -6467,14 +6467,14 @@
|
|
|
6467
6467
|
"mode": "Dark"
|
|
6468
6468
|
},
|
|
6469
6469
|
"lifecycle": "preview",
|
|
6470
|
-
"aliases": ["--
|
|
6470
|
+
"aliases": ["--a63-chart-1"],
|
|
6471
6471
|
"scope": ":is(.dark, [data-a63-mode='dark'])"
|
|
6472
6472
|
},
|
|
6473
6473
|
{
|
|
6474
6474
|
"name": "a63-chart-5",
|
|
6475
6475
|
"cssVar": "--a63-chart-5",
|
|
6476
6476
|
"type": "color",
|
|
6477
|
-
"value": "var(--
|
|
6477
|
+
"value": "oklch(from var(--a63-chart-1) 0.5 0.16 calc(h + 72))",
|
|
6478
6478
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6479
6479
|
"layer": "semantic",
|
|
6480
6480
|
"figma": {
|
|
@@ -6483,14 +6483,14 @@
|
|
|
6483
6483
|
"mode": "Light"
|
|
6484
6484
|
},
|
|
6485
6485
|
"lifecycle": "preview",
|
|
6486
|
-
"aliases": ["--
|
|
6486
|
+
"aliases": ["--a63-chart-1"],
|
|
6487
6487
|
"scope": ":root, .light, [data-a63-mode='light']"
|
|
6488
6488
|
},
|
|
6489
6489
|
{
|
|
6490
6490
|
"name": "a63-chart-5",
|
|
6491
6491
|
"cssVar": "--a63-chart-5",
|
|
6492
6492
|
"type": "color",
|
|
6493
|
-
"value": "var(--a63-if-light, var(--
|
|
6493
|
+
"value": "var(--a63-if-light, oklch(from var(--a63-chart-1) 0.5 0.16 calc(h + 72))) var(--a63-if-dark, oklch(from var(--a63-chart-1) 0.68 0.15 calc(h + 72)))",
|
|
6494
6494
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
6495
6495
|
"layer": "semantic",
|
|
6496
6496
|
"figma": {
|
|
@@ -6498,7 +6498,7 @@
|
|
|
6498
6498
|
"path": "chart/5"
|
|
6499
6499
|
},
|
|
6500
6500
|
"lifecycle": "preview",
|
|
6501
|
-
"aliases": ["--a63-
|
|
6501
|
+
"aliases": ["--a63-chart-1", "--a63-if-dark", "--a63-if-light"],
|
|
6502
6502
|
"scope": "[data-a63-brand], [data-a63-surface]"
|
|
6503
6503
|
},
|
|
6504
6504
|
{
|
|
@@ -14769,7 +14769,7 @@
|
|
|
14769
14769
|
"name": "a63-text-secondary",
|
|
14770
14770
|
"cssVar": "--a63-text-secondary",
|
|
14771
14771
|
"type": "color",
|
|
14772
|
-
"value": "var(--surface-dark-11)",
|
|
14772
|
+
"value": "color-mix( in oklab, var(--surface-dark-11) calc(100% - var(--a63-surface-tint) * 0.3), var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3) )",
|
|
14773
14773
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
14774
14774
|
"layer": "semantic",
|
|
14775
14775
|
"figma": {
|
|
@@ -14778,14 +14778,14 @@
|
|
|
14778
14778
|
"mode": "Dark"
|
|
14779
14779
|
},
|
|
14780
14780
|
"lifecycle": "preview",
|
|
14781
|
-
"aliases": ["--surface-dark-11"],
|
|
14781
|
+
"aliases": ["--a63-brand-100", "--a63-surface-tint", "--surface-dark-11"],
|
|
14782
14782
|
"scope": ":is(.dark, [data-a63-mode='dark'])"
|
|
14783
14783
|
},
|
|
14784
14784
|
{
|
|
14785
14785
|
"name": "a63-text-secondary",
|
|
14786
14786
|
"cssVar": "--a63-text-secondary",
|
|
14787
14787
|
"type": "color",
|
|
14788
|
-
"value": "var(--surface-light-11)",
|
|
14788
|
+
"value": "color-mix( in oklab, var(--surface-light-11) calc(100% - var(--a63-surface-tint) * 0.3), var(--a63-brand-800) calc(var(--a63-surface-tint) * 0.3) )",
|
|
14789
14789
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
14790
14790
|
"layer": "semantic",
|
|
14791
14791
|
"figma": {
|
|
@@ -14794,14 +14794,14 @@
|
|
|
14794
14794
|
"mode": "Light"
|
|
14795
14795
|
},
|
|
14796
14796
|
"lifecycle": "preview",
|
|
14797
|
-
"aliases": ["--surface-light-11"],
|
|
14797
|
+
"aliases": ["--a63-brand-800", "--a63-surface-tint", "--surface-light-11"],
|
|
14798
14798
|
"scope": ":root, .light, [data-a63-mode='light']"
|
|
14799
14799
|
},
|
|
14800
14800
|
{
|
|
14801
14801
|
"name": "a63-text-secondary",
|
|
14802
14802
|
"cssVar": "--a63-text-secondary",
|
|
14803
14803
|
"type": "color",
|
|
14804
|
-
"value": "var(--a63-if-light, var(--surface-light-11)) var(--a63-if-dark, var(--surface-dark-11))",
|
|
14804
|
+
"value": "var( --a63-if-light, color-mix( in oklab, var(--surface-light-11) calc(100% - var(--a63-surface-tint) * 0.3), var(--a63-brand-800) calc(var(--a63-surface-tint) * 0.3) ) ) var( --a63-if-dark, color-mix( in oklab, var(--surface-dark-11) calc(100% - var(--a63-surface-tint) * 0.3), var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3) ) )",
|
|
14805
14805
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
14806
14806
|
"layer": "semantic",
|
|
14807
14807
|
"figma": {
|
|
@@ -14809,7 +14809,15 @@
|
|
|
14809
14809
|
"path": "text/secondary"
|
|
14810
14810
|
},
|
|
14811
14811
|
"lifecycle": "preview",
|
|
14812
|
-
"aliases": [
|
|
14812
|
+
"aliases": [
|
|
14813
|
+
"--a63-brand-100",
|
|
14814
|
+
"--a63-brand-800",
|
|
14815
|
+
"--a63-if-dark",
|
|
14816
|
+
"--a63-if-light",
|
|
14817
|
+
"--a63-surface-tint",
|
|
14818
|
+
"--surface-dark-11",
|
|
14819
|
+
"--surface-light-11"
|
|
14820
|
+
],
|
|
14813
14821
|
"scope": "[data-a63-brand], [data-a63-surface]"
|
|
14814
14822
|
},
|
|
14815
14823
|
{
|
|
@@ -14832,7 +14840,7 @@
|
|
|
14832
14840
|
"name": "a63-text-tertiary",
|
|
14833
14841
|
"cssVar": "--a63-text-tertiary",
|
|
14834
14842
|
"type": "color",
|
|
14835
|
-
"value": "color-mix(in oklab, var(--a63-text-accent) 40%, var(--surface-dark-10))",
|
|
14843
|
+
"value": "color-mix( in oklab, color-mix(in oklab, var(--a63-text-accent) 40%, var(--surface-dark-10)) calc(100% - var(--a63-surface-tint) * 0.3), var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3) )",
|
|
14836
14844
|
"sourceFile": "packages/styles/src/themes/terminal.css",
|
|
14837
14845
|
"layer": "theme",
|
|
14838
14846
|
"figma": {
|
|
@@ -14841,14 +14849,19 @@
|
|
|
14841
14849
|
"mode": "Dark"
|
|
14842
14850
|
},
|
|
14843
14851
|
"lifecycle": "preview",
|
|
14844
|
-
"aliases": [
|
|
14852
|
+
"aliases": [
|
|
14853
|
+
"--a63-brand-100",
|
|
14854
|
+
"--a63-surface-tint",
|
|
14855
|
+
"--a63-text-accent",
|
|
14856
|
+
"--surface-dark-10"
|
|
14857
|
+
],
|
|
14845
14858
|
"scope": "[data-a63-theme='terminal']:is(.dark, [data-a63-mode='dark']), [data-a63-theme='terminal'] :is(.dark, [data-a63-mode='dark'])"
|
|
14846
14859
|
},
|
|
14847
14860
|
{
|
|
14848
14861
|
"name": "a63-text-tertiary",
|
|
14849
14862
|
"cssVar": "--a63-text-tertiary",
|
|
14850
14863
|
"type": "color",
|
|
14851
|
-
"value": "var( --a63-if-light, color-mix(in oklch, var(--a63-action-primary) 80%, black) ) var(--a63-if-dark, color-mix(in oklab, var(--a63-text-accent) 40%, var(--surface-dark-10)))",
|
|
14864
|
+
"value": "var( --a63-if-light, color-mix(in oklch, var(--a63-action-primary) 80%, black) ) var( --a63-if-dark, color-mix( in oklab, color-mix(in oklab, var(--a63-text-accent) 40%, var(--surface-dark-10)) calc(100% - var(--a63-surface-tint) * 0.3), var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3) ) )",
|
|
14852
14865
|
"sourceFile": "packages/styles/src/themes/terminal.css",
|
|
14853
14866
|
"layer": "theme",
|
|
14854
14867
|
"figma": {
|
|
@@ -14859,8 +14872,10 @@
|
|
|
14859
14872
|
"lifecycle": "preview",
|
|
14860
14873
|
"aliases": [
|
|
14861
14874
|
"--a63-action-primary",
|
|
14875
|
+
"--a63-brand-100",
|
|
14862
14876
|
"--a63-if-dark",
|
|
14863
14877
|
"--a63-if-light",
|
|
14878
|
+
"--a63-surface-tint",
|
|
14864
14879
|
"--a63-text-accent",
|
|
14865
14880
|
"--surface-dark-10"
|
|
14866
14881
|
],
|
|
@@ -14870,7 +14885,7 @@
|
|
|
14870
14885
|
"name": "a63-text-tertiary",
|
|
14871
14886
|
"cssVar": "--a63-text-tertiary",
|
|
14872
14887
|
"type": "color",
|
|
14873
|
-
"value": "color-mix(in oklab, var(--surface-dark-11) 30%, var(--surface-dark-10))",
|
|
14888
|
+
"value": "color-mix( in oklab, color-mix(in oklab, var(--surface-dark-11) 30%, var(--surface-dark-10)) calc(100% - var(--a63-surface-tint) * 0.3), var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3) )",
|
|
14874
14889
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
14875
14890
|
"layer": "semantic",
|
|
14876
14891
|
"figma": {
|
|
@@ -14879,14 +14894,19 @@
|
|
|
14879
14894
|
"mode": "Dark"
|
|
14880
14895
|
},
|
|
14881
14896
|
"lifecycle": "preview",
|
|
14882
|
-
"aliases": [
|
|
14897
|
+
"aliases": [
|
|
14898
|
+
"--a63-brand-100",
|
|
14899
|
+
"--a63-surface-tint",
|
|
14900
|
+
"--surface-dark-10",
|
|
14901
|
+
"--surface-dark-11"
|
|
14902
|
+
],
|
|
14883
14903
|
"scope": ":is(.dark, [data-a63-mode='dark'])"
|
|
14884
14904
|
},
|
|
14885
14905
|
{
|
|
14886
14906
|
"name": "a63-text-tertiary",
|
|
14887
14907
|
"cssVar": "--a63-text-tertiary",
|
|
14888
14908
|
"type": "color",
|
|
14889
|
-
"value": "color-mix(in oklab, var(--surface-light-11) 70%, var(--surface-light-10))",
|
|
14909
|
+
"value": "color-mix( in oklab, color-mix(in oklab, var(--surface-light-11) 70%, var(--surface-light-10)) calc(100% - var(--a63-surface-tint) * 0.3), var(--a63-brand-800) calc(var(--a63-surface-tint) * 0.3) )",
|
|
14890
14910
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
14891
14911
|
"layer": "semantic",
|
|
14892
14912
|
"figma": {
|
|
@@ -14895,14 +14915,19 @@
|
|
|
14895
14915
|
"mode": "Light"
|
|
14896
14916
|
},
|
|
14897
14917
|
"lifecycle": "preview",
|
|
14898
|
-
"aliases": [
|
|
14918
|
+
"aliases": [
|
|
14919
|
+
"--a63-brand-800",
|
|
14920
|
+
"--a63-surface-tint",
|
|
14921
|
+
"--surface-light-10",
|
|
14922
|
+
"--surface-light-11"
|
|
14923
|
+
],
|
|
14899
14924
|
"scope": ":root, .light, [data-a63-mode='light']"
|
|
14900
14925
|
},
|
|
14901
14926
|
{
|
|
14902
14927
|
"name": "a63-text-tertiary",
|
|
14903
14928
|
"cssVar": "--a63-text-tertiary",
|
|
14904
14929
|
"type": "color",
|
|
14905
|
-
"value": "var( --a63-if-light, color-mix(in oklab, var(--surface-light-11) 70%, var(--surface-light-10)) ) var(--a63-if-dark, color-mix(in oklab, var(--surface-dark-11) 30%, var(--surface-dark-10)))",
|
|
14930
|
+
"value": "var( --a63-if-light, color-mix( in oklab, color-mix(in oklab, var(--surface-light-11) 70%, var(--surface-light-10)) calc(100% - var(--a63-surface-tint) * 0.3), var(--a63-brand-800) calc(var(--a63-surface-tint) * 0.3) ) ) var( --a63-if-dark, color-mix( in oklab, color-mix(in oklab, var(--surface-dark-11) 30%, var(--surface-dark-10)) calc(100% - var(--a63-surface-tint) * 0.3), var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3) ) )",
|
|
14906
14931
|
"sourceFile": "packages/styles/src/tokens/semantics.css",
|
|
14907
14932
|
"layer": "semantic",
|
|
14908
14933
|
"figma": {
|
|
@@ -14911,8 +14936,11 @@
|
|
|
14911
14936
|
},
|
|
14912
14937
|
"lifecycle": "preview",
|
|
14913
14938
|
"aliases": [
|
|
14939
|
+
"--a63-brand-100",
|
|
14940
|
+
"--a63-brand-800",
|
|
14914
14941
|
"--a63-if-dark",
|
|
14915
14942
|
"--a63-if-light",
|
|
14943
|
+
"--a63-surface-tint",
|
|
14916
14944
|
"--surface-dark-10",
|
|
14917
14945
|
"--surface-dark-11",
|
|
14918
14946
|
"--surface-light-10",
|
package/package.json
CHANGED
|
@@ -47,6 +47,12 @@
|
|
|
47
47
|
--a63-status-danger-foreground: var(--destructive-foreground, white);
|
|
48
48
|
--a63-text-danger: var(--destructive);
|
|
49
49
|
--a63-border-danger: var(--destructive);
|
|
50
|
+
/* Chart series (the Chart recipe) from shadcn's chart palette. */
|
|
51
|
+
--a63-chart-1: var(--chart-1);
|
|
52
|
+
--a63-chart-2: var(--chart-2);
|
|
53
|
+
--a63-chart-3: var(--chart-3);
|
|
54
|
+
--a63-chart-4: var(--chart-4);
|
|
55
|
+
--a63-chart-5: var(--chart-5);
|
|
50
56
|
|
|
51
57
|
--a63-scrim: color-mix(in oklch, black 40%, transparent);
|
|
52
58
|
/* Shadow, media and on-media colors hold in every theme; same values as semantics.css. */
|
package/src/themes/terminal.css
CHANGED
|
@@ -154,8 +154,13 @@
|
|
|
154
154
|
--a63-text-primary: color-mix(in oklch, var(--a63-action-primary) 62%, white);
|
|
155
155
|
/* Text mixes read the brand-as-text token; the primary fill is too dark here. */
|
|
156
156
|
--a63-text-secondary: color-mix(in oklab, var(--a63-text-accent) 48%, var(--surface-dark-11));
|
|
157
|
-
/* Placeholders and meta: a dimmer phosphor than secondary, still AA 4.5:1. */
|
|
158
|
-
--a63-text-tertiary: color-mix(
|
|
157
|
+
/* Placeholders and meta: a dimmer phosphor than secondary, still AA 4.5:1. It lightens toward brand 100 with the surface tint, as the muted surface does. */
|
|
158
|
+
--a63-text-tertiary: color-mix(
|
|
159
|
+
in oklab,
|
|
160
|
+
color-mix(in oklab, var(--a63-text-accent) 40%, var(--surface-dark-10))
|
|
161
|
+
calc(100% - var(--a63-surface-tint) * 0.3),
|
|
162
|
+
var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3)
|
|
163
|
+
);
|
|
159
164
|
--a63-border-control: color-mix(in oklch, var(--a63-action-primary) 42%, transparent);
|
|
160
165
|
--a63-border-input: color-mix(in oklch, var(--a63-text-accent) 60%, transparent);
|
|
161
166
|
--a63-border-subtle: color-mix(in oklch, var(--a63-action-primary) 22%, transparent);
|
|
@@ -198,7 +203,15 @@
|
|
|
198
203
|
--a63-if-light,
|
|
199
204
|
color-mix(in oklch, var(--a63-action-primary) 80%, black)
|
|
200
205
|
)
|
|
201
|
-
var(
|
|
206
|
+
var(
|
|
207
|
+
--a63-if-dark,
|
|
208
|
+
color-mix(
|
|
209
|
+
in oklab,
|
|
210
|
+
color-mix(in oklab, var(--a63-text-accent) 40%, var(--surface-dark-10))
|
|
211
|
+
calc(100% - var(--a63-surface-tint) * 0.3),
|
|
212
|
+
var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3)
|
|
213
|
+
)
|
|
214
|
+
);
|
|
202
215
|
--a63-border-control: var(
|
|
203
216
|
--a63-if-light,
|
|
204
217
|
color-mix(
|
|
@@ -418,9 +418,9 @@
|
|
|
418
418
|
"$type": "color",
|
|
419
419
|
"$value": "{a63.text.accent}",
|
|
420
420
|
"$extensions": {
|
|
421
|
-
"io.atom63.derive": "color-mix(in oklab, {a63.text.accent} 40%, {surface.dark.10})"
|
|
421
|
+
"io.atom63.derive": "color-mix( in oklab, color-mix(in oklab, {a63.text.accent} 40%, {surface.dark.10}) calc(100% - {a63.surface.tint} * 0.3), {a63.brand.100} calc({a63.surface.tint} * 0.3) )"
|
|
422
422
|
},
|
|
423
|
-
"$description": "Placeholders and meta: a dimmer phosphor than secondary, still AA 4.5:1."
|
|
423
|
+
"$description": "Placeholders and meta: a dimmer phosphor than secondary, still AA 4.5:1. It lightens toward brand 100 with the surface tint, as the muted surface does."
|
|
424
424
|
}
|
|
425
425
|
},
|
|
426
426
|
"border": {
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { afterEach, describe, expect, it } from 'vitest'
|
|
2
|
+
import { root } from '../test/apply-styles'
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
* The chart series colours (--a63-chart-1..5) must stay apart from each other
|
|
6
|
+
* and from the brand for every brand, theme and mode, and each series must
|
|
7
|
+
* reach WCAG 1.4.11's 3:1 for graphics against the surfaces a chart sits on.
|
|
8
|
+
* Series 2 to 5 turn the hue of series 1 (the brand), so a wallpaper brand
|
|
9
|
+
* (`auto`) is checked too, with a few ramps written the way the
|
|
10
|
+
* personalization controller writes them.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const themes = ['modern', 'aqua', 'retro', 'terminal'] as const
|
|
14
|
+
const modes = ['light', 'dark'] as const
|
|
15
|
+
const series = [1, 2, 3, 4, 5].map(index => `--a63-chart-${index}`)
|
|
16
|
+
const surfaces = ['--a63-surface-page', '--a63-surface-panel'] as const
|
|
17
|
+
|
|
18
|
+
/** WCAG 1.4.11: graphics that carry meaning reach 3:1 against what is next to them. */
|
|
19
|
+
const GRAPHICS_CONTRAST = 3
|
|
20
|
+
/** Smallest OKLab distance between two series, and between a series and the brand. */
|
|
21
|
+
const MIN_DISTANCE = 0.1
|
|
22
|
+
|
|
23
|
+
/** Wallpaper ramps the controller could write: a teal, a gold and a magenta. */
|
|
24
|
+
const autoRamps: Record<string, Record<number, string>> = {
|
|
25
|
+
'auto (teal)': { 400: 'oklch(0.78 0.12 190)', 600: 'oklch(0.55 0.1 195)' },
|
|
26
|
+
'auto (gold)': { 400: 'oklch(0.84 0.14 85)', 600: 'oklch(0.56 0.12 75)' },
|
|
27
|
+
'auto (magenta)': { 400: 'oklch(0.74 0.2 330)', 600: 'oklch(0.55 0.22 335)' },
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const brands: { label: string; brand: string; ramp?: Record<number, string> }[] = [
|
|
31
|
+
...['b1', 'b2', 'b3', 'b4', 'b5', 'b6'].map(brand => ({ label: brand, brand })),
|
|
32
|
+
...Object.entries(autoRamps).map(([label, ramp]) => ({ label, brand: 'auto', ramp })),
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
afterEach(() => {
|
|
36
|
+
const element = root()
|
|
37
|
+
for (const attribute of ['data-a63-theme', 'data-a63-mode', 'data-a63-brand']) {
|
|
38
|
+
element.removeAttribute(attribute)
|
|
39
|
+
}
|
|
40
|
+
element.removeAttribute('style')
|
|
41
|
+
element.classList.remove('dark', 'light')
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
interface Rgb {
|
|
45
|
+
r: number
|
|
46
|
+
g: number
|
|
47
|
+
b: number
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const canvas = document.createElement('canvas')
|
|
51
|
+
canvas.width = 1
|
|
52
|
+
canvas.height = 1
|
|
53
|
+
const context = canvas.getContext('2d', { colorSpace: 'srgb', willReadFrequently: true })
|
|
54
|
+
|
|
55
|
+
/** Paints one pixel and reads it back as sRGB, so any CSS colour syntax works. */
|
|
56
|
+
function toRgb(color: string): Rgb {
|
|
57
|
+
if (!context) throw new Error('2d canvas unavailable')
|
|
58
|
+
context.clearRect(0, 0, 1, 1)
|
|
59
|
+
context.fillStyle = color
|
|
60
|
+
context.fillRect(0, 0, 1, 1)
|
|
61
|
+
const [r = 0, g = 0, b = 0] = context.getImageData(0, 0, 1, 1).data
|
|
62
|
+
return { r, g, b }
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function painted(cssVar: string): string {
|
|
66
|
+
const probe = document.createElement('div')
|
|
67
|
+
probe.style.color = `var(${cssVar})`
|
|
68
|
+
document.body.appendChild(probe)
|
|
69
|
+
const value = getComputedStyle(probe).color
|
|
70
|
+
probe.remove()
|
|
71
|
+
return value
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const linear = (channel: number) => {
|
|
75
|
+
const value = channel / 255
|
|
76
|
+
return value <= 0.04045 ? value / 12.92 : ((value + 0.055) / 1.055) ** 2.4
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function luminance({ r, g, b }: Rgb): number {
|
|
80
|
+
return 0.2126 * linear(r) + 0.7152 * linear(g) + 0.0722 * linear(b)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function contrast(a: Rgb, b: Rgb): number {
|
|
84
|
+
const [light, dark] = [luminance(a), luminance(b)].sort((x, y) => y - x) as [number, number]
|
|
85
|
+
return (light + 0.05) / (dark + 0.05)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function oklab({ r, g, b }: Rgb): [number, number, number] {
|
|
89
|
+
const [lr, lg, lb] = [linear(r), linear(g), linear(b)]
|
|
90
|
+
const l = Math.cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb)
|
|
91
|
+
const m = Math.cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb)
|
|
92
|
+
const s = Math.cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb)
|
|
93
|
+
return [
|
|
94
|
+
0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,
|
|
95
|
+
1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,
|
|
96
|
+
0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s,
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function distance(a: Rgb, b: Rgb): number {
|
|
101
|
+
const [x, y] = [oklab(a), oklab(b)]
|
|
102
|
+
return Math.hypot(x[0] - y[0], x[1] - y[1], x[2] - y[2])
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function apply(theme: string, mode: string, brand: (typeof brands)[number]): void {
|
|
106
|
+
const element = root()
|
|
107
|
+
element.setAttribute('data-a63-theme', theme)
|
|
108
|
+
element.setAttribute('data-a63-mode', mode)
|
|
109
|
+
element.classList.remove('dark', 'light')
|
|
110
|
+
element.classList.add(mode)
|
|
111
|
+
element.setAttribute('data-a63-brand', brand.brand)
|
|
112
|
+
element.removeAttribute('style')
|
|
113
|
+
for (const [step, value] of Object.entries(brand.ramp ?? {})) {
|
|
114
|
+
element.style.setProperty(`--color-auto-${step}`, value)
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
describe('chart palette', () => {
|
|
119
|
+
it('keeps every series apart from the others and from the brand, at 3:1 on its surfaces', () => {
|
|
120
|
+
const failures: string[] = []
|
|
121
|
+
|
|
122
|
+
for (const brand of brands) {
|
|
123
|
+
for (const theme of themes) {
|
|
124
|
+
for (const mode of modes) {
|
|
125
|
+
apply(theme, mode, brand)
|
|
126
|
+
const where = `${brand.label} ${theme}/${mode}`
|
|
127
|
+
const colors = series.map(name => toRgb(painted(name)))
|
|
128
|
+
const primary = toRgb(painted('--a63-action-primary'))
|
|
129
|
+
|
|
130
|
+
for (const surface of surfaces) {
|
|
131
|
+
const background = toRgb(painted(surface))
|
|
132
|
+
colors.forEach((color, index) => {
|
|
133
|
+
const ratio = contrast(color, background)
|
|
134
|
+
if (ratio < GRAPHICS_CONTRAST) {
|
|
135
|
+
failures.push(`${where} ${series[index]} on ${surface}: ${ratio.toFixed(2)}:1`)
|
|
136
|
+
}
|
|
137
|
+
})
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
for (let a = 0; a < colors.length; a += 1) {
|
|
141
|
+
// Series 1 is the brand; the others must not land on it.
|
|
142
|
+
if (a > 0) {
|
|
143
|
+
const apart = distance(colors[a]!, primary)
|
|
144
|
+
if (apart < MIN_DISTANCE) {
|
|
145
|
+
failures.push(`${where} ${series[a]} vs the brand: ${apart.toFixed(3)}`)
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
for (let b = a + 1; b < colors.length; b += 1) {
|
|
149
|
+
const apart = distance(colors[a]!, colors[b]!)
|
|
150
|
+
if (apart < MIN_DISTANCE) {
|
|
151
|
+
failures.push(`${where} ${series[a]} vs ${series[b]}: ${apart.toFixed(3)}`)
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
expect(failures, failures.join('\n')).toEqual([])
|
|
160
|
+
})
|
|
161
|
+
|
|
162
|
+
/* A UIProvider can set only the brand, under a root that sets the mode. The
|
|
163
|
+
series must turn from that nested brand, not the root's. */
|
|
164
|
+
it('turns from a brand set on a nested scope', () => {
|
|
165
|
+
const scope = document.createElement('div')
|
|
166
|
+
scope.setAttribute('data-a63-brand', 'b5')
|
|
167
|
+
document.body.appendChild(scope)
|
|
168
|
+
const read = (name: string) => {
|
|
169
|
+
const probe = document.createElement('div')
|
|
170
|
+
probe.style.color = `var(${name})`
|
|
171
|
+
scope.appendChild(probe)
|
|
172
|
+
const value = toRgb(getComputedStyle(probe).color)
|
|
173
|
+
probe.remove()
|
|
174
|
+
return value
|
|
175
|
+
}
|
|
176
|
+
const primary = read('--a63-action-primary')
|
|
177
|
+
const failures = series
|
|
178
|
+
.slice(1)
|
|
179
|
+
.map(name => ({ name, apart: distance(read(name), primary) }))
|
|
180
|
+
.filter(({ apart }) => apart < MIN_DISTANCE)
|
|
181
|
+
.map(({ name, apart }) => `${name} vs the nested brand: ${apart.toFixed(3)}`)
|
|
182
|
+
expect(distance(read('--a63-chart-1'), toRgb(painted('--a63-chart-1')))).toBeGreaterThan(
|
|
183
|
+
MIN_DISTANCE
|
|
184
|
+
)
|
|
185
|
+
scope.remove()
|
|
186
|
+
expect(failures, failures.join('\n')).toEqual([])
|
|
187
|
+
})
|
|
188
|
+
})
|
|
@@ -390,3 +390,49 @@ describe('nested brand-only and surface-only scopes', () => {
|
|
|
390
390
|
expect(failures, failures.join('\n')).toEqual([])
|
|
391
391
|
})
|
|
392
392
|
})
|
|
393
|
+
|
|
394
|
+
/* The surface-tint slider (0-100%) bends the page, panel and muted surfaces toward
|
|
395
|
+
the brand. The second and third text greys keep 4.5:1 on all three at every
|
|
396
|
+
tint, on every brand, theme and mode. */
|
|
397
|
+
const tints = ['0%', '50%', '100%'] as const
|
|
398
|
+
const tintTextPairs = [
|
|
399
|
+
['--a63-text-secondary', '--a63-surface-page'],
|
|
400
|
+
['--a63-text-secondary', '--a63-surface-panel'],
|
|
401
|
+
['--a63-text-secondary', '--a63-surface-muted'],
|
|
402
|
+
['--a63-text-tertiary', '--a63-surface-page'],
|
|
403
|
+
['--a63-text-tertiary', '--a63-surface-panel'],
|
|
404
|
+
['--a63-text-tertiary', '--a63-surface-muted'],
|
|
405
|
+
] as const
|
|
406
|
+
|
|
407
|
+
describe('surface tint contrast (WCAG AA)', () => {
|
|
408
|
+
afterEach(() => {
|
|
409
|
+
root().removeAttribute('data-a63-brand')
|
|
410
|
+
root().style.removeProperty('--a63-surface-tint')
|
|
411
|
+
})
|
|
412
|
+
|
|
413
|
+
it('keeps the secondary and tertiary text at 4.5:1 on tinted surfaces', () => {
|
|
414
|
+
const failures: string[] = []
|
|
415
|
+
for (const tint of tints) {
|
|
416
|
+
root().style.setProperty('--a63-surface-tint', tint)
|
|
417
|
+
for (const brand of brands) {
|
|
418
|
+
root().setAttribute('data-a63-brand', brand)
|
|
419
|
+
for (const theme of themes) {
|
|
420
|
+
for (const mode of modes) {
|
|
421
|
+
applyThemeMode(theme, mode)
|
|
422
|
+
for (const [fg, bg] of tintTextPairs) {
|
|
423
|
+
const fgCss = resolvePaintedColor(fg, 'color')
|
|
424
|
+
const bgCss = resolvePaintedColor(bg, 'background')
|
|
425
|
+
const ratio = contrastRatio(parseCssColor(fgCss), parseCssColor(bgCss))
|
|
426
|
+
if (ratio < AA_TEXT) {
|
|
427
|
+
failures.push(
|
|
428
|
+
`tint ${tint} ${brand} ${theme}/${mode} ${fg} on ${bg}: ${ratio.toFixed(2)}:1 < ${AA_TEXT}:1`
|
|
429
|
+
)
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
expect(failures, failures.join('\n')).toEqual([])
|
|
437
|
+
})
|
|
438
|
+
})
|
package/src/tokens/semantics.css
CHANGED
|
@@ -151,11 +151,24 @@
|
|
|
151
151
|
);
|
|
152
152
|
/* Text */
|
|
153
153
|
--a63-text-primary: var(--surface-light-12);
|
|
154
|
-
|
|
154
|
+
/* The second text grey. It darkens toward brand 800 by three tenths of
|
|
155
|
+
--a63-surface-tint, so it keeps WCAG AA 4.5:1 on the page, the panel and the muted fill
|
|
156
|
+
as they tint toward the brand. */
|
|
157
|
+
--a63-text-secondary: color-mix(
|
|
158
|
+
in oklab,
|
|
159
|
+
var(--surface-light-11) calc(100% - var(--a63-surface-tint) * 0.3),
|
|
160
|
+
var(--a63-brand-800) calc(var(--a63-surface-tint) * 0.3)
|
|
161
|
+
);
|
|
155
162
|
/* The third text grey, lighter than secondary: placeholders, meta and timestamps.
|
|
156
163
|
Seven parts step 11 to three parts step 10, so it keeps WCAG AA 4.5:1 on the page,
|
|
157
|
-
the panel, the field fill and the muted fill of a filled field.
|
|
158
|
-
|
|
164
|
+
the panel, the field fill and the muted fill of a filled field. Like secondary, it darkens
|
|
165
|
+
toward brand 800 by three tenths of --a63-surface-tint, so it keeps 4.5:1 as the surfaces tint. */
|
|
166
|
+
--a63-text-tertiary: color-mix(
|
|
167
|
+
in oklab,
|
|
168
|
+
color-mix(in oklab, var(--surface-light-11) 70%, var(--surface-light-10))
|
|
169
|
+
calc(100% - var(--a63-surface-tint) * 0.3),
|
|
170
|
+
var(--a63-brand-800) calc(var(--a63-surface-tint) * 0.3)
|
|
171
|
+
);
|
|
159
172
|
/* The brand as text (links, accents) on light surfaces; brand.css picks the
|
|
160
173
|
ramp step per brand. Use --a63-action-primary for fills. */
|
|
161
174
|
--a63-text-accent: var(--a63-brand-text);
|
|
@@ -270,13 +283,16 @@
|
|
|
270
283
|
);
|
|
271
284
|
--a63-status-danger-subtle: color-mix(in oklab, var(--a63-status-danger) 14%, transparent);
|
|
272
285
|
--a63-status-danger-subtle-foreground: var(--color-danger-700);
|
|
273
|
-
/* Chart series colors. Series 1 is the primary; 2
|
|
274
|
-
|
|
286
|
+
/* Chart series colors. Series 1 is the brand's primary; series 2 to 5 turn its hue
|
|
287
|
+
by fixed steps at a set lightness and chroma, so no series takes the brand's hue
|
|
288
|
+
whatever the brand (the wallpaper brand included), and each reaches 3:1 against
|
|
289
|
+
the page and the panel. The plain value is the default (blue) brand's result, for
|
|
290
|
+
tools that cannot run the derivation. */
|
|
275
291
|
--a63-chart-1: var(--a63-action-primary);
|
|
276
|
-
--a63-chart-2: var(--
|
|
277
|
-
--a63-chart-3: var(--
|
|
278
|
-
--a63-chart-4: var(--
|
|
279
|
-
--a63-chart-5: var(--
|
|
292
|
+
--a63-chart-2: oklch(from var(--a63-chart-1) 0.6 0.15 calc(h + 144));
|
|
293
|
+
--a63-chart-3: oklch(from var(--a63-chart-1) 0.54 0.13 calc(h + 288));
|
|
294
|
+
--a63-chart-4: oklch(from var(--a63-chart-1) 0.58 0.14 calc(h + 216));
|
|
295
|
+
--a63-chart-5: oklch(from var(--a63-chart-1) 0.5 0.16 calc(h + 72));
|
|
280
296
|
--a63-category-red-subtle-foreground: var(--color-red-700);
|
|
281
297
|
--a63-category-orange-subtle-foreground: var(--color-orange-800);
|
|
282
298
|
--a63-category-amber-subtle-foreground: var(--color-warning-800);
|
|
@@ -360,10 +376,22 @@
|
|
|
360
376
|
var(--a63-surface-page)
|
|
361
377
|
);
|
|
362
378
|
--a63-text-primary: var(--surface-dark-12);
|
|
363
|
-
--a63-
|
|
379
|
+
/* It lightens toward brand 100 by three tenths of --a63-surface-tint,
|
|
380
|
+
as the dark surfaces tint toward the brand. */
|
|
381
|
+
--a63-text-secondary: color-mix(
|
|
382
|
+
in oklab,
|
|
383
|
+
var(--surface-dark-11) calc(100% - var(--a63-surface-tint) * 0.3),
|
|
384
|
+
var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3)
|
|
385
|
+
);
|
|
364
386
|
/* Three parts step 11 to seven parts step 10: WCAG AA 4.5:1 on the page, the panel,
|
|
365
|
-
the field fill and the muted fill.
|
|
366
|
-
|
|
387
|
+
the field fill and the muted fill. Like secondary, it lightens toward brand 100 by three
|
|
388
|
+
tenths of --a63-surface-tint. */
|
|
389
|
+
--a63-text-tertiary: color-mix(
|
|
390
|
+
in oklab,
|
|
391
|
+
color-mix(in oklab, var(--surface-dark-11) 30%, var(--surface-dark-10))
|
|
392
|
+
calc(100% - var(--a63-surface-tint) * 0.3),
|
|
393
|
+
var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3)
|
|
394
|
+
);
|
|
367
395
|
/* The primary fill is too dark to read as text on dark surfaces. */
|
|
368
396
|
--a63-text-accent: var(--a63-brand-400);
|
|
369
397
|
/* Danger text on dark surfaces: step 400 reaches WCAG AA 4.5:1 on every theme's
|
|
@@ -423,11 +451,13 @@
|
|
|
423
451
|
--a63-status-danger: var(--color-danger-500);
|
|
424
452
|
--a63-status-danger-subtle: color-mix(in oklab, var(--a63-status-danger) 14%, transparent);
|
|
425
453
|
--a63-status-danger-subtle-foreground: var(--color-danger-400);
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
--a63-chart-
|
|
429
|
-
--a63-chart-
|
|
430
|
-
--a63-chart-
|
|
454
|
+
/* On dark surfaces series 1 is the brand's 400 step and 2 to 5 are lighter, for 3:1
|
|
455
|
+
against the dark page. */
|
|
456
|
+
--a63-chart-1: var(--a63-brand-400);
|
|
457
|
+
--a63-chart-2: oklch(from var(--a63-chart-1) 0.76 0.14 calc(h + 144));
|
|
458
|
+
--a63-chart-3: oklch(from var(--a63-chart-1) 0.7 0.13 calc(h + 288));
|
|
459
|
+
--a63-chart-4: oklch(from var(--a63-chart-1) 0.82 0.13 calc(h + 216));
|
|
460
|
+
--a63-chart-5: oklch(from var(--a63-chart-1) 0.68 0.15 calc(h + 72));
|
|
431
461
|
--a63-category-red-subtle-foreground: var(--color-red-400);
|
|
432
462
|
--a63-category-orange-subtle-foreground: var(--color-orange-400);
|
|
433
463
|
--a63-category-amber-subtle-foreground: var(--color-warning-400);
|
|
@@ -577,13 +607,40 @@
|
|
|
577
607
|
);
|
|
578
608
|
--a63-text-primary: var(--a63-if-light, var(--surface-light-12))
|
|
579
609
|
var(--a63-if-dark, var(--surface-dark-12));
|
|
580
|
-
--a63-text-secondary: var(
|
|
581
|
-
|
|
610
|
+
--a63-text-secondary: var(
|
|
611
|
+
--a63-if-light,
|
|
612
|
+
color-mix(
|
|
613
|
+
in oklab,
|
|
614
|
+
var(--surface-light-11) calc(100% - var(--a63-surface-tint) * 0.3),
|
|
615
|
+
var(--a63-brand-800) calc(var(--a63-surface-tint) * 0.3)
|
|
616
|
+
)
|
|
617
|
+
)
|
|
618
|
+
var(
|
|
619
|
+
--a63-if-dark,
|
|
620
|
+
color-mix(
|
|
621
|
+
in oklab,
|
|
622
|
+
var(--surface-dark-11) calc(100% - var(--a63-surface-tint) * 0.3),
|
|
623
|
+
var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3)
|
|
624
|
+
)
|
|
625
|
+
);
|
|
582
626
|
--a63-text-tertiary: var(
|
|
583
627
|
--a63-if-light,
|
|
584
|
-
color-mix(
|
|
628
|
+
color-mix(
|
|
629
|
+
in oklab,
|
|
630
|
+
color-mix(in oklab, var(--surface-light-11) 70%, var(--surface-light-10))
|
|
631
|
+
calc(100% - var(--a63-surface-tint) * 0.3),
|
|
632
|
+
var(--a63-brand-800) calc(var(--a63-surface-tint) * 0.3)
|
|
633
|
+
)
|
|
585
634
|
)
|
|
586
|
-
var(
|
|
635
|
+
var(
|
|
636
|
+
--a63-if-dark,
|
|
637
|
+
color-mix(
|
|
638
|
+
in oklab,
|
|
639
|
+
color-mix(in oklab, var(--surface-dark-11) 30%, var(--surface-dark-10))
|
|
640
|
+
calc(100% - var(--a63-surface-tint) * 0.3),
|
|
641
|
+
var(--a63-brand-100) calc(var(--a63-surface-tint) * 0.3)
|
|
642
|
+
)
|
|
643
|
+
);
|
|
587
644
|
--a63-text-accent: var(--a63-if-light, var(--a63-brand-text))
|
|
588
645
|
var(--a63-if-dark, var(--a63-brand-400));
|
|
589
646
|
--a63-text-danger: var(--a63-if-light, var(--color-danger-600))
|
|
@@ -714,15 +771,16 @@
|
|
|
714
771
|
--a63-status-danger-subtle: color-mix(in oklab, var(--a63-status-danger) 14%, transparent);
|
|
715
772
|
--a63-status-danger-subtle-foreground: var(--a63-if-light, var(--color-danger-700))
|
|
716
773
|
var(--a63-if-dark, var(--color-danger-400));
|
|
717
|
-
--a63-chart-1: var(--a63-action-primary)
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
774
|
+
--a63-chart-1: var(--a63-if-light, var(--a63-action-primary))
|
|
775
|
+
var(--a63-if-dark, var(--a63-brand-400));
|
|
776
|
+
--a63-chart-2: var(--a63-if-light, oklch(from var(--a63-chart-1) 0.6 0.15 calc(h + 144)))
|
|
777
|
+
var(--a63-if-dark, oklch(from var(--a63-chart-1) 0.76 0.14 calc(h + 144)));
|
|
778
|
+
--a63-chart-3: var(--a63-if-light, oklch(from var(--a63-chart-1) 0.54 0.13 calc(h + 288)))
|
|
779
|
+
var(--a63-if-dark, oklch(from var(--a63-chart-1) 0.7 0.13 calc(h + 288)));
|
|
780
|
+
--a63-chart-4: var(--a63-if-light, oklch(from var(--a63-chart-1) 0.58 0.14 calc(h + 216)))
|
|
781
|
+
var(--a63-if-dark, oklch(from var(--a63-chart-1) 0.82 0.13 calc(h + 216)));
|
|
782
|
+
--a63-chart-5: var(--a63-if-light, oklch(from var(--a63-chart-1) 0.5 0.16 calc(h + 72)))
|
|
783
|
+
var(--a63-if-dark, oklch(from var(--a63-chart-1) 0.68 0.15 calc(h + 72)));
|
|
726
784
|
--a63-category-red-subtle-foreground: var(--a63-if-light, var(--color-red-700))
|
|
727
785
|
var(--a63-if-dark, var(--color-red-400));
|
|
728
786
|
--a63-category-orange-subtle-foreground: var(--a63-if-light, var(--color-orange-800))
|
|
@@ -528,15 +528,19 @@
|
|
|
528
528
|
},
|
|
529
529
|
"secondary": {
|
|
530
530
|
"$type": "color",
|
|
531
|
-
"$value": "{surface.light.11}"
|
|
531
|
+
"$value": "{surface.light.11}",
|
|
532
|
+
"$description": "The second text grey. It darkens toward brand 800 by three tenths of\n--a63-surface-tint, so it keeps WCAG AA 4.5:1 on the page, the panel and the muted fill\nas they tint toward the brand.",
|
|
533
|
+
"$extensions": {
|
|
534
|
+
"io.atom63.derive": "color-mix( in oklab, {surface.light.11} calc(100% - {a63.surface.tint} * 0.3), {a63.brand.800} calc({a63.surface.tint} * 0.3) )"
|
|
535
|
+
}
|
|
532
536
|
},
|
|
533
537
|
"tertiary": {
|
|
534
538
|
"$type": "color",
|
|
535
539
|
"$value": "{surface.light.11}",
|
|
536
540
|
"$extensions": {
|
|
537
|
-
"io.atom63.derive": "color-mix(in oklab, {surface.light.11} 70%, {surface.light.10})"
|
|
541
|
+
"io.atom63.derive": "color-mix( in oklab, color-mix(in oklab, {surface.light.11} 70%, {surface.light.10}) calc(100% - {a63.surface.tint} * 0.3), {a63.brand.800} calc({a63.surface.tint} * 0.3) )"
|
|
538
542
|
},
|
|
539
|
-
"$description": "The third text grey, lighter than secondary: placeholders, meta and timestamps.\nSeven parts step 11 to three parts step 10, so it keeps WCAG AA 4.5:1 on the page,\nthe panel, the field fill and the muted fill of a filled field."
|
|
543
|
+
"$description": "The third text grey, lighter than secondary: placeholders, meta and timestamps.\nSeven parts step 11 to three parts step 10, so it keeps WCAG AA 4.5:1 on the page,\nthe panel, the field fill and the muted fill of a filled field. Like secondary, it darkens\ntoward brand 800 by three tenths of --a63-surface-tint, so it keeps 4.5:1 as the surfaces tint."
|
|
540
544
|
},
|
|
541
545
|
"accent": {
|
|
542
546
|
"$type": "color",
|
|
@@ -817,23 +821,35 @@
|
|
|
817
821
|
"1": {
|
|
818
822
|
"$type": "color",
|
|
819
823
|
"$value": "{a63.action.primary}",
|
|
820
|
-
"$description": "Chart series colors. Series 1 is the primary; 2
|
|
824
|
+
"$description": "Chart series colors. Series 1 is the brand's primary; series 2 to 5 turn its hue\nby fixed steps at a set lightness and chroma, so no series takes the brand's hue\nwhatever the brand (the wallpaper brand included), and each reaches 3:1 against\nthe page and the panel. The plain value is the default (blue) brand's result, for\ntools that cannot run the derivation."
|
|
821
825
|
},
|
|
822
826
|
"2": {
|
|
823
827
|
"$type": "color",
|
|
824
|
-
"$value": "{color.
|
|
828
|
+
"$value": "{color.orange.600}",
|
|
829
|
+
"$extensions": {
|
|
830
|
+
"io.atom63.derive": "oklch(from {a63.chart.1} 0.6 0.15 calc(h + 144))"
|
|
831
|
+
}
|
|
825
832
|
},
|
|
826
833
|
"3": {
|
|
827
834
|
"$type": "color",
|
|
828
|
-
"$value": "{color.
|
|
835
|
+
"$value": "{color.teal.600}",
|
|
836
|
+
"$extensions": {
|
|
837
|
+
"io.atom63.derive": "oklch(from {a63.chart.1} 0.54 0.13 calc(h + 288))"
|
|
838
|
+
}
|
|
829
839
|
},
|
|
830
840
|
"4": {
|
|
831
841
|
"$type": "color",
|
|
832
|
-
"$value": "{color.
|
|
842
|
+
"$value": "{color.lime.700}",
|
|
843
|
+
"$extensions": {
|
|
844
|
+
"io.atom63.derive": "oklch(from {a63.chart.1} 0.58 0.14 calc(h + 216))"
|
|
845
|
+
}
|
|
833
846
|
},
|
|
834
847
|
"5": {
|
|
835
848
|
"$type": "color",
|
|
836
|
-
"$value": "{color.
|
|
849
|
+
"$value": "{color.fuchsia.700}",
|
|
850
|
+
"$extensions": {
|
|
851
|
+
"io.atom63.derive": "oklch(from {a63.chart.1} 0.5 0.16 calc(h + 72))"
|
|
852
|
+
}
|
|
837
853
|
}
|
|
838
854
|
},
|
|
839
855
|
"category": {
|
|
@@ -1122,15 +1138,19 @@
|
|
|
1122
1138
|
},
|
|
1123
1139
|
"secondary": {
|
|
1124
1140
|
"$type": "color",
|
|
1125
|
-
"$value": "{surface.dark.11}"
|
|
1141
|
+
"$value": "{surface.dark.11}",
|
|
1142
|
+
"$description": "It lightens toward brand 100 by three tenths of --a63-surface-tint,\nas the dark surfaces tint toward the brand.",
|
|
1143
|
+
"$extensions": {
|
|
1144
|
+
"io.atom63.derive": "color-mix( in oklab, {surface.dark.11} calc(100% - {a63.surface.tint} * 0.3), {a63.brand.100} calc({a63.surface.tint} * 0.3) )"
|
|
1145
|
+
}
|
|
1126
1146
|
},
|
|
1127
1147
|
"tertiary": {
|
|
1128
1148
|
"$type": "color",
|
|
1129
1149
|
"$value": "{surface.dark.10}",
|
|
1130
1150
|
"$extensions": {
|
|
1131
|
-
"io.atom63.derive": "color-mix(in oklab, {surface.dark.11} 30%, {surface.dark.10})"
|
|
1151
|
+
"io.atom63.derive": "color-mix( in oklab, color-mix(in oklab, {surface.dark.11} 30%, {surface.dark.10}) calc(100% - {a63.surface.tint} * 0.3), {a63.brand.100} calc({a63.surface.tint} * 0.3) )"
|
|
1132
1152
|
},
|
|
1133
|
-
"$description": "Three parts step 11 to seven parts step 10: WCAG AA 4.5:1 on the page, the panel,\nthe field fill and the muted fill."
|
|
1153
|
+
"$description": "Three parts step 11 to seven parts step 10: WCAG AA 4.5:1 on the page, the panel,\nthe field fill and the muted fill. Like secondary, it lightens toward brand 100 by three\ntenths of --a63-surface-tint."
|
|
1134
1154
|
},
|
|
1135
1155
|
"accent": {
|
|
1136
1156
|
"$type": "color",
|
|
@@ -1353,23 +1373,36 @@
|
|
|
1353
1373
|
"chart": {
|
|
1354
1374
|
"1": {
|
|
1355
1375
|
"$type": "color",
|
|
1356
|
-
"$value": "{a63.
|
|
1376
|
+
"$value": "{a63.brand.400}",
|
|
1377
|
+
"$description": "On dark surfaces series 1 is the brand's 400 step and 2 to 5 are lighter, for 3:1\nagainst the dark page."
|
|
1357
1378
|
},
|
|
1358
1379
|
"2": {
|
|
1359
1380
|
"$type": "color",
|
|
1360
|
-
"$value": "{color.
|
|
1381
|
+
"$value": "{color.orange.300}",
|
|
1382
|
+
"$extensions": {
|
|
1383
|
+
"io.atom63.derive": "oklch(from {a63.chart.1} 0.76 0.14 calc(h + 144))"
|
|
1384
|
+
}
|
|
1361
1385
|
},
|
|
1362
1386
|
"3": {
|
|
1363
1387
|
"$type": "color",
|
|
1364
|
-
"$value": "{color.
|
|
1388
|
+
"$value": "{color.teal.400}",
|
|
1389
|
+
"$extensions": {
|
|
1390
|
+
"io.atom63.derive": "oklch(from {a63.chart.1} 0.7 0.13 calc(h + 288))"
|
|
1391
|
+
}
|
|
1365
1392
|
},
|
|
1366
1393
|
"4": {
|
|
1367
1394
|
"$type": "color",
|
|
1368
|
-
"$value": "{color.
|
|
1395
|
+
"$value": "{color.lime.300}",
|
|
1396
|
+
"$extensions": {
|
|
1397
|
+
"io.atom63.derive": "oklch(from {a63.chart.1} 0.82 0.13 calc(h + 216))"
|
|
1398
|
+
}
|
|
1369
1399
|
},
|
|
1370
1400
|
"5": {
|
|
1371
1401
|
"$type": "color",
|
|
1372
|
-
"$value": "{color.
|
|
1402
|
+
"$value": "{color.purple.400}",
|
|
1403
|
+
"$extensions": {
|
|
1404
|
+
"io.atom63.derive": "oklch(from {a63.chart.1} 0.68 0.15 calc(h + 72))"
|
|
1405
|
+
}
|
|
1373
1406
|
}
|
|
1374
1407
|
},
|
|
1375
1408
|
"category": {
|