@primer/primitives 8.2.4-rc.f820602a → 8.2.4

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 (59) hide show
  1. package/dist/css/functional/size/border.css +1 -0
  2. package/dist/css/functional/themes/dark-colorblind.css +6 -0
  3. package/dist/css/functional/themes/dark-dimmed.css +6 -0
  4. package/dist/css/functional/themes/dark-high-contrast.css +8 -2
  5. package/dist/css/functional/themes/dark-tritanopia.css +6 -0
  6. package/dist/css/functional/themes/dark.css +6 -0
  7. package/dist/css/functional/themes/light-colorblind.css +6 -0
  8. package/dist/css/functional/themes/light-high-contrast.css +8 -2
  9. package/dist/css/functional/themes/light-tritanopia.css +6 -0
  10. package/dist/css/functional/themes/light.css +6 -0
  11. package/dist/css/primitives.css +1 -0
  12. package/dist/docs/functional/size/border.json +31 -0
  13. package/dist/docs/functional/themes/dark-colorblind.json +87 -0
  14. package/dist/docs/functional/themes/dark-dimmed.json +87 -0
  15. package/dist/docs/functional/themes/dark-high-contrast.json +90 -3
  16. package/dist/docs/functional/themes/dark-tritanopia.json +87 -0
  17. package/dist/docs/functional/themes/dark.json +87 -0
  18. package/dist/docs/functional/themes/light-colorblind.json +87 -0
  19. package/dist/docs/functional/themes/light-high-contrast.json +90 -3
  20. package/dist/docs/functional/themes/light-tritanopia.json +87 -0
  21. package/dist/docs/functional/themes/light.json +87 -0
  22. package/dist/fallbacks/functional/size/border.json +1 -0
  23. package/dist/figma/dimension/dimension.json +14 -0
  24. package/dist/figma/themes/dark-colorblind.json +48 -0
  25. package/dist/figma/themes/dark-dimmed.json +48 -0
  26. package/dist/figma/themes/dark-high-contrast.json +64 -16
  27. package/dist/figma/themes/dark-tritanopia.json +48 -0
  28. package/dist/figma/themes/dark.json +48 -0
  29. package/dist/figma/themes/light-colorblind.json +48 -0
  30. package/dist/figma/themes/light-high-contrast.json +64 -16
  31. package/dist/figma/themes/light-tritanopia.json +48 -0
  32. package/dist/figma/themes/light.json +48 -0
  33. package/dist/internalCss/dark-colorblind.css +6 -0
  34. package/dist/internalCss/dark-dimmed.css +6 -0
  35. package/dist/internalCss/dark-high-contrast.css +8 -2
  36. package/dist/internalCss/dark-tritanopia.css +6 -0
  37. package/dist/internalCss/dark.css +6 -0
  38. package/dist/internalCss/light-colorblind.css +6 -0
  39. package/dist/internalCss/light-high-contrast.css +8 -2
  40. package/dist/internalCss/light-tritanopia.css +6 -0
  41. package/dist/internalCss/light.css +6 -0
  42. package/dist/styleLint/functional/size/border.json +31 -0
  43. package/dist/styleLint/functional/themes/dark-colorblind.json +87 -0
  44. package/dist/styleLint/functional/themes/dark-dimmed.json +87 -0
  45. package/dist/styleLint/functional/themes/dark-high-contrast.json +90 -3
  46. package/dist/styleLint/functional/themes/dark-tritanopia.json +87 -0
  47. package/dist/styleLint/functional/themes/dark.json +87 -0
  48. package/dist/styleLint/functional/themes/light-colorblind.json +87 -0
  49. package/dist/styleLint/functional/themes/light-high-contrast.json +90 -3
  50. package/dist/styleLint/functional/themes/light-tritanopia.json +87 -0
  51. package/dist/styleLint/functional/themes/light.json +87 -0
  52. package/package.json +11 -8
  53. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +16 -0
  54. package/src/tokens/functional/color/dark/patterns-dark.json5 +26 -0
  55. package/src/tokens/functional/color/dark/primitives-dark.json5 +12 -0
  56. package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +6 -0
  57. package/src/tokens/functional/color/light/patterns-light.json5 +26 -0
  58. package/src/tokens/functional/color/light/primitives-light.json5 +12 -0
  59. package/src/tokens/functional/size/border.json +13 -0
@@ -362,6 +362,12 @@
362
362
  $type: 'color',
363
363
  },
364
364
  },
365
+ borderColor: {
366
+ rest: {
367
+ $value: '{borderColor.emphasis}',
368
+ $type: 'color',
369
+ },
370
+ },
365
371
  },
366
372
  button: {
367
373
  primary: {
@@ -902,4 +908,14 @@
902
908
  },
903
909
  },
904
910
  },
911
+ tooltip: {
912
+ bgColor: {
913
+ $value: '{bgColor.inverse}',
914
+ $type: 'color',
915
+ },
916
+ fgColor: {
917
+ $value: '{fgColor.onInverse}',
918
+ $type: 'color',
919
+ },
920
+ },
905
921
  }
@@ -3073,4 +3073,30 @@
3073
3073
  },
3074
3074
  },
3075
3075
  },
3076
+ tooltip: {
3077
+ bgColor: {
3078
+ $value: '{bgColor.emphasis}',
3079
+ $type: 'color',
3080
+ $extensions: {
3081
+ 'org.primer.figma': {
3082
+ collection: 'mode',
3083
+ mode: 'dark',
3084
+ group: 'component',
3085
+ scopes: ['bgColor'],
3086
+ },
3087
+ },
3088
+ },
3089
+ fgColor: {
3090
+ $value: '{fgColor.onEmphasis}',
3091
+ $type: 'color',
3092
+ $extensions: {
3093
+ 'org.primer.figma': {
3094
+ collection: 'mode',
3095
+ mode: 'dark',
3096
+ group: 'component',
3097
+ scopes: ['fgColor'],
3098
+ },
3099
+ },
3100
+ },
3101
+ },
3076
3102
  }
@@ -53,6 +53,18 @@
53
53
  },
54
54
  },
55
55
  },
56
+ onInverse: {
57
+ $value: '{base.color.black}',
58
+ $type: 'color',
59
+ $extensions: {
60
+ 'org.primer.figma': {
61
+ collection: 'mode',
62
+ mode: 'dark',
63
+ group: 'semantic',
64
+ scopes: ['fgColor'],
65
+ },
66
+ },
67
+ },
56
68
  white: {
57
69
  $value: '{base.color.white}',
58
70
  $type: 'color',
@@ -326,6 +326,12 @@
326
326
  $type: 'color',
327
327
  },
328
328
  },
329
+ borderColor: {
330
+ rest: {
331
+ $value: '{borderColor.emphasis}',
332
+ $type: 'color',
333
+ },
334
+ },
329
335
  },
330
336
  button: {
331
337
  default: {
@@ -3070,4 +3070,30 @@
3070
3070
  },
3071
3071
  },
3072
3072
  },
3073
+ tooltip: {
3074
+ bgColor: {
3075
+ $value: '{bgColor.emphasis}',
3076
+ $type: 'color',
3077
+ $extensions: {
3078
+ 'org.primer.figma': {
3079
+ collection: 'mode',
3080
+ mode: 'light',
3081
+ group: 'component',
3082
+ scopes: ['bgColor'],
3083
+ },
3084
+ },
3085
+ },
3086
+ fgColor: {
3087
+ $value: '{fgColor.onEmphasis}',
3088
+ $type: 'color',
3089
+ $extensions: {
3090
+ 'org.primer.figma': {
3091
+ collection: 'mode',
3092
+ mode: 'light',
3093
+ group: 'component',
3094
+ scopes: ['fgColor'],
3095
+ },
3096
+ },
3097
+ },
3098
+ },
3073
3099
  }
@@ -49,6 +49,18 @@
49
49
  },
50
50
  },
51
51
  },
52
+ onInverse: {
53
+ $value: '{base.color.white}',
54
+ $type: 'color',
55
+ $extensions: {
56
+ 'org.primer.figma': {
57
+ collection: 'mode',
58
+ mode: 'light',
59
+ group: 'semantic',
60
+ scopes: ['fgColor'],
61
+ },
62
+ },
63
+ },
52
64
  white: {
53
65
  $value: '{base.color.white}',
54
66
  $type: 'color',
@@ -81,6 +81,19 @@
81
81
  }
82
82
  }
83
83
  }
84
+ },
85
+ "default": {
86
+ "$value": "{borderRadius.medium}",
87
+ "$type": "dimension",
88
+ "$extensions": {
89
+ "org.primer.figma": {
90
+ "collection": "functional/size",
91
+ "scopes": ["radius"],
92
+ "codeSyntax": {
93
+ "web": "var(--borderRadius-default) /* utility class: .rounded-2 */"
94
+ }
95
+ }
96
+ }
84
97
  }
85
98
  },
86
99
  "outline": {