@primer/primitives 10.3.4 → 10.4.0-rc.06084fce

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 (108) hide show
  1. package/dist/build/schemas/shadowToken.d.ts +1992 -0
  2. package/dist/build/schemas/shadowToken.js +27 -0
  3. package/dist/css/base/motion/motion.css +1 -0
  4. package/dist/css/functional/themes/dark-colorblind.css +38 -2
  5. package/dist/css/functional/themes/dark-dimmed.css +38 -2
  6. package/dist/css/functional/themes/dark-high-contrast.css +38 -2
  7. package/dist/css/functional/themes/dark-tritanopia.css +38 -2
  8. package/dist/css/functional/themes/dark.css +38 -2
  9. package/dist/css/functional/themes/light-colorblind.css +38 -2
  10. package/dist/css/functional/themes/light-high-contrast.css +38 -2
  11. package/dist/css/functional/themes/light-tritanopia.css +38 -2
  12. package/dist/css/functional/themes/light.css +38 -2
  13. package/dist/css/primitives.css +1 -6
  14. package/dist/docs/base/motion/motion.json +14 -0
  15. package/dist/docs/functional/themes/dark-colorblind.json +12028 -1436
  16. package/dist/docs/functional/themes/dark-dimmed.json +12218 -1392
  17. package/dist/docs/functional/themes/dark-high-contrast.json +13308 -1584
  18. package/dist/docs/functional/themes/dark-tritanopia.json +11899 -1409
  19. package/dist/docs/functional/themes/dark.json +11584 -1314
  20. package/dist/docs/functional/themes/light-colorblind.json +11961 -1411
  21. package/dist/docs/functional/themes/light-high-contrast.json +14994 -3384
  22. package/dist/docs/functional/themes/light-tritanopia.json +11815 -1367
  23. package/dist/docs/functional/themes/light.json +11541 -1245
  24. package/dist/fallbacks/base/motion/motion.json +1 -0
  25. package/dist/figma/figma.json +1 -10
  26. package/dist/figma/themes/dark-colorblind.json +5096 -4524
  27. package/dist/figma/themes/dark-dimmed.json +5142 -4406
  28. package/dist/figma/themes/dark-high-contrast.json +5762 -3913
  29. package/dist/figma/themes/dark-tritanopia.json +4933 -4491
  30. package/dist/figma/themes/dark.json +5476 -5299
  31. package/dist/figma/themes/light-colorblind.json +5076 -4467
  32. package/dist/figma/themes/light-high-contrast.json +5707 -3916
  33. package/dist/figma/themes/light-tritanopia.json +4983 -4501
  34. package/dist/figma/themes/light.json +4795 -4502
  35. package/dist/internalCss/dark-colorblind.css +38 -2
  36. package/dist/internalCss/dark-dimmed.css +38 -2
  37. package/dist/internalCss/dark-high-contrast.css +38 -2
  38. package/dist/internalCss/dark-tritanopia.css +38 -2
  39. package/dist/internalCss/dark.css +38 -2
  40. package/dist/internalCss/light-colorblind.css +38 -2
  41. package/dist/internalCss/light-high-contrast.css +38 -2
  42. package/dist/internalCss/light-tritanopia.css +38 -2
  43. package/dist/internalCss/light.css +38 -2
  44. package/dist/styleLint/base/motion/motion.json +14 -0
  45. package/dist/styleLint/functional/themes/dark-colorblind.json +12028 -1436
  46. package/dist/styleLint/functional/themes/dark-dimmed.json +12217 -1391
  47. package/dist/styleLint/functional/themes/dark-high-contrast.json +13295 -1571
  48. package/dist/styleLint/functional/themes/dark-tritanopia.json +11897 -1407
  49. package/dist/styleLint/functional/themes/dark.json +11567 -1297
  50. package/dist/styleLint/functional/themes/light-colorblind.json +11922 -1372
  51. package/dist/styleLint/functional/themes/light-high-contrast.json +15008 -3398
  52. package/dist/styleLint/functional/themes/light-tritanopia.json +11816 -1368
  53. package/dist/styleLint/functional/themes/light.json +11542 -1246
  54. package/package.json +1 -1
  55. package/src/tokens/base/motion/timing.json5 +4 -0
  56. package/src/tokens/component/avatar.json5 +33 -0
  57. package/src/tokens/component/button.json5 +1714 -0
  58. package/src/tokens/component/card.json5 +18 -0
  59. package/src/tokens/{functional/color/light/app-light.json5 → component/codeMirror.json5} +67 -0
  60. package/src/tokens/component/contribution.json5 +344 -0
  61. package/src/tokens/component/counter.json5 +43 -0
  62. package/src/tokens/component/header.json5 +3 -0
  63. package/src/tokens/component/label.json5 +1942 -0
  64. package/src/tokens/component/menu.json5 +24 -0
  65. package/src/tokens/component/overlay.json5 +1 -1
  66. package/src/tokens/component/selectMenu.json5 +38 -0
  67. package/src/tokens/component/sideNav.json5 +22 -0
  68. package/src/tokens/component/tooltip.json5 +32 -0
  69. package/src/tokens/component/treeView.json5 +24 -0
  70. package/src/tokens/component/underlineNav.json5 +56 -0
  71. package/src/tokens/functional/color/bgColor.json5 +24 -20
  72. package/src/tokens/functional/color/control.json5 +1087 -0
  73. package/src/tokens/functional/color/{dark/data-vis-dark.json5 → data-vis.json5} +61 -21
  74. package/src/tokens/functional/color/display.json5 +2170 -0
  75. package/src/tokens/functional/color/focus.json5 +15 -0
  76. package/src/tokens/functional/color/selection.json5 +22 -0
  77. package/src/tokens/functional/color/{light/syntax-light.json5 → syntax.json5} +187 -0
  78. package/src/tokens/functional/shadow/{light.json5 → shadow.json5} +202 -120
  79. package/dist/css/functional/motion/motion.css +0 -6
  80. package/dist/docs/functional/motion/motion.json +0 -66
  81. package/dist/fallbacks/functional/motion/motion.json +0 -6
  82. package/dist/figma/shadows/dark-colorblind.json +0 -1152
  83. package/dist/figma/shadows/dark-dimmed.json +0 -1152
  84. package/dist/figma/shadows/dark-high-contrast.json +0 -1152
  85. package/dist/figma/shadows/dark-tritanopia.json +0 -1152
  86. package/dist/figma/shadows/dark.json +0 -1152
  87. package/dist/figma/shadows/light-colorblind.json +0 -1052
  88. package/dist/figma/shadows/light-high-contrast.json +0 -1052
  89. package/dist/figma/shadows/light-tritanopia.json +0 -1052
  90. package/dist/figma/shadows/light.json +0 -1052
  91. package/dist/styleLint/functional/motion/motion.json +0 -66
  92. package/src/tokens/functional/color/dark/app-dark.json5 +0 -254
  93. package/src/tokens/functional/color/dark/display-dark.json5 +0 -1258
  94. package/src/tokens/functional/color/dark/overrides/dark.dimmed.json5 +0 -223
  95. package/src/tokens/functional/color/dark/overrides/dark.high-contrast.json5 +0 -658
  96. package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +0 -159
  97. package/src/tokens/functional/color/dark/overrides/dark.tritanopia.json5 +0 -107
  98. package/src/tokens/functional/color/dark/patterns-dark.json5 +0 -2676
  99. package/src/tokens/functional/color/dark/syntax-dark.json5 +0 -559
  100. package/src/tokens/functional/color/light/data-vis-light.json5 +0 -284
  101. package/src/tokens/functional/color/light/display-light.json5 +0 -1163
  102. package/src/tokens/functional/color/light/overrides/light.high-contrast.json5 +0 -601
  103. package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +0 -159
  104. package/src/tokens/functional/color/light/overrides/light.tritanopia.json5 +0 -97
  105. package/src/tokens/functional/color/light/patterns-light.json5 +0 -2671
  106. package/src/tokens/functional/motion/loading.json5 +0 -17
  107. package/src/tokens/functional/motion/patterns.json5 +0 -35
  108. package/src/tokens/functional/shadow/dark.json5 +0 -369
@@ -1,159 +0,0 @@
1
- /**
2
- * Light protanopia and deuteranopia (colorblind)
3
- * @extends all functional tokens
4
- * @description All overwrites for functional color tokens for light protanopia and deuteranopia color mode are in this file
5
- */
6
- {
7
- codeMirror: {
8
- syntax: {
9
- fgColor: {
10
- keyword: {
11
- $value: '{base.color.orange.5}',
12
- $type: 'color',
13
- },
14
- storage: {
15
- $value: '{base.color.orange.5}',
16
- $type: 'color',
17
- },
18
- },
19
- },
20
- },
21
- button: {
22
- primary: {
23
- bgColor: {
24
- hover: {
25
- $value: '#0864d1',
26
- $type: 'color',
27
- },
28
- active: {
29
- $value: '#075fc8',
30
- $type: 'color',
31
- },
32
- disabled: {
33
- $value: '#92caff',
34
- $type: 'color',
35
- },
36
- },
37
- shadow: {
38
- selected: {
39
- $value: [
40
- {
41
- color: '{base.color.blue.9}',
42
- alpha: 0.3,
43
- offsetX: '0px',
44
- offsetY: '1px',
45
- blur: '0px',
46
- spread: '0px',
47
- inset: true,
48
- },
49
- ],
50
- $type: 'shadow',
51
- },
52
- },
53
- },
54
- danger: {
55
- bgColor: {
56
- hover: {
57
- $value: '{base.color.orange.6}',
58
- $type: 'color',
59
- },
60
- active: {
61
- $value: '#7e2f00',
62
- $type: 'color',
63
- },
64
- },
65
- shadow: {
66
- selected: {
67
- $value: [
68
- {
69
- color: '{base.color.orange.9}',
70
- alpha: 0.2,
71
- offsetX: '0px',
72
- offsetY: '1px',
73
- blur: '0px',
74
- spread: '0px',
75
- inset: true,
76
- },
77
- ],
78
- $type: 'shadow',
79
- },
80
- },
81
- },
82
- },
83
- color: {
84
- ansi: {
85
- green: {
86
- $value: '{base.color.blue.6}',
87
- $type: 'color',
88
- },
89
- 'green-bright': {
90
- $value: '{base.color.blue.5}',
91
- $type: 'color',
92
- },
93
- red: {
94
- $value: '{base.color.orange.5}',
95
- $type: 'color',
96
- },
97
- 'red-bright': {
98
- $value: '{base.color.orange.6}',
99
- $type: 'color',
100
- },
101
- },
102
- prettylights: {
103
- syntax: {
104
- keyword: {
105
- $value: '{base.color.orange.5}',
106
- $type: 'color',
107
- },
108
- invalid: {
109
- illegal: {
110
- bg: {
111
- $value: '{base.color.orange.7}',
112
- $type: 'color',
113
- },
114
- },
115
- },
116
- carriage: {
117
- return: {
118
- bg: {
119
- $value: '{base.color.orange.5}',
120
- $type: 'color',
121
- },
122
- },
123
- },
124
- 'string-regexp': {
125
- $value: '{base.color.blue.6}',
126
- $type: 'color',
127
- },
128
- brackethighlighter: {
129
- unmatched: {
130
- $value: '{base.color.orange.7}',
131
- $type: 'color',
132
- },
133
- },
134
- markup: {
135
- deleted: {
136
- text: {
137
- $value: '{base.color.orange.7}',
138
- $type: 'color',
139
- },
140
- bg: {
141
- $value: '{base.color.orange.0}',
142
- $type: 'color',
143
- },
144
- },
145
- inserted: {
146
- text: {
147
- $value: '{base.color.blue.6}',
148
- $type: 'color',
149
- },
150
- bg: {
151
- $value: '{base.color.blue.0}',
152
- $type: 'color',
153
- },
154
- },
155
- },
156
- },
157
- },
158
- },
159
- }
@@ -1,97 +0,0 @@
1
- /**
2
- * Light tritanopia theme
3
- * @extends all functional tokens
4
- * @description All overwrites for functional color tokens for this theme are in this file
5
- */
6
- {
7
- codeMirror: {
8
- syntax: {
9
- fgColor: {
10
- variable: {
11
- $value: '{base.color.red.6}',
12
- $type: 'color',
13
- },
14
- },
15
- },
16
- },
17
- button: {
18
- primary: {
19
- bgColor: {
20
- hover: {
21
- $value: '#0864d1',
22
- $type: 'color',
23
- },
24
- active: {
25
- $value: '#075fc8',
26
- $type: 'color',
27
- },
28
- disabled: {
29
- $value: '#92caff',
30
- $type: 'color',
31
- },
32
- },
33
- shadow: {
34
- selected: {
35
- $value: [
36
- {
37
- color: '{base.color.blue.9}',
38
- alpha: 0.3,
39
- offsetX: '0px',
40
- offsetY: '1px',
41
- blur: '0px',
42
- spread: '0px',
43
- inset: true,
44
- },
45
- ],
46
- $type: 'shadow',
47
- },
48
- },
49
- },
50
- },
51
- color: {
52
- ansi: {
53
- green: {
54
- $value: '{base.color.blue.6}',
55
- $type: 'color',
56
- },
57
- 'green-bright': {
58
- $value: '{base.color.blue.5}',
59
- $type: 'color',
60
- },
61
- },
62
- prettylights: {
63
- syntax: {
64
- 'string-regexp': {
65
- $value: '{base.color.blue.6}',
66
- $type: 'color',
67
- },
68
- variable: {
69
- $value: '{base.color.red.6}',
70
- $type: 'color',
71
- },
72
- markup: {
73
- inserted: {
74
- text: {
75
- $value: '{base.color.blue.6}',
76
- $type: 'color',
77
- },
78
- bg: {
79
- $value: '{base.color.blue.0}',
80
- $type: 'color',
81
- },
82
- },
83
- changed: {
84
- text: {
85
- $value: '{base.color.red.6}',
86
- $type: 'color',
87
- },
88
- bg: {
89
- $value: '{base.color.red.1}',
90
- $type: 'color',
91
- },
92
- },
93
- },
94
- },
95
- },
96
- },
97
- }