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