@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
  "value": "#faf0fe",
999
999
  "type": "color"
1000
1000
  },
1001
+ "bgColor-draft-emphasis": {
1002
+ "key": "{bgColor.draft.emphasis}",
1003
+ "$extensions": {
1004
+ "org.primer.figma": {
1005
+ "collection": "mode",
1006
+ "group": "semantic",
1007
+ "scopes": ["bgColor"],
1008
+ "codeSyntax": {
1009
+ "web": "var(--bgColor-draft-emphasis)"
1010
+ }
1011
+ }
1012
+ },
1013
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1014
+ "isSource": true,
1015
+ "original": {
1016
+ "$value": "{bgColor.neutral.emphasis}",
1017
+ "$type": "color",
1018
+ "$extensions": {
1019
+ "org.primer.figma": {
1020
+ "collection": "mode",
1021
+ "group": "semantic",
1022
+ "scopes": ["bgColor"],
1023
+ "codeSyntax": {
1024
+ "web": "var(--bgColor-draft-emphasis)"
1025
+ }
1026
+ }
1027
+ },
1028
+ "key": "{bgColor.draft.emphasis}"
1029
+ },
1030
+ "name": "bgColor-draft-emphasis",
1031
+ "attributes": {},
1032
+ "path": ["bgColor", "draft", "emphasis"],
1033
+ "value": "#454c54",
1034
+ "type": "color"
1035
+ },
1036
+ "bgColor-draft-muted": {
1037
+ "key": "{bgColor.draft.muted}",
1038
+ "$extensions": {
1039
+ "org.primer.figma": {
1040
+ "collection": "mode",
1041
+ "group": "semantic",
1042
+ "scopes": ["bgColor"],
1043
+ "codeSyntax": {
1044
+ "web": "var(--bgColor-draft-muted)"
1045
+ }
1046
+ },
1047
+ "org.primer.overrides": {
1048
+ "light-tritanopia": "#e0e6eb",
1049
+ "light-tritanopia-high-contrast": "#e0e6eb",
1050
+ "dark-tritanopia": {
1051
+ "$value": "#e0e6eb",
1052
+ "alpha": 0.1,
1053
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1054
+ "isSource": true,
1055
+ "$type": "color"
1056
+ },
1057
+ "light-protanopia-deuteranopia": "#e0e6eb",
1058
+ "light-protanopia-deuteranopia-high-contrast": "#e0e6eb",
1059
+ "dark-protanopia-deuteranopia": {
1060
+ "$value": "#e0e6eb",
1061
+ "alpha": 0.1,
1062
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1063
+ "isSource": true,
1064
+ "$type": "color"
1065
+ },
1066
+ "dark-protanopia-deuteranopia-high-contrast": {
1067
+ "$value": "#e0e6eb",
1068
+ "alpha": 0.1,
1069
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1070
+ "isSource": true,
1071
+ "$type": "color"
1072
+ }
1073
+ }
1074
+ },
1075
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1076
+ "isSource": true,
1077
+ "original": {
1078
+ "$value": "{bgColor.neutral.muted}",
1079
+ "$type": "color",
1080
+ "$extensions": {
1081
+ "org.primer.figma": {
1082
+ "collection": "mode",
1083
+ "group": "semantic",
1084
+ "scopes": ["bgColor"],
1085
+ "codeSyntax": {
1086
+ "web": "var(--bgColor-draft-muted)"
1087
+ }
1088
+ },
1089
+ "org.primer.overrides": {
1090
+ "light-tritanopia": "{bgColor.neutral.muted}",
1091
+ "light-tritanopia-high-contrast": "{bgColor.neutral.muted}",
1092
+ "dark-tritanopia": {
1093
+ "$value": "{bgColor.neutral.muted}",
1094
+ "alpha": 0.1,
1095
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1096
+ "isSource": true,
1097
+ "$type": "color"
1098
+ },
1099
+ "light-protanopia-deuteranopia": "{bgColor.neutral.muted}",
1100
+ "light-protanopia-deuteranopia-high-contrast": "{bgColor.neutral.muted}",
1101
+ "dark-protanopia-deuteranopia": {
1102
+ "$value": "{bgColor.neutral.muted}",
1103
+ "alpha": 0.1,
1104
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1105
+ "isSource": true,
1106
+ "$type": "color"
1107
+ },
1108
+ "dark-protanopia-deuteranopia-high-contrast": {
1109
+ "$value": "{bgColor.neutral.muted}",
1110
+ "alpha": 0.1,
1111
+ "filePath": "src/tokens/functional/color/bgColor.json5",
1112
+ "isSource": true,
1113
+ "$type": "color"
1114
+ }
1115
+ }
1116
+ },
1117
+ "key": "{bgColor.draft.muted}"
1118
+ },
1119
+ "name": "bgColor-draft-muted",
1120
+ "attributes": {},
1121
+ "path": ["bgColor", "draft", "muted"],
1122
+ "value": "#e0e6eb",
1123
+ "type": "color"
1124
+ },
1001
1125
  "bgColor-emphasis": {
1002
1126
  "key": "{bgColor.emphasis}",
1003
1127
  "$extensions": {
@@ -3689,6 +3813,192 @@
3689
3813
  "value": "#a371f7",
3690
3814
  "type": "color"
3691
3815
  },
3816
+ "borderColor-draft-emphasis": {
3817
+ "key": "{borderColor.draft.emphasis}",
3818
+ "$extensions": {
3819
+ "org.primer.figma": {
3820
+ "collection": "mode",
3821
+ "group": "semantic",
3822
+ "scopes": ["borderColor"],
3823
+ "codeSyntax": {
3824
+ "web": "var(--borderColor-draft-emphasis)"
3825
+ }
3826
+ }
3827
+ },
3828
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3829
+ "isSource": true,
3830
+ "original": {
3831
+ "$value": "{borderColor.neutral.emphasis}",
3832
+ "$type": "color",
3833
+ "$extensions": {
3834
+ "org.primer.figma": {
3835
+ "collection": "mode",
3836
+ "group": "semantic",
3837
+ "scopes": ["borderColor"],
3838
+ "codeSyntax": {
3839
+ "web": "var(--borderColor-draft-emphasis)"
3840
+ }
3841
+ }
3842
+ },
3843
+ "key": "{borderColor.draft.emphasis}"
3844
+ },
3845
+ "name": "borderColor-draft-emphasis",
3846
+ "attributes": {},
3847
+ "path": ["borderColor", "draft", "emphasis"],
3848
+ "value": "#59636e",
3849
+ "type": "color"
3850
+ },
3851
+ "borderColor-draft-muted": {
3852
+ "key": "{borderColor.draft.muted}",
3853
+ "$extensions": {
3854
+ "org.primer.figma": {
3855
+ "collection": "mode",
3856
+ "group": "semantic",
3857
+ "scopes": ["borderColor"],
3858
+ "codeSyntax": {
3859
+ "web": "var(--borderColor-draft-muted) */"
3860
+ }
3861
+ },
3862
+ "org.primer.overrides": {
3863
+ "dark-tritanopia": {
3864
+ "$value": "#454c54",
3865
+ "alpha": 0.4,
3866
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3867
+ "isSource": true,
3868
+ "$type": "color"
3869
+ },
3870
+ "dark-tritanopia-high-contrast": {
3871
+ "$value": "#454c54",
3872
+ "alpha": 1,
3873
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3874
+ "isSource": true,
3875
+ "$type": "color"
3876
+ },
3877
+ "light-tritanopia": {
3878
+ "$value": "#454c54",
3879
+ "alpha": 0.4,
3880
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3881
+ "isSource": true,
3882
+ "$type": "color"
3883
+ },
3884
+ "light-tritanopia-high-contrast": {
3885
+ "$value": "#454c54",
3886
+ "alpha": 1,
3887
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3888
+ "isSource": true,
3889
+ "$type": "color"
3890
+ },
3891
+ "dark-protanopia-deuteranopia": {
3892
+ "$value": "#454c54",
3893
+ "alpha": 0.4,
3894
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3895
+ "isSource": true,
3896
+ "$type": "color"
3897
+ },
3898
+ "dark-protanopia-deuteranopia-high-contrast": {
3899
+ "$value": "#454c54",
3900
+ "alpha": 1,
3901
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3902
+ "isSource": true,
3903
+ "$type": "color"
3904
+ },
3905
+ "light-protanopia-deuteranopia": {
3906
+ "$value": "#454c54",
3907
+ "alpha": 0.4,
3908
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3909
+ "isSource": true,
3910
+ "$type": "color"
3911
+ },
3912
+ "light-protanopia-deuteranopia-high-contrast": {
3913
+ "$value": "#454c54",
3914
+ "alpha": 1,
3915
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3916
+ "isSource": true,
3917
+ "$type": "color"
3918
+ }
3919
+ }
3920
+ },
3921
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3922
+ "isSource": true,
3923
+ "original": {
3924
+ "$value": "{borderColor.neutral.muted}",
3925
+ "$type": "color",
3926
+ "$extensions": {
3927
+ "org.primer.figma": {
3928
+ "collection": "mode",
3929
+ "group": "semantic",
3930
+ "scopes": ["borderColor"],
3931
+ "codeSyntax": {
3932
+ "web": "var(--borderColor-draft-muted) */"
3933
+ }
3934
+ },
3935
+ "org.primer.overrides": {
3936
+ "dark-tritanopia": {
3937
+ "$value": "{borderColor.default}",
3938
+ "alpha": 0.4,
3939
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3940
+ "isSource": true,
3941
+ "$type": "color"
3942
+ },
3943
+ "dark-tritanopia-high-contrast": {
3944
+ "$value": "{borderColor.default}",
3945
+ "alpha": 1,
3946
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3947
+ "isSource": true,
3948
+ "$type": "color"
3949
+ },
3950
+ "light-tritanopia": {
3951
+ "$value": "{borderColor.default}",
3952
+ "alpha": 0.4,
3953
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3954
+ "isSource": true,
3955
+ "$type": "color"
3956
+ },
3957
+ "light-tritanopia-high-contrast": {
3958
+ "$value": "{borderColor.default}",
3959
+ "alpha": 1,
3960
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3961
+ "isSource": true,
3962
+ "$type": "color"
3963
+ },
3964
+ "dark-protanopia-deuteranopia": {
3965
+ "$value": "{borderColor.default}",
3966
+ "alpha": 0.4,
3967
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3968
+ "isSource": true,
3969
+ "$type": "color"
3970
+ },
3971
+ "dark-protanopia-deuteranopia-high-contrast": {
3972
+ "$value": "{borderColor.default}",
3973
+ "alpha": 1,
3974
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3975
+ "isSource": true,
3976
+ "$type": "color"
3977
+ },
3978
+ "light-protanopia-deuteranopia": {
3979
+ "$value": "{borderColor.default}",
3980
+ "alpha": 0.4,
3981
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3982
+ "isSource": true,
3983
+ "$type": "color"
3984
+ },
3985
+ "light-protanopia-deuteranopia-high-contrast": {
3986
+ "$value": "{borderColor.default}",
3987
+ "alpha": 1,
3988
+ "filePath": "src/tokens/functional/color/borderColor.json5",
3989
+ "isSource": true,
3990
+ "$type": "color"
3991
+ }
3992
+ }
3993
+ },
3994
+ "key": "{borderColor.draft.muted}"
3995
+ },
3996
+ "name": "borderColor-draft-muted",
3997
+ "attributes": {},
3998
+ "path": ["borderColor", "draft", "muted"],
3999
+ "value": "#454c54",
4000
+ "type": "color"
4001
+ },
3692
4002
  "borderColor-emphasis": {
3693
4003
  "key": "{borderColor.emphasis}",
3694
4004
  "$extensions": {
@@ -35125,6 +35435,41 @@
35125
35435
  "value": "#512598",
35126
35436
  "type": "color"
35127
35437
  },
35438
+ "fgColor-draft": {
35439
+ "key": "{fgColor.draft}",
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
+ "value": "#393f46",
35471
+ "type": "color"
35472
+ },
35128
35473
  "fgColor-link": {
35129
35474
  "key": "{fgColor.link}",
35130
35475
  "$extensions": {