@atom63/styles 0.1.0-beta.6 → 0.1.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +7 -4
  2. package/generated/atom63.figma-sync.json +10559 -5138
  3. package/generated/atom63.tokens.json +13034 -7792
  4. package/package.json +6 -4
  5. package/src/compat/a63-from-shadcn.css +5 -1
  6. package/src/compat/shadcn.browser.test.ts +23 -0
  7. package/src/compat/shadcn.css +133 -17
  8. package/src/contracts/badge.css +81 -65
  9. package/src/contracts/badge.resolver.json +145 -62
  10. package/src/contracts/choice.css +1 -1
  11. package/src/contracts/choice.tokens.json +1 -1
  12. package/src/contracts/control.css +14 -8
  13. package/src/contracts/control.tokens.json +57 -8
  14. package/src/contracts/environment.css +134 -12
  15. package/src/contracts/environment.resolver.json +664 -23
  16. package/src/contracts/field.css +1 -1
  17. package/src/contracts/field.tokens.json +1 -1
  18. package/src/contracts/selection.css +2 -0
  19. package/src/contracts/selection.tokens.json +5 -0
  20. package/src/contracts/surface.css +4 -0
  21. package/src/contracts/surface.tokens.json +57 -0
  22. package/src/tailwind/roles.json +189 -0
  23. package/src/tailwind/theme.css +210 -22
  24. package/src/tailwind/utilities.css +17 -0
  25. package/src/themes/aqua.css +1 -0
  26. package/src/themes/aqua.resolver.json +6 -0
  27. package/src/themes/retro.css +1 -0
  28. package/src/themes/retro.resolver.json +6 -0
  29. package/src/themes/terminal.css +8 -0
  30. package/src/themes/terminal.resolver.json +37 -0
  31. package/src/tokens/brand-action.css +16 -1
  32. package/src/tokens/brand-action.resolver.json +42 -5
  33. package/src/tokens/contrast.browser.test.ts +59 -0
  34. package/src/tokens/density.browser.test.ts +167 -0
  35. package/src/tokens/figma-parity.browser.test.ts +27 -14
  36. package/src/tokens/form-factor.browser.test.ts +129 -0
  37. package/src/tokens/foundation/primitives.css +0 -30
  38. package/src/tokens/foundation/primitives.tokens.json +0 -212
  39. package/src/tokens/foundation/radius.css +5 -0
  40. package/src/tokens/foundation/radius.tokens.json +8 -0
  41. package/src/tokens/foundation/typography.css +24 -0
  42. package/src/tokens/foundation/typography.native.css +12 -2
  43. package/src/tokens/foundation/typography.resolver.json +72 -0
  44. package/src/tokens/index.css +1 -0
  45. package/src/tokens/personalization-axes.browser.test.ts +13 -0
  46. package/src/tokens/semantics.css +251 -4
  47. package/src/tokens/semantics.resolver.json +1148 -12
  48. package/src/tokens/surface.css +8 -0
  49. package/src/tokens/surface.resolver.json +49 -0
  50. package/src/tokens/swift-parity.browser.test.ts +4 -0
  51. package/src/tokens/type-roles.css +75 -0
  52. package/src/tokens/type-roles.resolver.json +366 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "2025.10",
3
- "description": "Environment dimensions.\n\nEach dimension owns a distinct slice (see packages/styles/README.md — the\ndimension-ownership table):\n - Design Language → component sizing/proportions + interaction feedback\n - Input → ergonomics (min touch target)\n - Density → proportional rhythm\n\nRadius, color, and shadow are NOT design-language concerns — they belong to\nthe semantic ramp + theme (personalization). Design language never sets radius.\n\nPrevent focus zoom in mobile Safari without inflating non-editable control\n labels. Editable recipes combine this floor with their normal type token.\n\nDensity — proportional rhythm\n\nAuto-detect coarse pointers. Without this, touch ergonomics only apply when an\n app explicitly passes `input` to UIProvider — an opt-in almost nothing does, so\n controls stay at their 24px floor on phones. Declared before the attribute\n rules below (equal specificity) so an explicit data-a63-input always wins.\n\nInput — ergonomics (touch target). Independent of design language.\n\nExplicit fine-pointer choices override coarse auto-detection (hybrid devices,\n or a user who picked \"pointer\" in the appearance panel on a touchscreen).\n\nDesign language — component sizing/proportions + interaction feedback only.\nThe base :root (control.css) is the web default; iOS overrides sizing + feel.\nNo radius, color, or touch-target here.",
3
+ "description": "Environment dimensions.\n\nEach dimension owns a distinct slice (see packages/styles/README.md — the\ndimension-ownership table):\n - Design Language → component sizing/proportions + interaction feedback\n - Input → ergonomics (min touch target)\n - Density → proportional rhythm\n\nRadius, color, and shadow are NOT design-language concerns — they belong to\nthe semantic ramp + theme (personalization). Design language never sets radius.\n\nPrevent focus zoom in mobile Safari without inflating non-editable control\n labels. Editable recipes combine this floor with their normal type token.\n\nDensity — proportional rhythm. A density scope sets --a63-space-unit, and every :root token\nbuilt on it (the space steps, control heights and paddings, row padding, gaps) is declared\nagain on [data-a63-density], so a nested scope recomputes them once, the same as the root.\nThe design-language and phone scopes are also declared on a density scope inside them, so\nit keeps their sizes.\n\nAuto-detect coarse pointers. Without this, touch ergonomics only apply when an\n app explicitly passes `input` to UIProvider — an opt-in almost nothing does, so\n controls stay at their 24px floor on phones. Declared before the attribute\n rules below (equal specificity) so an explicit data-a63-input always wins.\n\nInput — ergonomics (touch target). Independent of design language.\n\nExplicit fine-pointer choices override coarse auto-detection (hybrid devices,\n or a user who picked \"pointer\" in the appearance panel on a touchscreen).\n\nDesign language — component sizing/proportions + interaction feedback only.\nThe base :root (control.css) is the web default; iOS overrides sizing + feel.\nNo radius, color, or touch-target here.\n\nForm factor — a phone screen. [data-a63-form-factor='phone'] sets the type steps and the\ncontrol sizing of a phone (iOS text sizes: body 17, subheadline 15, footnote 13). Viewport\nwidth does not apply it; a phone layout stamps it (AppView layout=\"phone\"). The type roles\nare redeclared on the same scope (type-roles.css), so text-body and the other roles follow it.",
4
4
  "sets": {
5
5
  "01-root": {
6
6
  "sources": [
@@ -9,7 +9,8 @@
9
9
  "density": {
10
10
  "scale": {
11
11
  "$type": "number",
12
- "$value": 1
12
+ "$value": 1,
13
+ "$description": "An extra multiplier recipes apply to control heights. It stays 1 in every density: density reaches sizes through --a63-space-unit, which the control heights are built on, so scaling them again would shrink controls twice."
13
14
  }
14
15
  },
15
16
  "editable": {
@@ -109,12 +110,6 @@
109
110
  "sources": [
110
111
  {
111
112
  "a63": {
112
- "density": {
113
- "scale": {
114
- "$type": "number",
115
- "$value": 0.9
116
- }
117
- },
118
113
  "space": {
119
114
  "unit": {
120
115
  "$type": "dimension",
@@ -137,12 +132,6 @@
137
132
  "sources": [
138
133
  {
139
134
  "a63": {
140
- "density": {
141
- "scale": {
142
- "$type": "number",
143
- "$value": 1
144
- }
145
- },
146
135
  "space": {
147
136
  "unit": {
148
137
  "$type": "dimension",
@@ -158,6 +147,15 @@
158
147
  }
159
148
  }
160
149
  },
150
+ "05a-density-scope": {
151
+ "sources": [],
152
+ "$extensions": {
153
+ "io.atom63.css": {
154
+ "selector": ":is([data-a63-density], [data-density])",
155
+ "rederive": "{a63.space.unit}"
156
+ }
157
+ }
158
+ },
161
159
  "06-media-pointer-coarse-root": {
162
160
  "sources": [
163
161
  {
@@ -364,35 +362,35 @@
364
362
  "$type": "dimension",
365
363
  "$value": "{a63.space.unit}",
366
364
  "$extensions": {
367
- "io.atom63.derive": "calc({a63.space.unit} * 9)"
365
+ "io.atom63.derive": "round(nearest, calc({a63.space.unit} * 9), 1px)"
368
366
  }
369
367
  },
370
368
  "sm": {
371
369
  "$type": "dimension",
372
370
  "$value": "{a63.space.unit}",
373
371
  "$extensions": {
374
- "io.atom63.derive": "calc({a63.space.unit} * 10)"
372
+ "io.atom63.derive": "round(nearest, calc({a63.space.unit} * 10), 1px)"
375
373
  }
376
374
  },
377
375
  "md": {
378
376
  "$type": "dimension",
379
377
  "$value": "{a63.space.unit}",
380
378
  "$extensions": {
381
- "io.atom63.derive": "calc({a63.space.unit} * 11)"
379
+ "io.atom63.derive": "round(nearest, calc({a63.space.unit} * 11), 1px)"
382
380
  }
383
381
  },
384
382
  "lg": {
385
383
  "$type": "dimension",
386
384
  "$value": "{a63.space.unit}",
387
385
  "$extensions": {
388
- "io.atom63.derive": "calc({a63.space.unit} * 12)"
386
+ "io.atom63.derive": "round(nearest, calc({a63.space.unit} * 12), 1px)"
389
387
  }
390
388
  },
391
389
  "xl": {
392
390
  "$type": "dimension",
393
391
  "$value": "{a63.space.unit}",
394
392
  "$extensions": {
395
- "io.atom63.derive": "calc({a63.space.unit} * 13)"
393
+ "io.atom63.derive": "round(nearest, calc({a63.space.unit} * 13), 1px)"
396
394
  }
397
395
  }
398
396
  },
@@ -500,15 +498,24 @@
500
498
  "xs": {
501
499
  "$type": "dimension",
502
500
  "$value": "{a63.space.1}",
503
- "$description": "Rows stop padding their way to height and let the control ramp floor them,\n so a single-line row lands on 44pt and a two-line row on ~59pt, instead of\n 52pt and 75pt. Targets are from our measurement study, not a published\n Apple row height — there isn't one."
501
+ "$description": "Rows stop padding their way to height and let the control ramp floor them,\n so a single-line row lands on 44pt and a two-line row on ~59pt, instead of\n 52pt and 75pt. Targets are from our measurement study, not a published\n Apple row height — there isn't one.",
502
+ "$extensions": {
503
+ "io.atom63.derive": "round(nearest, {a63.space.1}, 1px)"
504
+ }
504
505
  },
505
506
  "sm": {
506
507
  "$type": "dimension",
507
- "$value": "{a63.space.1_5}"
508
+ "$value": "{a63.space.1_5}",
509
+ "$extensions": {
510
+ "io.atom63.derive": "round(nearest, {a63.space.1_5}, 1px)"
511
+ }
508
512
  },
509
513
  "md": {
510
514
  "$type": "dimension",
511
- "$value": "{a63.space.2}"
515
+ "$value": "{a63.space.2}",
516
+ "$extensions": {
517
+ "io.atom63.derive": "round(nearest, {a63.space.2}, 1px)"
518
+ }
512
519
  }
513
520
  }
514
521
  }
@@ -530,7 +537,635 @@
530
537
  ],
531
538
  "$extensions": {
532
539
  "io.atom63.css": {
533
- "selector": ":is([data-a63-design-language='ios'], [data-design-language='ios'])"
540
+ "selector": ":is([data-a63-design-language='ios'], [data-design-language='ios']),\n:is([data-a63-design-language='ios'], [data-design-language='ios']) :is([data-a63-density], [data-density])"
541
+ }
542
+ }
543
+ },
544
+ "10-data-a63-form-factor-phone": {
545
+ "sources": [
546
+ {
547
+ "typography": {
548
+ "2xs": {
549
+ "font": {
550
+ "size": {
551
+ "$type": "dimension",
552
+ "$value": {
553
+ "value": 11,
554
+ "unit": "px"
555
+ },
556
+ "$extensions": {
557
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
558
+ },
559
+ "$description": "The type steps of a phone screen, after the iOS text styles at the default Dynamic Type size:\n body 17 (base), subheadline 15 (sm), footnote 13 (xs), caption2 11 (2xs), title3 20 (2xl),\n title2 22 (3xl), title1 28 (5xl), largeTitle 34 (6xl). Steps without an iOS style keep the\n scale in order. Complete, so the phone scope wins over the viewport and window steps."
560
+ }
561
+ },
562
+ "line": {
563
+ "height": {
564
+ "$type": "dimension",
565
+ "$value": {
566
+ "value": 13,
567
+ "unit": "px"
568
+ },
569
+ "$extensions": {
570
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
571
+ }
572
+ }
573
+ }
574
+ },
575
+ "xs": {
576
+ "font": {
577
+ "size": {
578
+ "$type": "dimension",
579
+ "$value": {
580
+ "value": 13,
581
+ "unit": "px"
582
+ },
583
+ "$extensions": {
584
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
585
+ }
586
+ }
587
+ },
588
+ "line": {
589
+ "height": {
590
+ "$type": "dimension",
591
+ "$value": {
592
+ "value": 18,
593
+ "unit": "px"
594
+ },
595
+ "$extensions": {
596
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
597
+ }
598
+ }
599
+ }
600
+ },
601
+ "sm": {
602
+ "font": {
603
+ "size": {
604
+ "$type": "dimension",
605
+ "$value": {
606
+ "value": 15,
607
+ "unit": "px"
608
+ },
609
+ "$extensions": {
610
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
611
+ }
612
+ }
613
+ },
614
+ "line": {
615
+ "height": {
616
+ "$type": "dimension",
617
+ "$value": {
618
+ "value": 20,
619
+ "unit": "px"
620
+ },
621
+ "$extensions": {
622
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
623
+ }
624
+ }
625
+ }
626
+ },
627
+ "base": {
628
+ "font": {
629
+ "size": {
630
+ "$type": "dimension",
631
+ "$value": {
632
+ "value": 17,
633
+ "unit": "px"
634
+ },
635
+ "$extensions": {
636
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
637
+ }
638
+ }
639
+ },
640
+ "line": {
641
+ "height": {
642
+ "$type": "dimension",
643
+ "$value": {
644
+ "value": 22,
645
+ "unit": "px"
646
+ },
647
+ "$extensions": {
648
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
649
+ }
650
+ }
651
+ }
652
+ },
653
+ "lg": {
654
+ "font": {
655
+ "size": {
656
+ "$type": "dimension",
657
+ "$value": {
658
+ "value": 18,
659
+ "unit": "px"
660
+ },
661
+ "$extensions": {
662
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
663
+ }
664
+ }
665
+ },
666
+ "line": {
667
+ "height": {
668
+ "$type": "dimension",
669
+ "$value": {
670
+ "value": 24,
671
+ "unit": "px"
672
+ },
673
+ "$extensions": {
674
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
675
+ }
676
+ }
677
+ }
678
+ },
679
+ "xl": {
680
+ "font": {
681
+ "size": {
682
+ "$type": "dimension",
683
+ "$value": {
684
+ "value": 19,
685
+ "unit": "px"
686
+ },
687
+ "$extensions": {
688
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
689
+ }
690
+ }
691
+ },
692
+ "line": {
693
+ "height": {
694
+ "$type": "dimension",
695
+ "$value": {
696
+ "value": 24,
697
+ "unit": "px"
698
+ },
699
+ "$extensions": {
700
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
701
+ }
702
+ }
703
+ }
704
+ },
705
+ "2xl": {
706
+ "font": {
707
+ "size": {
708
+ "$type": "dimension",
709
+ "$value": {
710
+ "value": 20,
711
+ "unit": "px"
712
+ },
713
+ "$extensions": {
714
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
715
+ }
716
+ }
717
+ },
718
+ "line": {
719
+ "height": {
720
+ "$type": "dimension",
721
+ "$value": {
722
+ "value": 25,
723
+ "unit": "px"
724
+ },
725
+ "$extensions": {
726
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
727
+ }
728
+ }
729
+ }
730
+ },
731
+ "3xl": {
732
+ "font": {
733
+ "size": {
734
+ "$type": "dimension",
735
+ "$value": {
736
+ "value": 22,
737
+ "unit": "px"
738
+ },
739
+ "$extensions": {
740
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
741
+ }
742
+ }
743
+ },
744
+ "line": {
745
+ "height": {
746
+ "$type": "dimension",
747
+ "$value": {
748
+ "value": 28,
749
+ "unit": "px"
750
+ },
751
+ "$extensions": {
752
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
753
+ }
754
+ }
755
+ }
756
+ },
757
+ "4xl": {
758
+ "font": {
759
+ "size": {
760
+ "$type": "dimension",
761
+ "$value": {
762
+ "value": 25,
763
+ "unit": "px"
764
+ },
765
+ "$extensions": {
766
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
767
+ }
768
+ }
769
+ },
770
+ "line": {
771
+ "height": {
772
+ "$type": "dimension",
773
+ "$value": {
774
+ "value": 31,
775
+ "unit": "px"
776
+ },
777
+ "$extensions": {
778
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
779
+ }
780
+ }
781
+ }
782
+ },
783
+ "5xl": {
784
+ "font": {
785
+ "size": {
786
+ "$type": "dimension",
787
+ "$value": {
788
+ "value": 28,
789
+ "unit": "px"
790
+ },
791
+ "$extensions": {
792
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
793
+ }
794
+ }
795
+ },
796
+ "line": {
797
+ "height": {
798
+ "$type": "dimension",
799
+ "$value": {
800
+ "value": 34,
801
+ "unit": "px"
802
+ },
803
+ "$extensions": {
804
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
805
+ }
806
+ }
807
+ }
808
+ },
809
+ "6xl": {
810
+ "font": {
811
+ "size": {
812
+ "$type": "dimension",
813
+ "$value": {
814
+ "value": 34,
815
+ "unit": "px"
816
+ },
817
+ "$extensions": {
818
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
819
+ }
820
+ }
821
+ },
822
+ "line": {
823
+ "height": {
824
+ "$type": "dimension",
825
+ "$value": {
826
+ "value": 41,
827
+ "unit": "px"
828
+ },
829
+ "$extensions": {
830
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
831
+ }
832
+ }
833
+ }
834
+ },
835
+ "7xl": {
836
+ "font": {
837
+ "size": {
838
+ "$type": "dimension",
839
+ "$value": {
840
+ "value": 36,
841
+ "unit": "px"
842
+ },
843
+ "$extensions": {
844
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
845
+ }
846
+ }
847
+ },
848
+ "line": {
849
+ "height": {
850
+ "$type": "dimension",
851
+ "$value": {
852
+ "value": 44,
853
+ "unit": "px"
854
+ },
855
+ "$extensions": {
856
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
857
+ }
858
+ }
859
+ }
860
+ },
861
+ "8xl": {
862
+ "font": {
863
+ "size": {
864
+ "$type": "dimension",
865
+ "$value": {
866
+ "value": 39,
867
+ "unit": "px"
868
+ },
869
+ "$extensions": {
870
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
871
+ }
872
+ }
873
+ },
874
+ "line": {
875
+ "height": {
876
+ "$type": "dimension",
877
+ "$value": {
878
+ "value": 49,
879
+ "unit": "px"
880
+ },
881
+ "$extensions": {
882
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
883
+ }
884
+ }
885
+ }
886
+ },
887
+ "9xl": {
888
+ "font": {
889
+ "size": {
890
+ "$type": "dimension",
891
+ "$value": {
892
+ "value": 44,
893
+ "unit": "px"
894
+ },
895
+ "$extensions": {
896
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
897
+ }
898
+ }
899
+ },
900
+ "line": {
901
+ "height": {
902
+ "$type": "dimension",
903
+ "$value": {
904
+ "value": 55,
905
+ "unit": "px"
906
+ },
907
+ "$extensions": {
908
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
909
+ }
910
+ }
911
+ }
912
+ },
913
+ "10xl": {
914
+ "font": {
915
+ "size": {
916
+ "$type": "dimension",
917
+ "$value": {
918
+ "value": 40,
919
+ "unit": "px"
920
+ },
921
+ "$extensions": {
922
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
923
+ }
924
+ }
925
+ },
926
+ "line": {
927
+ "height": {
928
+ "$type": "dimension",
929
+ "$value": {
930
+ "value": 44,
931
+ "unit": "px"
932
+ },
933
+ "$extensions": {
934
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
935
+ }
936
+ }
937
+ }
938
+ },
939
+ "11xl": {
940
+ "font": {
941
+ "size": {
942
+ "$type": "dimension",
943
+ "$value": {
944
+ "value": 56,
945
+ "unit": "px"
946
+ },
947
+ "$extensions": {
948
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
949
+ }
950
+ }
951
+ },
952
+ "line": {
953
+ "height": {
954
+ "$type": "dimension",
955
+ "$value": {
956
+ "value": 60,
957
+ "unit": "px"
958
+ },
959
+ "$extensions": {
960
+ "io.atom63.derive": "calc({$value} * var(--typography-scale, 1))"
961
+ }
962
+ }
963
+ }
964
+ }
965
+ },
966
+ "a63": {
967
+ "control": {
968
+ "height": {
969
+ "xs": {
970
+ "$type": "dimension",
971
+ "$value": "{a63.space.unit}",
972
+ "$extensions": {
973
+ "io.atom63.derive": "round(nearest, calc({a63.space.unit} * 9), 1px)"
974
+ },
975
+ "$description": "Controls on a phone: the iOS height ramp (36/40/44/48/52), and every standard control label\n at body size (17), as iOS sets buttons, rows, fields and menus. xs stays at footnote size\n for badges, shortcuts and initials. Weight and press feedback stay with the design language."
976
+ },
977
+ "sm": {
978
+ "$type": "dimension",
979
+ "$value": "{a63.space.unit}",
980
+ "$extensions": {
981
+ "io.atom63.derive": "round(nearest, calc({a63.space.unit} * 10), 1px)"
982
+ }
983
+ },
984
+ "md": {
985
+ "$type": "dimension",
986
+ "$value": "{a63.space.unit}",
987
+ "$extensions": {
988
+ "io.atom63.derive": "round(nearest, calc({a63.space.unit} * 11), 1px)"
989
+ }
990
+ },
991
+ "lg": {
992
+ "$type": "dimension",
993
+ "$value": "{a63.space.unit}",
994
+ "$extensions": {
995
+ "io.atom63.derive": "round(nearest, calc({a63.space.unit} * 12), 1px)"
996
+ }
997
+ },
998
+ "xl": {
999
+ "$type": "dimension",
1000
+ "$value": "{a63.space.unit}",
1001
+ "$extensions": {
1002
+ "io.atom63.derive": "round(nearest, calc({a63.space.unit} * 13), 1px)"
1003
+ }
1004
+ }
1005
+ },
1006
+ "padding": {
1007
+ "inline": {
1008
+ "xs": {
1009
+ "$type": "dimension",
1010
+ "$value": "{a63.space.3}"
1011
+ },
1012
+ "sm": {
1013
+ "$type": "dimension",
1014
+ "$value": "{a63.space.3_5}"
1015
+ },
1016
+ "md": {
1017
+ "$type": "dimension",
1018
+ "$value": "{a63.space.4}"
1019
+ },
1020
+ "lg": {
1021
+ "$type": "dimension",
1022
+ "$value": "{a63.space.5}"
1023
+ },
1024
+ "xl": {
1025
+ "$type": "dimension",
1026
+ "$value": "{a63.space.6}"
1027
+ }
1028
+ }
1029
+ },
1030
+ "font": {
1031
+ "size": {
1032
+ "xs": {
1033
+ "$type": "dimension",
1034
+ "$value": "{typography.xs.font.size}"
1035
+ },
1036
+ "sm": {
1037
+ "$type": "dimension",
1038
+ "$value": "{typography.base.font.size}"
1039
+ },
1040
+ "md": {
1041
+ "$type": "dimension",
1042
+ "$value": "{typography.base.font.size}"
1043
+ },
1044
+ "lg": {
1045
+ "$type": "dimension",
1046
+ "$value": "{typography.base.font.size}"
1047
+ },
1048
+ "xl": {
1049
+ "$type": "dimension",
1050
+ "$value": "{typography.lg.font.size}"
1051
+ },
1052
+ "secondary": {
1053
+ "$type": "dimension",
1054
+ "$value": "{typography.sm.font.size}",
1055
+ "$description": "The secondary line under a title or label (an Item, Field or Form description, a Frame or\n ConnectedPanel description): subheadline size (15), so it stays below the 17px title. Declared\n only here; recipes fall back to --a63-control-font-size-sm, so other scopes are unchanged."
1056
+ }
1057
+ }
1058
+ },
1059
+ "icon": {
1060
+ "size": {
1061
+ "xs": {
1062
+ "$type": "dimension",
1063
+ "$value": {
1064
+ "value": 0.875,
1065
+ "unit": "rem"
1066
+ }
1067
+ },
1068
+ "sm": {
1069
+ "$type": "dimension",
1070
+ "$value": {
1071
+ "value": 1,
1072
+ "unit": "rem"
1073
+ }
1074
+ },
1075
+ "md": {
1076
+ "$type": "dimension",
1077
+ "$value": {
1078
+ "value": 1.125,
1079
+ "unit": "rem"
1080
+ }
1081
+ },
1082
+ "lg": {
1083
+ "$type": "dimension",
1084
+ "$value": {
1085
+ "value": 1.25,
1086
+ "unit": "rem"
1087
+ }
1088
+ },
1089
+ "xl": {
1090
+ "$type": "dimension",
1091
+ "$value": {
1092
+ "value": 1.375,
1093
+ "unit": "rem"
1094
+ }
1095
+ }
1096
+ }
1097
+ }
1098
+ },
1099
+ "row": {
1100
+ "padding": {
1101
+ "block": {
1102
+ "xs": {
1103
+ "$type": "dimension",
1104
+ "$value": "{a63.space.1}",
1105
+ "$extensions": {
1106
+ "io.atom63.derive": "round(nearest, {a63.space.1}, 1px)"
1107
+ }
1108
+ },
1109
+ "sm": {
1110
+ "$type": "dimension",
1111
+ "$value": "{a63.space.1_5}",
1112
+ "$extensions": {
1113
+ "io.atom63.derive": "round(nearest, {a63.space.1_5}, 1px)"
1114
+ }
1115
+ },
1116
+ "md": {
1117
+ "$type": "dimension",
1118
+ "$value": "{a63.space.2}",
1119
+ "$extensions": {
1120
+ "io.atom63.derive": "round(nearest, {a63.space.2}, 1px)"
1121
+ }
1122
+ }
1123
+ }
1124
+ }
1125
+ },
1126
+ "switch": {
1127
+ "thumb": {
1128
+ "size": {
1129
+ "$type": "dimension",
1130
+ "$value": {
1131
+ "value": 1.375,
1132
+ "unit": "rem"
1133
+ },
1134
+ "$description": "The switch of a phone (iOS 26): a 22px-tall pill knob 1.6 times as wide, on a track of about 63 by 28, as measured on a 3x iPhone screenshot. The height matches the iOS design language; the wide thumb is the phone's own."
1135
+ },
1136
+ "aspect": {
1137
+ "$type": "number",
1138
+ "$value": 1.6
1139
+ }
1140
+ }
1141
+ },
1142
+ "inset": {
1143
+ "row": {
1144
+ "min": {
1145
+ "size": {
1146
+ "$type": "dimension",
1147
+ "$value": "{a63.space.unit}",
1148
+ "$extensions": {
1149
+ "io.atom63.derive": "round(nearest, calc({a63.space.unit} * 13), 1px)"
1150
+ },
1151
+ "$description": "The row of a phone's grouped list (ItemGroup variant=\"inset\", default and sm rows): 52px tall, as iOS 26 Settings and a 3x reference capture both measure (51-52pt). Declared only here; the Item recipe falls back to its control-height floor elsewhere."
1152
+ }
1153
+ }
1154
+ },
1155
+ "group": {
1156
+ "radius": {
1157
+ "$type": "dimension",
1158
+ "$value": "{radius.2xl}",
1159
+ "$description": "The corner of a phone's grouped-list card (ItemGroup variant=\"inset\"): the 2xl step (18px at defaults), after a 3x reference capture that fits a 19pt corner. Follows the radius axis. Declared only here; the Item recipe falls back to --radius-lg elsewhere."
1160
+ }
1161
+ }
1162
+ }
1163
+ }
1164
+ }
1165
+ ],
1166
+ "$extensions": {
1167
+ "io.atom63.css": {
1168
+ "selector": "[data-a63-form-factor='phone'],\n[data-a63-form-factor='phone'] :is([data-a63-density], [data-density])"
534
1169
  }
535
1170
  }
536
1171
  }
@@ -548,6 +1183,9 @@
548
1183
  {
549
1184
  "$ref": "#/sets/05-is-data-a63-density-comfortable-data-density-com"
550
1185
  },
1186
+ {
1187
+ "$ref": "#/sets/05a-density-scope"
1188
+ },
551
1189
  {
552
1190
  "$ref": "#/sets/06-media-pointer-coarse-root"
553
1191
  },
@@ -559,6 +1197,9 @@
559
1197
  },
560
1198
  {
561
1199
  "$ref": "#/sets/09-is-data-a63-design-language-ios-data-design-lang"
1200
+ },
1201
+ {
1202
+ "$ref": "#/sets/10-data-a63-form-factor-phone"
562
1203
  }
563
1204
  ],
564
1205
  "$extensions": {