@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": "#986ee226",
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": "#656c76",
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": "#656c7633",
1059
+ "light-tritanopia-high-contrast": "#656c7633",
1060
+ "dark-tritanopia": {
1061
+ "$value": "#656c7633",
1062
+ "alpha": 0.1,
1063
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1064
+ "isSource": true,
1065
+ "$type": "color"
1066
+ },
1067
+ "light-protanopia-deuteranopia": "#656c7633",
1068
+ "light-protanopia-deuteranopia-high-contrast": "#656c7633",
1069
+ "dark-protanopia-deuteranopia": {
1070
+ "$value": "#656c7633",
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": "#656c7633",
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": "#656c7633",
1133
+ "type": "color"
1134
+ },
1011
1135
  "bgColor-emphasis": {
1012
1136
  "key": "{bgColor.emphasis}",
1013
1137
  "$extensions": {
@@ -3707,6 +3831,192 @@
3707
3831
  "value": "#986ee266",
3708
3832
  "type": "color"
3709
3833
  },
3834
+ "borderColor-draft-emphasis": {
3835
+ "key": "{borderColor.draft.emphasis}",
3836
+ "$extensions": {
3837
+ "org.primer.figma": {
3838
+ "collection": "mode",
3839
+ "group": "semantic",
3840
+ "scopes": ["borderColor"],
3841
+ "codeSyntax": {
3842
+ "web": "var(--borderColor-draft-emphasis)"
3843
+ }
3844
+ }
3845
+ },
3846
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3847
+ "isSource": true,
3848
+ "original": {
3849
+ "$value": "{borderColor.neutral.emphasis}",
3850
+ "$type": "color",
3851
+ "$extensions": {
3852
+ "org.primer.figma": {
3853
+ "collection": "mode",
3854
+ "group": "semantic",
3855
+ "scopes": ["borderColor"],
3856
+ "codeSyntax": {
3857
+ "web": "var(--borderColor-draft-emphasis)"
3858
+ }
3859
+ }
3860
+ },
3861
+ "key": "{borderColor.draft.emphasis}"
3862
+ },
3863
+ "name": "borderColor-draft-emphasis",
3864
+ "attributes": {},
3865
+ "path": ["borderColor", "draft", "emphasis"],
3866
+ "value": "#656c76",
3867
+ "type": "color"
3868
+ },
3869
+ "borderColor-draft-muted": {
3870
+ "key": "{borderColor.draft.muted}",
3871
+ "$extensions": {
3872
+ "org.primer.figma": {
3873
+ "collection": "mode",
3874
+ "group": "semantic",
3875
+ "scopes": ["borderColor"],
3876
+ "codeSyntax": {
3877
+ "web": "var(--borderColor-draft-muted) */"
3878
+ }
3879
+ },
3880
+ "org.primer.overrides": {
3881
+ "dark-tritanopia": {
3882
+ "$value": "#3d444d",
3883
+ "alpha": 0.4,
3884
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3885
+ "isSource": true,
3886
+ "$type": "color"
3887
+ },
3888
+ "dark-tritanopia-high-contrast": {
3889
+ "$value": "#3d444d",
3890
+ "alpha": 1,
3891
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3892
+ "isSource": true,
3893
+ "$type": "color"
3894
+ },
3895
+ "light-tritanopia": {
3896
+ "$value": "#3d444d",
3897
+ "alpha": 0.4,
3898
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3899
+ "isSource": true,
3900
+ "$type": "color"
3901
+ },
3902
+ "light-tritanopia-high-contrast": {
3903
+ "$value": "#3d444d",
3904
+ "alpha": 1,
3905
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3906
+ "isSource": true,
3907
+ "$type": "color"
3908
+ },
3909
+ "dark-protanopia-deuteranopia": {
3910
+ "$value": "#3d444d",
3911
+ "alpha": 0.4,
3912
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3913
+ "isSource": true,
3914
+ "$type": "color"
3915
+ },
3916
+ "dark-protanopia-deuteranopia-high-contrast": {
3917
+ "$value": "#3d444d",
3918
+ "alpha": 1,
3919
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3920
+ "isSource": true,
3921
+ "$type": "color"
3922
+ },
3923
+ "light-protanopia-deuteranopia": {
3924
+ "$value": "#3d444d",
3925
+ "alpha": 0.4,
3926
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3927
+ "isSource": true,
3928
+ "$type": "color"
3929
+ },
3930
+ "light-protanopia-deuteranopia-high-contrast": {
3931
+ "$value": "#3d444d",
3932
+ "alpha": 1,
3933
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3934
+ "isSource": true,
3935
+ "$type": "color"
3936
+ }
3937
+ }
3938
+ },
3939
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3940
+ "isSource": true,
3941
+ "original": {
3942
+ "$value": "{borderColor.neutral.muted}",
3943
+ "$type": "color",
3944
+ "$extensions": {
3945
+ "org.primer.figma": {
3946
+ "collection": "mode",
3947
+ "group": "semantic",
3948
+ "scopes": ["borderColor"],
3949
+ "codeSyntax": {
3950
+ "web": "var(--borderColor-draft-muted) */"
3951
+ }
3952
+ },
3953
+ "org.primer.overrides": {
3954
+ "dark-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
+ "dark-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
+ "light-tritanopia": {
3969
+ "$value": "{borderColor.default}",
3970
+ "alpha": 0.4,
3971
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3972
+ "isSource": true,
3973
+ "$type": "color"
3974
+ },
3975
+ "light-tritanopia-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
+ "dark-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
+ "dark-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
+ "light-protanopia-deuteranopia": {
3997
+ "$value": "{borderColor.default}",
3998
+ "alpha": 0.4,
3999
+ "filePath": "src/tokens/functional/color/borderColor.json5",
4000
+ "isSource": true,
4001
+ "$type": "color"
4002
+ },
4003
+ "light-protanopia-deuteranopia-high-contrast": {
4004
+ "$value": "{borderColor.default}",
4005
+ "alpha": 1,
4006
+ "filePath": "src/tokens/functional/color/borderColor.json5",
4007
+ "isSource": true,
4008
+ "$type": "color"
4009
+ }
4010
+ }
4011
+ },
4012
+ "key": "{borderColor.draft.muted}"
4013
+ },
4014
+ "name": "borderColor-draft-muted",
4015
+ "attributes": {},
4016
+ "path": ["borderColor", "draft", "muted"],
4017
+ "value": "#3d444db3",
4018
+ "type": "color"
4019
+ },
3710
4020
  "borderColor-emphasis": {
3711
4021
  "key": "{borderColor.emphasis}",
3712
4022
  "$extensions": {
@@ -35151,6 +35461,41 @@
35151
35461
  "value": "#986ee2",
35152
35462
  "type": "color"
35153
35463
  },
35464
+ "fgColor-draft": {
35465
+ "key": "{fgColor.draft}",
35466
+ "$extensions": {
35467
+ "org.primer.figma": {
35468
+ "collection": "mode",
35469
+ "group": "semantic",
35470
+ "scopes": ["fgColor"],
35471
+ "codeSyntax": {
35472
+ "web": "var(--fgColor-draft)"
35473
+ }
35474
+ }
35475
+ },
35476
+ "filePath": "src/tokens/functional/color/fgColor.json5",
35477
+ "isSource": true,
35478
+ "original": {
35479
+ "$value": "{fgColor.neutral}",
35480
+ "$type": "color",
35481
+ "$extensions": {
35482
+ "org.primer.figma": {
35483
+ "collection": "mode",
35484
+ "group": "semantic",
35485
+ "scopes": ["fgColor"],
35486
+ "codeSyntax": {
35487
+ "web": "var(--fgColor-draft)"
35488
+ }
35489
+ }
35490
+ },
35491
+ "key": "{fgColor.draft}"
35492
+ },
35493
+ "name": "fgColor-draft",
35494
+ "attributes": {},
35495
+ "path": ["fgColor", "draft"],
35496
+ "value": "#9198a1",
35497
+ "type": "color"
35498
+ },
35154
35499
  "fgColor-link": {
35155
35500
  "key": "{fgColor.link}",
35156
35501
  "$extensions": {