@primer/primitives 11.1.0 → 11.2.0-rc.1012e204

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 (115) hide show
  1. package/dist/build/schemas/alphaValue.d.ts +1 -1
  2. package/dist/build/schemas/alphaValue.js +8 -3
  3. package/dist/build/schemas/baseToken.d.ts +2 -8
  4. package/dist/build/schemas/borderToken.d.ts +30 -47
  5. package/dist/build/schemas/collections.d.ts +2 -2
  6. package/dist/build/schemas/collections.js +16 -6
  7. package/dist/build/schemas/colorHexValue.d.ts +1 -1
  8. package/dist/build/schemas/colorHexValue.js +8 -3
  9. package/dist/build/schemas/colorToken.d.ts +81 -789
  10. package/dist/build/schemas/colorToken.js +1 -1
  11. package/dist/build/schemas/cubicBezierToken.d.ts +4 -15
  12. package/dist/build/schemas/designToken.d.ts +1 -1
  13. package/dist/build/schemas/dimensionToken.d.ts +8 -53
  14. package/dist/build/schemas/dimensionValue.d.ts +1 -1
  15. package/dist/build/schemas/dimensionValue.js +8 -3
  16. package/dist/build/schemas/durationToken.d.ts +4 -15
  17. package/dist/build/schemas/durationValue.d.ts +1 -1
  18. package/dist/build/schemas/durationValue.js +8 -3
  19. package/dist/build/schemas/fontFamilyToken.d.ts +8 -47
  20. package/dist/build/schemas/fontWeightToken.d.ts +8 -47
  21. package/dist/build/schemas/fontWeightValue.d.ts +1 -1
  22. package/dist/build/schemas/fontWeightValue.js +8 -3
  23. package/dist/build/schemas/gradientToken.d.ts +8 -53
  24. package/dist/build/schemas/numberToken.d.ts +9 -64
  25. package/dist/build/schemas/referenceValue.d.ts +1 -1
  26. package/dist/build/schemas/referenceValue.js +8 -3
  27. package/dist/build/schemas/scopes.d.ts +1 -1
  28. package/dist/build/schemas/scopes.js +8 -3
  29. package/dist/build/schemas/shadowToken.d.ts +210 -2136
  30. package/dist/build/schemas/shadowToken.js +0 -9
  31. package/dist/build/schemas/stringToken.d.ts +4 -15
  32. package/dist/build/schemas/tokenName.d.ts +1 -1
  33. package/dist/build/schemas/tokenName.js +8 -3
  34. package/dist/build/schemas/transitionToken.d.ts +8 -35
  35. package/dist/build/schemas/typographyToken.d.ts +14 -55
  36. package/dist/build/schemas/validTokenType.d.ts +1 -1
  37. package/dist/build/schemas/validTokenType.js +8 -3
  38. package/dist/build/schemas/viewportRangeToken.d.ts +4 -15
  39. package/dist/build/types/tokenBuildInput.d.ts +2 -0
  40. package/dist/build/utilities/log.js +0 -3
  41. package/dist/css/functional/themes/dark-colorblind-high-contrast.css +10 -0
  42. package/dist/css/functional/themes/dark-colorblind.css +10 -0
  43. package/dist/css/functional/themes/dark-dimmed-high-contrast.css +10 -0
  44. package/dist/css/functional/themes/dark-dimmed.css +10 -0
  45. package/dist/css/functional/themes/dark-high-contrast.css +10 -0
  46. package/dist/css/functional/themes/dark-tritanopia-high-contrast.css +10 -0
  47. package/dist/css/functional/themes/dark-tritanopia.css +10 -0
  48. package/dist/css/functional/themes/dark.css +10 -0
  49. package/dist/css/functional/themes/light-colorblind-high-contrast.css +10 -0
  50. package/dist/css/functional/themes/light-colorblind.css +10 -0
  51. package/dist/css/functional/themes/light-high-contrast.css +10 -0
  52. package/dist/css/functional/themes/light-tritanopia-high-contrast.css +10 -0
  53. package/dist/css/functional/themes/light-tritanopia.css +10 -0
  54. package/dist/css/functional/themes/light.css +10 -0
  55. package/dist/docs/functional/themes/dark-colorblind-high-contrast.json +349 -0
  56. package/dist/docs/functional/themes/dark-colorblind.json +349 -0
  57. package/dist/docs/functional/themes/dark-dimmed-high-contrast.json +345 -0
  58. package/dist/docs/functional/themes/dark-dimmed.json +345 -0
  59. package/dist/docs/functional/themes/dark-high-contrast.json +345 -0
  60. package/dist/docs/functional/themes/dark-tritanopia-high-contrast.json +347 -0
  61. package/dist/docs/functional/themes/dark-tritanopia.json +349 -0
  62. package/dist/docs/functional/themes/dark.json +345 -0
  63. package/dist/docs/functional/themes/light-colorblind-high-contrast.json +347 -0
  64. package/dist/docs/functional/themes/light-colorblind.json +347 -0
  65. package/dist/docs/functional/themes/light-high-contrast.json +345 -0
  66. package/dist/docs/functional/themes/light-tritanopia-high-contrast.json +347 -0
  67. package/dist/docs/functional/themes/light-tritanopia.json +347 -0
  68. package/dist/docs/functional/themes/light.json +345 -0
  69. package/dist/figma/figma.json +4 -14
  70. package/dist/figma/themes/dark-colorblind.json +97 -0
  71. package/dist/figma/themes/dark-dimmed.json +95 -0
  72. package/dist/figma/themes/dark-high-contrast.json +95 -0
  73. package/dist/figma/themes/dark-tritanopia.json +97 -0
  74. package/dist/figma/themes/dark.json +95 -0
  75. package/dist/figma/themes/light-colorblind.json +96 -0
  76. package/dist/figma/themes/light-high-contrast.json +95 -0
  77. package/dist/figma/themes/light-tritanopia.json +96 -0
  78. package/dist/figma/themes/light.json +95 -0
  79. package/dist/internalCss/dark-colorblind-high-contrast.css +10 -0
  80. package/dist/internalCss/dark-colorblind.css +10 -0
  81. package/dist/internalCss/dark-dimmed-high-contrast.css +10 -0
  82. package/dist/internalCss/dark-dimmed.css +10 -0
  83. package/dist/internalCss/dark-high-contrast.css +10 -0
  84. package/dist/internalCss/dark-tritanopia-high-contrast.css +10 -0
  85. package/dist/internalCss/dark-tritanopia.css +10 -0
  86. package/dist/internalCss/dark.css +10 -0
  87. package/dist/internalCss/light-colorblind-high-contrast.css +10 -0
  88. package/dist/internalCss/light-colorblind.css +10 -0
  89. package/dist/internalCss/light-high-contrast.css +10 -0
  90. package/dist/internalCss/light-tritanopia-high-contrast.css +10 -0
  91. package/dist/internalCss/light-tritanopia.css +10 -0
  92. package/dist/internalCss/light.css +10 -0
  93. package/dist/styleLint/functional/themes/dark-colorblind-high-contrast.json +349 -0
  94. package/dist/styleLint/functional/themes/dark-colorblind.json +349 -0
  95. package/dist/styleLint/functional/themes/dark-dimmed-high-contrast.json +345 -0
  96. package/dist/styleLint/functional/themes/dark-dimmed.json +345 -0
  97. package/dist/styleLint/functional/themes/dark-high-contrast.json +345 -0
  98. package/dist/styleLint/functional/themes/dark-tritanopia-high-contrast.json +347 -0
  99. package/dist/styleLint/functional/themes/dark-tritanopia.json +349 -0
  100. package/dist/styleLint/functional/themes/dark.json +345 -0
  101. package/dist/styleLint/functional/themes/light-colorblind-high-contrast.json +347 -0
  102. package/dist/styleLint/functional/themes/light-colorblind.json +347 -0
  103. package/dist/styleLint/functional/themes/light-high-contrast.json +345 -0
  104. package/dist/styleLint/functional/themes/light-tritanopia-high-contrast.json +347 -0
  105. package/dist/styleLint/functional/themes/light-tritanopia.json +347 -0
  106. package/dist/styleLint/functional/themes/light.json +345 -0
  107. package/package.json +17 -17
  108. package/src/tokens/functional/color/bgColor.json5 +48 -0
  109. package/src/tokens/functional/color/borderColor.json5 +64 -0
  110. package/src/tokens/functional/color/fgColor.json5 +14 -0
  111. package/dist/figma/themes/dark-colorblind-high-contrast.json +0 -14341
  112. package/dist/figma/themes/dark-dimmed-high-contrast.json +0 -14335
  113. package/dist/figma/themes/dark-tritanopia-high-contrast.json +0 -14337
  114. package/dist/figma/themes/light-colorblind-high-contrast.json +0 -14321
  115. package/dist/figma/themes/light-tritanopia-high-contrast.json +0 -14320
@@ -998,6 +998,130 @@
998
998
  "attributes": {},
999
999
  "path": ["bgColor", "done", "muted"]
1000
1000
  },
1001
+ "bgColor-draft-emphasis": {
1002
+ "key": "{bgColor.draft.emphasis}",
1003
+ "$value": "#59636e",
1004
+ "$type": "color",
1005
+ "$extensions": {
1006
+ "org.primer.figma": {
1007
+ "collection": "mode",
1008
+ "group": "semantic",
1009
+ "scopes": ["bgColor"],
1010
+ "codeSyntax": {
1011
+ "web": "var(--bgColor-draft-emphasis)"
1012
+ }
1013
+ }
1014
+ },
1015
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1016
+ "isSource": true,
1017
+ "original": {
1018
+ "$value": "{bgColor.neutral.emphasis}",
1019
+ "$type": "color",
1020
+ "$extensions": {
1021
+ "org.primer.figma": {
1022
+ "collection": "mode",
1023
+ "group": "semantic",
1024
+ "scopes": ["bgColor"],
1025
+ "codeSyntax": {
1026
+ "web": "var(--bgColor-draft-emphasis)"
1027
+ }
1028
+ }
1029
+ },
1030
+ "key": "{bgColor.draft.emphasis}"
1031
+ },
1032
+ "name": "bgColor-draft-emphasis",
1033
+ "attributes": {},
1034
+ "path": ["bgColor", "draft", "emphasis"]
1035
+ },
1036
+ "bgColor-draft-muted": {
1037
+ "key": "{bgColor.draft.muted}",
1038
+ "$value": "#818b981f",
1039
+ "$type": "color",
1040
+ "$extensions": {
1041
+ "org.primer.figma": {
1042
+ "collection": "mode",
1043
+ "group": "semantic",
1044
+ "scopes": ["bgColor"],
1045
+ "codeSyntax": {
1046
+ "web": "var(--bgColor-draft-muted)"
1047
+ }
1048
+ },
1049
+ "org.primer.overrides": {
1050
+ "light-tritanopia": "#818b981f",
1051
+ "light-tritanopia-high-contrast": "#818b981f",
1052
+ "dark-tritanopia": {
1053
+ "$value": "#818b981f",
1054
+ "alpha": 0.1,
1055
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1056
+ "isSource": true,
1057
+ "$type": "color"
1058
+ },
1059
+ "light-protanopia-deuteranopia": "#818b981f",
1060
+ "light-protanopia-deuteranopia-high-contrast": "#818b981f",
1061
+ "dark-protanopia-deuteranopia": {
1062
+ "$value": "#818b981f",
1063
+ "alpha": 0.1,
1064
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1065
+ "isSource": true,
1066
+ "$type": "color"
1067
+ },
1068
+ "dark-protanopia-deuteranopia-high-contrast": {
1069
+ "$value": "#818b981f",
1070
+ "alpha": 0.1,
1071
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1072
+ "isSource": true,
1073
+ "$type": "color"
1074
+ }
1075
+ }
1076
+ },
1077
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1078
+ "isSource": true,
1079
+ "original": {
1080
+ "$value": "{bgColor.neutral.muted}",
1081
+ "$type": "color",
1082
+ "$extensions": {
1083
+ "org.primer.figma": {
1084
+ "collection": "mode",
1085
+ "group": "semantic",
1086
+ "scopes": ["bgColor"],
1087
+ "codeSyntax": {
1088
+ "web": "var(--bgColor-draft-muted)"
1089
+ }
1090
+ },
1091
+ "org.primer.overrides": {
1092
+ "light-tritanopia": "{bgColor.neutral.muted}",
1093
+ "light-tritanopia-high-contrast": "{bgColor.neutral.muted}",
1094
+ "dark-tritanopia": {
1095
+ "$value": "{bgColor.neutral.muted}",
1096
+ "alpha": 0.1,
1097
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1098
+ "isSource": true,
1099
+ "$type": "color"
1100
+ },
1101
+ "light-protanopia-deuteranopia": "{bgColor.neutral.muted}",
1102
+ "light-protanopia-deuteranopia-high-contrast": "{bgColor.neutral.muted}",
1103
+ "dark-protanopia-deuteranopia": {
1104
+ "$value": "{bgColor.neutral.muted}",
1105
+ "alpha": 0.1,
1106
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1107
+ "isSource": true,
1108
+ "$type": "color"
1109
+ },
1110
+ "dark-protanopia-deuteranopia-high-contrast": {
1111
+ "$value": "{bgColor.neutral.muted}",
1112
+ "alpha": 0.1,
1113
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1114
+ "isSource": true,
1115
+ "$type": "color"
1116
+ }
1117
+ }
1118
+ },
1119
+ "key": "{bgColor.draft.muted}"
1120
+ },
1121
+ "name": "bgColor-draft-muted",
1122
+ "attributes": {},
1123
+ "path": ["bgColor", "draft", "muted"]
1124
+ },
1001
1125
  "bgColor-emphasis": {
1002
1126
  "key": "{bgColor.emphasis}",
1003
1127
  "$value": "#25292e",
@@ -3693,6 +3817,194 @@
3693
3817
  "attributes": {},
3694
3818
  "path": ["borderColor", "done", "muted"]
3695
3819
  },
3820
+ "borderColor-draft-emphasis": {
3821
+ "key": "{borderColor.draft.emphasis}",
3822
+ "$value": "#59636e",
3823
+ "$type": "color",
3824
+ "$extensions": {
3825
+ "org.primer.figma": {
3826
+ "collection": "mode",
3827
+ "group": "semantic",
3828
+ "scopes": ["borderColor"],
3829
+ "codeSyntax": {
3830
+ "web": "var(--borderColor-draft-emphasis)"
3831
+ }
3832
+ }
3833
+ },
3834
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3835
+ "isSource": true,
3836
+ "original": {
3837
+ "$value": "{borderColor.neutral.emphasis}",
3838
+ "$type": "color",
3839
+ "$extensions": {
3840
+ "org.primer.figma": {
3841
+ "collection": "mode",
3842
+ "group": "semantic",
3843
+ "scopes": ["borderColor"],
3844
+ "codeSyntax": {
3845
+ "web": "var(--borderColor-draft-emphasis)"
3846
+ }
3847
+ }
3848
+ },
3849
+ "key": "{borderColor.draft.emphasis}"
3850
+ },
3851
+ "name": "borderColor-draft-emphasis",
3852
+ "attributes": {},
3853
+ "path": ["borderColor", "draft", "emphasis"]
3854
+ },
3855
+ "borderColor-draft-muted": {
3856
+ "key": "{borderColor.draft.muted}",
3857
+ "$value": "#d1d9e066",
3858
+ "$type": "color",
3859
+ "$extensions": {
3860
+ "org.primer.figma": {
3861
+ "collection": "mode",
3862
+ "group": "semantic",
3863
+ "scopes": ["borderColor"],
3864
+ "codeSyntax": {
3865
+ "web": "var(--borderColor-draft-muted) */"
3866
+ }
3867
+ },
3868
+ "org.primer.overrides": {
3869
+ "dark-tritanopia": {
3870
+ "$value": "#d1d9e0",
3871
+ "alpha": 0.4,
3872
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3873
+ "isSource": true,
3874
+ "$type": "color"
3875
+ },
3876
+ "dark-tritanopia-high-contrast": {
3877
+ "$value": "#d1d9e0",
3878
+ "alpha": 1,
3879
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3880
+ "isSource": true,
3881
+ "$type": "color"
3882
+ },
3883
+ "light-tritanopia": {
3884
+ "$value": "#d1d9e0",
3885
+ "alpha": 0.4,
3886
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3887
+ "isSource": true,
3888
+ "$type": "color"
3889
+ },
3890
+ "light-tritanopia-high-contrast": {
3891
+ "$value": "#d1d9e0",
3892
+ "alpha": 1,
3893
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3894
+ "isSource": true,
3895
+ "$type": "color"
3896
+ },
3897
+ "dark-protanopia-deuteranopia": {
3898
+ "$value": "#d1d9e0",
3899
+ "alpha": 0.4,
3900
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3901
+ "isSource": true,
3902
+ "$type": "color"
3903
+ },
3904
+ "dark-protanopia-deuteranopia-high-contrast": {
3905
+ "$value": "#d1d9e0",
3906
+ "alpha": 1,
3907
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3908
+ "isSource": true,
3909
+ "$type": "color"
3910
+ },
3911
+ "light-protanopia-deuteranopia": {
3912
+ "$value": "#d1d9e0",
3913
+ "alpha": 0.4,
3914
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3915
+ "isSource": true,
3916
+ "$type": "color"
3917
+ },
3918
+ "light-protanopia-deuteranopia-high-contrast": {
3919
+ "$value": "#d1d9e0",
3920
+ "alpha": 1,
3921
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3922
+ "isSource": true,
3923
+ "$type": "color"
3924
+ }
3925
+ }
3926
+ },
3927
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3928
+ "isSource": true,
3929
+ "alpha": 0.4,
3930
+ "original": {
3931
+ "$value": "{borderColor.default}",
3932
+ "$type": "color",
3933
+ "$extensions": {
3934
+ "org.primer.figma": {
3935
+ "collection": "mode",
3936
+ "group": "semantic",
3937
+ "scopes": ["borderColor"],
3938
+ "codeSyntax": {
3939
+ "web": "var(--borderColor-draft-muted) */"
3940
+ }
3941
+ },
3942
+ "org.primer.overrides": {
3943
+ "dark-tritanopia": {
3944
+ "$value": "{borderColor.default}",
3945
+ "alpha": 0.4,
3946
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3947
+ "isSource": true,
3948
+ "$type": "color"
3949
+ },
3950
+ "dark-tritanopia-high-contrast": {
3951
+ "$value": "{borderColor.default}",
3952
+ "alpha": 1,
3953
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3954
+ "isSource": true,
3955
+ "$type": "color"
3956
+ },
3957
+ "light-tritanopia": {
3958
+ "$value": "{borderColor.default}",
3959
+ "alpha": 0.4,
3960
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3961
+ "isSource": true,
3962
+ "$type": "color"
3963
+ },
3964
+ "light-tritanopia-high-contrast": {
3965
+ "$value": "{borderColor.default}",
3966
+ "alpha": 1,
3967
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3968
+ "isSource": true,
3969
+ "$type": "color"
3970
+ },
3971
+ "dark-protanopia-deuteranopia": {
3972
+ "$value": "{borderColor.default}",
3973
+ "alpha": 0.4,
3974
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3975
+ "isSource": true,
3976
+ "$type": "color"
3977
+ },
3978
+ "dark-protanopia-deuteranopia-high-contrast": {
3979
+ "$value": "{borderColor.default}",
3980
+ "alpha": 1,
3981
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3982
+ "isSource": true,
3983
+ "$type": "color"
3984
+ },
3985
+ "light-protanopia-deuteranopia": {
3986
+ "$value": "{borderColor.default}",
3987
+ "alpha": 0.4,
3988
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3989
+ "isSource": true,
3990
+ "$type": "color"
3991
+ },
3992
+ "light-protanopia-deuteranopia-high-contrast": {
3993
+ "$value": "{borderColor.default}",
3994
+ "alpha": 1,
3995
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3996
+ "isSource": true,
3997
+ "$type": "color"
3998
+ }
3999
+ }
4000
+ },
4001
+ "alpha": 0.4,
4002
+ "key": "{borderColor.draft.muted}"
4003
+ },
4004
+ "name": "borderColor-draft-muted",
4005
+ "attributes": {},
4006
+ "path": ["borderColor", "draft", "muted"]
4007
+ },
3696
4008
  "borderColor-emphasis": {
3697
4009
  "key": "{borderColor.emphasis}",
3698
4010
  "$value": "#818b98",
@@ -35127,6 +35439,41 @@
35127
35439
  "attributes": {},
35128
35440
  "path": ["fgColor", "done"]
35129
35441
  },
35442
+ "fgColor-draft": {
35443
+ "key": "{fgColor.draft}",
35444
+ "$value": "#59636e",
35445
+ "$type": "color",
35446
+ "$extensions": {
35447
+ "org.primer.figma": {
35448
+ "collection": "mode",
35449
+ "group": "semantic",
35450
+ "scopes": ["fgColor"],
35451
+ "codeSyntax": {
35452
+ "web": "var(--fgColor-draft)"
35453
+ }
35454
+ }
35455
+ },
35456
+ "filePath": "src/tokens/functional/color/fgColor.json5",
35457
+ "isSource": true,
35458
+ "original": {
35459
+ "$value": "{fgColor.neutral}",
35460
+ "$type": "color",
35461
+ "$extensions": {
35462
+ "org.primer.figma": {
35463
+ "collection": "mode",
35464
+ "group": "semantic",
35465
+ "scopes": ["fgColor"],
35466
+ "codeSyntax": {
35467
+ "web": "var(--fgColor-draft)"
35468
+ }
35469
+ }
35470
+ },
35471
+ "key": "{fgColor.draft}"
35472
+ },
35473
+ "name": "fgColor-draft",
35474
+ "attributes": {},
35475
+ "path": ["fgColor", "draft"]
35476
+ },
35130
35477
  "fgColor-link": {
35131
35478
  "key": "{fgColor.link}",
35132
35479
  "$value": "#0969da",