@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",
@@ -3691,6 +3815,192 @@
3691
3815
  "attributes": {},
3692
3816
  "path": ["borderColor", "done", "muted"]
3693
3817
  },
3818
+ "borderColor-draft-emphasis": {
3819
+ "key": "{borderColor.draft.emphasis}",
3820
+ "$value": "#59636e",
3821
+ "$type": "color",
3822
+ "$extensions": {
3823
+ "org.primer.figma": {
3824
+ "collection": "mode",
3825
+ "group": "semantic",
3826
+ "scopes": ["borderColor"],
3827
+ "codeSyntax": {
3828
+ "web": "var(--borderColor-draft-emphasis)"
3829
+ }
3830
+ }
3831
+ },
3832
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3833
+ "isSource": true,
3834
+ "original": {
3835
+ "$value": "{borderColor.neutral.emphasis}",
3836
+ "$type": "color",
3837
+ "$extensions": {
3838
+ "org.primer.figma": {
3839
+ "collection": "mode",
3840
+ "group": "semantic",
3841
+ "scopes": ["borderColor"],
3842
+ "codeSyntax": {
3843
+ "web": "var(--borderColor-draft-emphasis)"
3844
+ }
3845
+ }
3846
+ },
3847
+ "key": "{borderColor.draft.emphasis}"
3848
+ },
3849
+ "name": "borderColor-draft-emphasis",
3850
+ "attributes": {},
3851
+ "path": ["borderColor", "draft", "emphasis"]
3852
+ },
3853
+ "borderColor-draft-muted": {
3854
+ "key": "{borderColor.draft.muted}",
3855
+ "$value": "#d1d9e0b3",
3856
+ "$type": "color",
3857
+ "$extensions": {
3858
+ "org.primer.figma": {
3859
+ "collection": "mode",
3860
+ "group": "semantic",
3861
+ "scopes": ["borderColor"],
3862
+ "codeSyntax": {
3863
+ "web": "var(--borderColor-draft-muted) */"
3864
+ }
3865
+ },
3866
+ "org.primer.overrides": {
3867
+ "dark-tritanopia": {
3868
+ "$value": "#d1d9e0",
3869
+ "alpha": 0.4,
3870
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3871
+ "isSource": true,
3872
+ "$type": "color"
3873
+ },
3874
+ "dark-tritanopia-high-contrast": {
3875
+ "$value": "#d1d9e0",
3876
+ "alpha": 1,
3877
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3878
+ "isSource": true,
3879
+ "$type": "color"
3880
+ },
3881
+ "light-tritanopia": {
3882
+ "$value": "#d1d9e0",
3883
+ "alpha": 0.4,
3884
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3885
+ "isSource": true,
3886
+ "$type": "color"
3887
+ },
3888
+ "light-tritanopia-high-contrast": {
3889
+ "$value": "#d1d9e0",
3890
+ "alpha": 1,
3891
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3892
+ "isSource": true,
3893
+ "$type": "color"
3894
+ },
3895
+ "dark-protanopia-deuteranopia": {
3896
+ "$value": "#d1d9e0",
3897
+ "alpha": 0.4,
3898
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3899
+ "isSource": true,
3900
+ "$type": "color"
3901
+ },
3902
+ "dark-protanopia-deuteranopia-high-contrast": {
3903
+ "$value": "#d1d9e0",
3904
+ "alpha": 1,
3905
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3906
+ "isSource": true,
3907
+ "$type": "color"
3908
+ },
3909
+ "light-protanopia-deuteranopia": {
3910
+ "$value": "#d1d9e0",
3911
+ "alpha": 0.4,
3912
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3913
+ "isSource": true,
3914
+ "$type": "color"
3915
+ },
3916
+ "light-protanopia-deuteranopia-high-contrast": {
3917
+ "$value": "#d1d9e0",
3918
+ "alpha": 1,
3919
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3920
+ "isSource": true,
3921
+ "$type": "color"
3922
+ }
3923
+ }
3924
+ },
3925
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3926
+ "isSource": true,
3927
+ "original": {
3928
+ "$value": "{borderColor.neutral.muted}",
3929
+ "$type": "color",
3930
+ "$extensions": {
3931
+ "org.primer.figma": {
3932
+ "collection": "mode",
3933
+ "group": "semantic",
3934
+ "scopes": ["borderColor"],
3935
+ "codeSyntax": {
3936
+ "web": "var(--borderColor-draft-muted) */"
3937
+ }
3938
+ },
3939
+ "org.primer.overrides": {
3940
+ "dark-tritanopia": {
3941
+ "$value": "{borderColor.default}",
3942
+ "alpha": 0.4,
3943
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3944
+ "isSource": true,
3945
+ "$type": "color"
3946
+ },
3947
+ "dark-tritanopia-high-contrast": {
3948
+ "$value": "{borderColor.default}",
3949
+ "alpha": 1,
3950
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3951
+ "isSource": true,
3952
+ "$type": "color"
3953
+ },
3954
+ "light-tritanopia": {
3955
+ "$value": "{borderColor.default}",
3956
+ "alpha": 0.4,
3957
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3958
+ "isSource": true,
3959
+ "$type": "color"
3960
+ },
3961
+ "light-tritanopia-high-contrast": {
3962
+ "$value": "{borderColor.default}",
3963
+ "alpha": 1,
3964
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3965
+ "isSource": true,
3966
+ "$type": "color"
3967
+ },
3968
+ "dark-protanopia-deuteranopia": {
3969
+ "$value": "{borderColor.default}",
3970
+ "alpha": 0.4,
3971
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3972
+ "isSource": true,
3973
+ "$type": "color"
3974
+ },
3975
+ "dark-protanopia-deuteranopia-high-contrast": {
3976
+ "$value": "{borderColor.default}",
3977
+ "alpha": 1,
3978
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3979
+ "isSource": true,
3980
+ "$type": "color"
3981
+ },
3982
+ "light-protanopia-deuteranopia": {
3983
+ "$value": "{borderColor.default}",
3984
+ "alpha": 0.4,
3985
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3986
+ "isSource": true,
3987
+ "$type": "color"
3988
+ },
3989
+ "light-protanopia-deuteranopia-high-contrast": {
3990
+ "$value": "{borderColor.default}",
3991
+ "alpha": 1,
3992
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3993
+ "isSource": true,
3994
+ "$type": "color"
3995
+ }
3996
+ }
3997
+ },
3998
+ "key": "{borderColor.draft.muted}"
3999
+ },
4000
+ "name": "borderColor-draft-muted",
4001
+ "attributes": {},
4002
+ "path": ["borderColor", "draft", "muted"]
4003
+ },
3694
4004
  "borderColor-emphasis": {
3695
4005
  "key": "{borderColor.emphasis}",
3696
4006
  "$value": "#818b98",
@@ -35123,6 +35433,41 @@
35123
35433
  "attributes": {},
35124
35434
  "path": ["fgColor", "done"]
35125
35435
  },
35436
+ "fgColor-draft": {
35437
+ "key": "{fgColor.draft}",
35438
+ "$value": "#59636e",
35439
+ "$type": "color",
35440
+ "$extensions": {
35441
+ "org.primer.figma": {
35442
+ "collection": "mode",
35443
+ "group": "semantic",
35444
+ "scopes": ["fgColor"],
35445
+ "codeSyntax": {
35446
+ "web": "var(--fgColor-draft)"
35447
+ }
35448
+ }
35449
+ },
35450
+ "filePath": "src/tokens/functional/color/fgColor.json5",
35451
+ "isSource": true,
35452
+ "original": {
35453
+ "$value": "{fgColor.neutral}",
35454
+ "$type": "color",
35455
+ "$extensions": {
35456
+ "org.primer.figma": {
35457
+ "collection": "mode",
35458
+ "group": "semantic",
35459
+ "scopes": ["fgColor"],
35460
+ "codeSyntax": {
35461
+ "web": "var(--fgColor-draft)"
35462
+ }
35463
+ }
35464
+ },
35465
+ "key": "{fgColor.draft}"
35466
+ },
35467
+ "name": "fgColor-draft",
35468
+ "attributes": {},
35469
+ "path": ["fgColor", "draft"]
35470
+ },
35126
35471
  "fgColor-link": {
35127
35472
  "key": "{fgColor.link}",
35128
35473
  "$value": "#0969da",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "11.1.0",
3
+ "version": "11.2.0-rc.1012e204",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "type": "module",
6
6
  "files": [
@@ -52,29 +52,29 @@
52
52
  "@changesets/cli": "^2.27.7",
53
53
  "@github/prettier-config": "^0.0.6",
54
54
  "@playwright/test": "^1.47.1",
55
- "@types/node": "22.9",
56
- "@typescript-eslint/eslint-plugin": "8.15",
57
- "@typescript-eslint/parser": "8.15",
58
- "@vitest/coverage-v8": "^2.0.3",
55
+ "@types/node": "^24.3.0",
56
+ "@typescript-eslint/eslint-plugin": "^8.41.0",
57
+ "@typescript-eslint/parser": "^8.41.0",
58
+ "@vitest/coverage-v8": "^3.2.4",
59
59
  "color-blend": "^4.0.0",
60
60
  "color2k": "^2.0.3",
61
61
  "console-table-printer": "^2.12.1",
62
- "eslint": "9.16",
63
- "eslint-config-prettier": "^9.1.0",
64
- "eslint-plugin-react": "7.37",
65
- "eslint-import-resolver-typescript": "3.6",
66
- "eslint-plugin-github": "^5.1.3",
62
+ "eslint": "^9.34.0",
63
+ "eslint-config-prettier": "^10.1.8",
64
+ "eslint-import-resolver-typescript": "^4.4.4",
65
+ "eslint-plugin-github": "^6.0.0",
67
66
  "eslint-plugin-jsx-a11y": "6.10",
67
+ "eslint-plugin-react": "7.37",
68
68
  "eslint-plugin-react-hooks": "^5.0.0",
69
69
  "json5": "^2.2.1",
70
70
  "markdown-table-ts": "^1.0.3",
71
71
  "prettier": "^3.3.3",
72
72
  "style-dictionary": "^5.0.0",
73
- "tsx": "^4.19.0",
74
- "typescript": "5.6",
75
- "typescript-eslint": "^8.16.0",
76
- "vitest": "^2.0.3",
77
- "zod": "3.23",
78
- "zod-validation-error": "3.4"
73
+ "tsx": "^4.20.5",
74
+ "typescript": "^5.9.2",
75
+ "typescript-eslint": "^8.41.0",
76
+ "vitest": "^3.2.4",
77
+ "zod": "^4.1.3",
78
+ "zod-validation-error": "^4.0.1"
79
79
  }
80
- }
80
+ }
@@ -592,6 +592,54 @@
592
592
  },
593
593
  },
594
594
  },
595
+ draft: {
596
+ muted: {
597
+ $value: '{bgColor.neutral.muted}',
598
+ $type: 'color',
599
+ $extensions: {
600
+ 'org.primer.figma': {
601
+ collection: 'mode',
602
+ group: 'semantic',
603
+ scopes: ['bgColor'],
604
+ codeSyntax: {
605
+ web: 'var(--bgColor-draft-muted)',
606
+ },
607
+ },
608
+ 'org.primer.overrides': {
609
+ 'light-tritanopia': '{bgColor.neutral.muted}',
610
+ 'light-tritanopia-high-contrast': '{bgColor.neutral.muted}',
611
+ 'dark-tritanopia': {
612
+ $value: '{bgColor.neutral.muted}',
613
+ alpha: 0.1,
614
+ },
615
+ 'light-protanopia-deuteranopia': '{bgColor.neutral.muted}',
616
+ 'light-protanopia-deuteranopia-high-contrast': '{bgColor.neutral.muted}',
617
+ 'dark-protanopia-deuteranopia': {
618
+ $value: '{bgColor.neutral.muted}',
619
+ alpha: 0.1,
620
+ },
621
+ 'dark-protanopia-deuteranopia-high-contrast': {
622
+ $value: '{bgColor.neutral.muted}',
623
+ alpha: 0.1,
624
+ },
625
+ },
626
+ },
627
+ },
628
+ emphasis: {
629
+ $value: '{bgColor.neutral.emphasis}',
630
+ $type: 'color',
631
+ $extensions: {
632
+ 'org.primer.figma': {
633
+ collection: 'mode',
634
+ group: 'semantic',
635
+ scopes: ['bgColor'],
636
+ codeSyntax: {
637
+ web: 'var(--bgColor-draft-emphasis)',
638
+ },
639
+ },
640
+ },
641
+ },
642
+ },
595
643
  done: {
596
644
  muted: {
597
645
  $value: '{base.color.purple.0}',
@@ -734,6 +734,70 @@
734
734
  },
735
735
  },
736
736
  },
737
+ draft: {
738
+ muted: {
739
+ $value: '{borderColor.neutral.muted}',
740
+ $type: 'color',
741
+ $extensions: {
742
+ 'org.primer.figma': {
743
+ collection: 'mode',
744
+ group: 'semantic',
745
+ scopes: ['borderColor'],
746
+ codeSyntax: {
747
+ web: 'var(--borderColor-draft-muted) */',
748
+ },
749
+ },
750
+ 'org.primer.overrides': {
751
+ 'dark-tritanopia': {
752
+ $value: '{borderColor.default}',
753
+ alpha: 0.4,
754
+ },
755
+ 'dark-tritanopia-high-contrast': {
756
+ $value: '{borderColor.default}',
757
+ alpha: 1,
758
+ },
759
+ 'light-tritanopia': {
760
+ $value: '{borderColor.default}',
761
+ alpha: 0.4,
762
+ },
763
+ 'light-tritanopia-high-contrast': {
764
+ $value: '{borderColor.default}',
765
+ alpha: 1,
766
+ },
767
+ 'dark-protanopia-deuteranopia': {
768
+ $value: '{borderColor.default}',
769
+ alpha: 0.4,
770
+ },
771
+ 'dark-protanopia-deuteranopia-high-contrast': {
772
+ $value: '{borderColor.default}',
773
+ alpha: 1,
774
+ },
775
+ 'light-protanopia-deuteranopia': {
776
+ $value: '{borderColor.default}',
777
+ alpha: 0.4,
778
+ },
779
+ 'light-protanopia-deuteranopia-high-contrast': {
780
+ $value: '{borderColor.default}',
781
+ alpha: 1,
782
+ },
783
+ },
784
+ },
785
+ },
786
+ emphasis: {
787
+ $value: '{borderColor.neutral.emphasis}',
788
+ $type: 'color',
789
+ $extensions: {
790
+ 'org.primer.figma': {
791
+ collection: 'mode',
792
+ group: 'semantic',
793
+ scopes: ['borderColor'],
794
+ codeSyntax: {
795
+ web: 'var(--borderColor-draft-emphasis)',
796
+ },
797
+ },
798
+ },
799
+ },
800
+ },
737
801
  done: {
738
802
  muted: {
739
803
  $value: '{base.color.purple.3}',
@@ -335,6 +335,20 @@
335
335
  },
336
336
  },
337
337
  },
338
+ draft: {
339
+ $value: '{fgColor.neutral}',
340
+ $type: 'color',
341
+ $extensions: {
342
+ 'org.primer.figma': {
343
+ collection: 'mode',
344
+ group: 'semantic',
345
+ scopes: ['fgColor'],
346
+ codeSyntax: {
347
+ web: 'var(--fgColor-draft)',
348
+ },
349
+ },
350
+ },
351
+ },
338
352
  done: {
339
353
  $value: '{base.color.purple.5}',
340
354
  $type: 'color',