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