@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
@@ -1008,6 +1008,130 @@
1008
1008
  "attributes": {},
1009
1009
  "path": ["bgColor", "done", "muted"]
1010
1010
  },
1011
+ "bgColor-draft-emphasis": {
1012
+ "key": "{bgColor.draft.emphasis}",
1013
+ "$value": "#3d444d",
1014
+ "$type": "color",
1015
+ "$extensions": {
1016
+ "org.primer.figma": {
1017
+ "collection": "mode",
1018
+ "group": "semantic",
1019
+ "scopes": ["bgColor"],
1020
+ "codeSyntax": {
1021
+ "web": "var(--bgColor-draft-emphasis)"
1022
+ }
1023
+ }
1024
+ },
1025
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1026
+ "isSource": true,
1027
+ "original": {
1028
+ "$value": "{bgColor.neutral.emphasis}",
1029
+ "$type": "color",
1030
+ "$extensions": {
1031
+ "org.primer.figma": {
1032
+ "collection": "mode",
1033
+ "group": "semantic",
1034
+ "scopes": ["bgColor"],
1035
+ "codeSyntax": {
1036
+ "web": "var(--bgColor-draft-emphasis)"
1037
+ }
1038
+ }
1039
+ },
1040
+ "key": "{bgColor.draft.emphasis}"
1041
+ },
1042
+ "name": "bgColor-draft-emphasis",
1043
+ "attributes": {},
1044
+ "path": ["bgColor", "draft", "emphasis"]
1045
+ },
1046
+ "bgColor-draft-muted": {
1047
+ "key": "{bgColor.draft.muted}",
1048
+ "$value": "#212830",
1049
+ "$type": "color",
1050
+ "$extensions": {
1051
+ "org.primer.figma": {
1052
+ "collection": "mode",
1053
+ "group": "semantic",
1054
+ "scopes": ["bgColor"],
1055
+ "codeSyntax": {
1056
+ "web": "var(--bgColor-draft-muted)"
1057
+ }
1058
+ },
1059
+ "org.primer.overrides": {
1060
+ "light-tritanopia": "#212830",
1061
+ "light-tritanopia-high-contrast": "#212830",
1062
+ "dark-tritanopia": {
1063
+ "$value": "#212830",
1064
+ "alpha": 0.1,
1065
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1066
+ "isSource": true,
1067
+ "$type": "color"
1068
+ },
1069
+ "light-protanopia-deuteranopia": "#212830",
1070
+ "light-protanopia-deuteranopia-high-contrast": "#212830",
1071
+ "dark-protanopia-deuteranopia": {
1072
+ "$value": "#212830",
1073
+ "alpha": 0.1,
1074
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1075
+ "isSource": true,
1076
+ "$type": "color"
1077
+ },
1078
+ "dark-protanopia-deuteranopia-high-contrast": {
1079
+ "$value": "#212830",
1080
+ "alpha": 0.1,
1081
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1082
+ "isSource": true,
1083
+ "$type": "color"
1084
+ }
1085
+ }
1086
+ },
1087
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1088
+ "isSource": true,
1089
+ "original": {
1090
+ "$value": "{bgColor.neutral.muted}",
1091
+ "$type": "color",
1092
+ "$extensions": {
1093
+ "org.primer.figma": {
1094
+ "collection": "mode",
1095
+ "group": "semantic",
1096
+ "scopes": ["bgColor"],
1097
+ "codeSyntax": {
1098
+ "web": "var(--bgColor-draft-muted)"
1099
+ }
1100
+ },
1101
+ "org.primer.overrides": {
1102
+ "light-tritanopia": "{bgColor.neutral.muted}",
1103
+ "light-tritanopia-high-contrast": "{bgColor.neutral.muted}",
1104
+ "dark-tritanopia": {
1105
+ "$value": "{bgColor.neutral.muted}",
1106
+ "alpha": 0.1,
1107
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1108
+ "isSource": true,
1109
+ "$type": "color"
1110
+ },
1111
+ "light-protanopia-deuteranopia": "{bgColor.neutral.muted}",
1112
+ "light-protanopia-deuteranopia-high-contrast": "{bgColor.neutral.muted}",
1113
+ "dark-protanopia-deuteranopia": {
1114
+ "$value": "{bgColor.neutral.muted}",
1115
+ "alpha": 0.1,
1116
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1117
+ "isSource": true,
1118
+ "$type": "color"
1119
+ },
1120
+ "dark-protanopia-deuteranopia-high-contrast": {
1121
+ "$value": "{bgColor.neutral.muted}",
1122
+ "alpha": 0.1,
1123
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1124
+ "isSource": true,
1125
+ "$type": "color"
1126
+ }
1127
+ }
1128
+ },
1129
+ "key": "{bgColor.draft.muted}"
1130
+ },
1131
+ "name": "bgColor-draft-muted",
1132
+ "attributes": {},
1133
+ "path": ["bgColor", "draft", "muted"]
1134
+ },
1011
1135
  "bgColor-emphasis": {
1012
1136
  "key": "{bgColor.emphasis}",
1013
1137
  "$value": "#3d444d",
@@ -3709,6 +3833,194 @@
3709
3833
  "attributes": {},
3710
3834
  "path": ["borderColor", "done", "muted"]
3711
3835
  },
3836
+ "borderColor-draft-emphasis": {
3837
+ "key": "{borderColor.draft.emphasis}",
3838
+ "$value": "#b7bdc8",
3839
+ "$type": "color",
3840
+ "$extensions": {
3841
+ "org.primer.figma": {
3842
+ "collection": "mode",
3843
+ "group": "semantic",
3844
+ "scopes": ["borderColor"],
3845
+ "codeSyntax": {
3846
+ "web": "var(--borderColor-draft-emphasis)"
3847
+ }
3848
+ }
3849
+ },
3850
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3851
+ "isSource": true,
3852
+ "original": {
3853
+ "$value": "{borderColor.neutral.emphasis}",
3854
+ "$type": "color",
3855
+ "$extensions": {
3856
+ "org.primer.figma": {
3857
+ "collection": "mode",
3858
+ "group": "semantic",
3859
+ "scopes": ["borderColor"],
3860
+ "codeSyntax": {
3861
+ "web": "var(--borderColor-draft-emphasis)"
3862
+ }
3863
+ }
3864
+ },
3865
+ "key": "{borderColor.draft.emphasis}"
3866
+ },
3867
+ "name": "borderColor-draft-emphasis",
3868
+ "attributes": {},
3869
+ "path": ["borderColor", "draft", "emphasis"]
3870
+ },
3871
+ "borderColor-draft-muted": {
3872
+ "key": "{borderColor.draft.muted}",
3873
+ "$value": "#b7bdc8",
3874
+ "$type": "color",
3875
+ "$extensions": {
3876
+ "org.primer.figma": {
3877
+ "collection": "mode",
3878
+ "group": "semantic",
3879
+ "scopes": ["borderColor"],
3880
+ "codeSyntax": {
3881
+ "web": "var(--borderColor-draft-muted) */"
3882
+ }
3883
+ },
3884
+ "org.primer.overrides": {
3885
+ "dark-tritanopia": {
3886
+ "$value": "#b7bdc8",
3887
+ "alpha": 0.4,
3888
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3889
+ "isSource": true,
3890
+ "$type": "color"
3891
+ },
3892
+ "dark-tritanopia-high-contrast": {
3893
+ "$value": "#b7bdc8",
3894
+ "alpha": 1,
3895
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3896
+ "isSource": true,
3897
+ "$type": "color"
3898
+ },
3899
+ "light-tritanopia": {
3900
+ "$value": "#b7bdc8",
3901
+ "alpha": 0.4,
3902
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3903
+ "isSource": true,
3904
+ "$type": "color"
3905
+ },
3906
+ "light-tritanopia-high-contrast": {
3907
+ "$value": "#b7bdc8",
3908
+ "alpha": 1,
3909
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3910
+ "isSource": true,
3911
+ "$type": "color"
3912
+ },
3913
+ "dark-protanopia-deuteranopia": {
3914
+ "$value": "#b7bdc8",
3915
+ "alpha": 0.4,
3916
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3917
+ "isSource": true,
3918
+ "$type": "color"
3919
+ },
3920
+ "dark-protanopia-deuteranopia-high-contrast": {
3921
+ "$value": "#b7bdc8",
3922
+ "alpha": 1,
3923
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3924
+ "isSource": true,
3925
+ "$type": "color"
3926
+ },
3927
+ "light-protanopia-deuteranopia": {
3928
+ "$value": "#b7bdc8",
3929
+ "alpha": 0.4,
3930
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3931
+ "isSource": true,
3932
+ "$type": "color"
3933
+ },
3934
+ "light-protanopia-deuteranopia-high-contrast": {
3935
+ "$value": "#b7bdc8",
3936
+ "alpha": 1,
3937
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3938
+ "isSource": true,
3939
+ "$type": "color"
3940
+ }
3941
+ }
3942
+ },
3943
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3944
+ "isSource": true,
3945
+ "alpha": 1,
3946
+ "original": {
3947
+ "$value": "{borderColor.default}",
3948
+ "$type": "color",
3949
+ "$extensions": {
3950
+ "org.primer.figma": {
3951
+ "collection": "mode",
3952
+ "group": "semantic",
3953
+ "scopes": ["borderColor"],
3954
+ "codeSyntax": {
3955
+ "web": "var(--borderColor-draft-muted) */"
3956
+ }
3957
+ },
3958
+ "org.primer.overrides": {
3959
+ "dark-tritanopia": {
3960
+ "$value": "{borderColor.default}",
3961
+ "alpha": 0.4,
3962
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3963
+ "isSource": true,
3964
+ "$type": "color"
3965
+ },
3966
+ "dark-tritanopia-high-contrast": {
3967
+ "$value": "{borderColor.default}",
3968
+ "alpha": 1,
3969
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3970
+ "isSource": true,
3971
+ "$type": "color"
3972
+ },
3973
+ "light-tritanopia": {
3974
+ "$value": "{borderColor.default}",
3975
+ "alpha": 0.4,
3976
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3977
+ "isSource": true,
3978
+ "$type": "color"
3979
+ },
3980
+ "light-tritanopia-high-contrast": {
3981
+ "$value": "{borderColor.default}",
3982
+ "alpha": 1,
3983
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3984
+ "isSource": true,
3985
+ "$type": "color"
3986
+ },
3987
+ "dark-protanopia-deuteranopia": {
3988
+ "$value": "{borderColor.default}",
3989
+ "alpha": 0.4,
3990
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3991
+ "isSource": true,
3992
+ "$type": "color"
3993
+ },
3994
+ "dark-protanopia-deuteranopia-high-contrast": {
3995
+ "$value": "{borderColor.default}",
3996
+ "alpha": 1,
3997
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3998
+ "isSource": true,
3999
+ "$type": "color"
4000
+ },
4001
+ "light-protanopia-deuteranopia": {
4002
+ "$value": "{borderColor.default}",
4003
+ "alpha": 0.4,
4004
+ "filePath": "src/tokens/functional/color/borderColor.json5",
4005
+ "isSource": true,
4006
+ "$type": "color"
4007
+ },
4008
+ "light-protanopia-deuteranopia-high-contrast": {
4009
+ "$value": "{borderColor.default}",
4010
+ "alpha": 1,
4011
+ "filePath": "src/tokens/functional/color/borderColor.json5",
4012
+ "isSource": true,
4013
+ "$type": "color"
4014
+ }
4015
+ }
4016
+ },
4017
+ "alpha": 1,
4018
+ "key": "{borderColor.draft.muted}"
4019
+ },
4020
+ "name": "borderColor-draft-muted",
4021
+ "attributes": {},
4022
+ "path": ["borderColor", "draft", "muted"]
4023
+ },
3712
4024
  "borderColor-emphasis": {
3713
4025
  "key": "{borderColor.emphasis}",
3714
4026
  "$value": "#b7bdc8",
@@ -35159,6 +35471,41 @@
35159
35471
  "attributes": {},
35160
35472
  "path": ["fgColor", "done"]
35161
35473
  },
35474
+ "fgColor-draft": {
35475
+ "key": "{fgColor.draft}",
35476
+ "$value": "#d1d7e0",
35477
+ "$type": "color",
35478
+ "$extensions": {
35479
+ "org.primer.figma": {
35480
+ "collection": "mode",
35481
+ "group": "semantic",
35482
+ "scopes": ["fgColor"],
35483
+ "codeSyntax": {
35484
+ "web": "var(--fgColor-draft)"
35485
+ }
35486
+ }
35487
+ },
35488
+ "filePath": "src/tokens/functional/color/fgColor.json5",
35489
+ "isSource": true,
35490
+ "original": {
35491
+ "$value": "{fgColor.neutral}",
35492
+ "$type": "color",
35493
+ "$extensions": {
35494
+ "org.primer.figma": {
35495
+ "collection": "mode",
35496
+ "group": "semantic",
35497
+ "scopes": ["fgColor"],
35498
+ "codeSyntax": {
35499
+ "web": "var(--fgColor-draft)"
35500
+ }
35501
+ }
35502
+ },
35503
+ "key": "{fgColor.draft}"
35504
+ },
35505
+ "name": "fgColor-draft",
35506
+ "attributes": {},
35507
+ "path": ["fgColor", "draft"]
35508
+ },
35162
35509
  "fgColor-link": {
35163
35510
  "key": "{fgColor.link}",
35164
35511
  "$value": "#74b9ff",