@economic/taco 8.1.2-hanger-base-ui.2 → 8.1.2

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 (188) hide show
  1. package/dist/charts/components/useChartData.cjs +2 -2
  2. package/dist/charts/components/useChartData.cjs.map +1 -1
  3. package/dist/charts/components/useChartData.js +2 -2
  4. package/dist/charts/components/useChartData.js.map +1 -1
  5. package/dist/components/Backdrop/Backdrop.cjs +1 -1
  6. package/dist/components/Backdrop/Backdrop.cjs.map +1 -1
  7. package/dist/components/Backdrop/Backdrop.js +1 -1
  8. package/dist/components/Backdrop/Backdrop.js.map +1 -1
  9. package/dist/components/Button/util.cjs +3 -3
  10. package/dist/components/Button/util.cjs.map +1 -1
  11. package/dist/components/Button/util.js +3 -3
  12. package/dist/components/Button/util.js.map +1 -1
  13. package/dist/components/Card/Card.cjs +1 -1
  14. package/dist/components/Card/Card.cjs.map +1 -1
  15. package/dist/components/Card/Card.js +1 -1
  16. package/dist/components/Card/Card.js.map +1 -1
  17. package/dist/components/Checkbox/Checkbox.cjs +2 -2
  18. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  19. package/dist/components/Checkbox/Checkbox.js +2 -2
  20. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  21. package/dist/components/Datepicker/Datepicker.cjs +2 -2
  22. package/dist/components/Datepicker/Datepicker.cjs.map +1 -1
  23. package/dist/components/Datepicker/Datepicker.js +2 -2
  24. package/dist/components/Datepicker/Datepicker.js.map +1 -1
  25. package/dist/components/Drawer/components/Content.cjs +3 -3
  26. package/dist/components/Drawer/components/Content.cjs.map +1 -1
  27. package/dist/components/Drawer/components/Content.js +3 -3
  28. package/dist/components/Drawer/components/Content.js.map +1 -1
  29. package/dist/components/Drawer/util.cjs +1 -1
  30. package/dist/components/Drawer/util.cjs.map +1 -1
  31. package/dist/components/Drawer/util.js +1 -1
  32. package/dist/components/Drawer/util.js.map +1 -1
  33. package/dist/components/Field/Field.cjs +1 -1
  34. package/dist/components/Field/Field.cjs.map +1 -1
  35. package/dist/components/Field/Field.js +1 -1
  36. package/dist/components/Field/Field.js.map +1 -1
  37. package/dist/components/Hanger/Arrow.cjs +4 -3
  38. package/dist/components/Hanger/Arrow.cjs.map +1 -1
  39. package/dist/components/Hanger/Arrow.js +3 -3
  40. package/dist/components/Hanger/Arrow.js.map +1 -1
  41. package/dist/components/Hanger/Hanger.cjs +36 -33
  42. package/dist/components/Hanger/Hanger.cjs.map +1 -1
  43. package/dist/components/Hanger/Hanger.d.ts +1 -1
  44. package/dist/components/Hanger/Hanger.js +35 -33
  45. package/dist/components/Hanger/Hanger.js.map +1 -1
  46. package/dist/components/Header/Header.cjs +1 -1
  47. package/dist/components/Header/Header.cjs.map +1 -1
  48. package/dist/components/Header/Header.js +1 -1
  49. package/dist/components/Header/Header.js.map +1 -1
  50. package/dist/components/Header/components/AgreementSelector.cjs +5 -5
  51. package/dist/components/Header/components/AgreementSelector.cjs.map +1 -1
  52. package/dist/components/Header/components/AgreementSelector.js +5 -5
  53. package/dist/components/Header/components/AgreementSelector.js.map +1 -1
  54. package/dist/components/Header/components/Button.cjs +1 -1
  55. package/dist/components/Header/components/Button.cjs.map +1 -1
  56. package/dist/components/Header/components/Button.js +1 -1
  57. package/dist/components/Header/components/Button.js.map +1 -1
  58. package/dist/components/Header/components/Link.cjs +1 -1
  59. package/dist/components/Header/components/Link.cjs.map +1 -1
  60. package/dist/components/Header/components/Link.js +1 -1
  61. package/dist/components/Header/components/Link.js.map +1 -1
  62. package/dist/components/Header/components/Logo.cjs +1 -1
  63. package/dist/components/Header/components/Logo.cjs.map +1 -1
  64. package/dist/components/Header/components/Logo.js +1 -1
  65. package/dist/components/Header/components/Logo.js.map +1 -1
  66. package/dist/components/Header/components/MenuButton.cjs +1 -1
  67. package/dist/components/Header/components/MenuButton.cjs.map +1 -1
  68. package/dist/components/Header/components/MenuButton.js +1 -1
  69. package/dist/components/Header/components/MenuButton.js.map +1 -1
  70. package/dist/components/Header/components/PrimaryNavigation.cjs +1 -1
  71. package/dist/components/Header/components/PrimaryNavigation.cjs.map +1 -1
  72. package/dist/components/Header/components/PrimaryNavigation.js +1 -1
  73. package/dist/components/Header/components/PrimaryNavigation.js.map +1 -1
  74. package/dist/components/HoverCard/HoverCard.cjs +2 -2
  75. package/dist/components/HoverCard/HoverCard.cjs.map +1 -1
  76. package/dist/components/HoverCard/HoverCard.js +2 -2
  77. package/dist/components/HoverCard/HoverCard.js.map +1 -1
  78. package/dist/components/Input/util.cjs +7 -7
  79. package/dist/components/Input/util.cjs.map +1 -1
  80. package/dist/components/Input/util.js +7 -7
  81. package/dist/components/Input/util.js.map +1 -1
  82. package/dist/components/Layout/components/Sidebar.cjs +2 -2
  83. package/dist/components/Layout/components/Sidebar.cjs.map +1 -1
  84. package/dist/components/Layout/components/Sidebar.js +2 -2
  85. package/dist/components/Layout/components/Sidebar.js.map +1 -1
  86. package/dist/components/Menu/components/Item.cjs +1 -1
  87. package/dist/components/Menu/components/Item.cjs.map +1 -1
  88. package/dist/components/Menu/components/Item.js +1 -1
  89. package/dist/components/Menu/components/Item.js.map +1 -1
  90. package/dist/components/Navigation2/Navigation2.cjs +1 -1
  91. package/dist/components/Navigation2/Navigation2.cjs.map +1 -1
  92. package/dist/components/Navigation2/Navigation2.js +1 -1
  93. package/dist/components/Navigation2/Navigation2.js.map +1 -1
  94. package/dist/components/Navigation2/components/Content.cjs +1 -1
  95. package/dist/components/Navigation2/components/Content.cjs.map +1 -1
  96. package/dist/components/Navigation2/components/Content.js +1 -1
  97. package/dist/components/Navigation2/components/Content.js.map +1 -1
  98. package/dist/components/Navigation2/components/Group.cjs +1 -1
  99. package/dist/components/Navigation2/components/Group.cjs.map +1 -1
  100. package/dist/components/Navigation2/components/Group.js +1 -1
  101. package/dist/components/Navigation2/components/Group.js.map +1 -1
  102. package/dist/components/Navigation2/components/Link.cjs +1 -1
  103. package/dist/components/Navigation2/components/Link.cjs.map +1 -1
  104. package/dist/components/Navigation2/components/Link.js +1 -1
  105. package/dist/components/Navigation2/components/Link.js.map +1 -1
  106. package/dist/components/Navigation2/components/Section.cjs +1 -1
  107. package/dist/components/Navigation2/components/Section.cjs.map +1 -1
  108. package/dist/components/Navigation2/components/Section.js +1 -1
  109. package/dist/components/Navigation2/components/Section.js.map +1 -1
  110. package/dist/components/SearchInput2/SearchInput2.cjs +4 -4
  111. package/dist/components/SearchInput2/SearchInput2.cjs.map +1 -1
  112. package/dist/components/SearchInput2/SearchInput2.js +4 -4
  113. package/dist/components/SearchInput2/SearchInput2.js.map +1 -1
  114. package/dist/components/Select/useSelect.cjs.map +1 -1
  115. package/dist/components/Select/useSelect.d.ts +2 -2
  116. package/dist/components/Select/useSelect.js.map +1 -1
  117. package/dist/components/Select2/Select2.cjs +1 -1
  118. package/dist/components/Select2/Select2.cjs.map +1 -1
  119. package/dist/components/Select2/Select2.js +1 -1
  120. package/dist/components/Select2/Select2.js.map +1 -1
  121. package/dist/components/Select2/components/Option.cjs +1 -1
  122. package/dist/components/Select2/components/Option.cjs.map +1 -1
  123. package/dist/components/Select2/components/Option.js +1 -1
  124. package/dist/components/Select2/components/Option.js.map +1 -1
  125. package/dist/components/Select2/utilities.cjs +2 -2
  126. package/dist/components/Select2/utilities.cjs.map +1 -1
  127. package/dist/components/Select2/utilities.js +2 -2
  128. package/dist/components/Select2/utilities.js.map +1 -1
  129. package/dist/components/Shortcut/Shortcut.cjs +1 -1
  130. package/dist/components/Shortcut/Shortcut.cjs.map +1 -1
  131. package/dist/components/Shortcut/Shortcut.js +1 -1
  132. package/dist/components/Shortcut/Shortcut.js.map +1 -1
  133. package/dist/components/Switch/Switch.cjs +2 -2
  134. package/dist/components/Switch/Switch.cjs.map +1 -1
  135. package/dist/components/Switch/Switch.js +2 -2
  136. package/dist/components/Switch/Switch.js.map +1 -1
  137. package/dist/components/Table/components/BaseTable.cjs +1 -1
  138. package/dist/components/Table/components/BaseTable.cjs.map +1 -1
  139. package/dist/components/Table/components/BaseTable.js +1 -1
  140. package/dist/components/Table/components/BaseTable.js.map +1 -1
  141. package/dist/components/Table/util/renderRow.cjs +2 -2
  142. package/dist/components/Table/util/renderRow.cjs.map +1 -1
  143. package/dist/components/Table/util/renderRow.js +2 -2
  144. package/dist/components/Table/util/renderRow.js.map +1 -1
  145. package/dist/components/Table3/components/Row/Editing/CreateNewRow.cjs +1 -1
  146. package/dist/components/Table3/components/Row/Editing/CreateNewRow.cjs.map +1 -1
  147. package/dist/components/Table3/components/Row/Editing/CreateNewRow.js +1 -1
  148. package/dist/components/Table3/components/Row/Editing/CreateNewRow.js.map +1 -1
  149. package/dist/components/Table3/components/Row/Editing/TemporaryRow.cjs +1 -1
  150. package/dist/components/Table3/components/Row/Editing/TemporaryRow.cjs.map +1 -1
  151. package/dist/components/Table3/components/Row/Editing/TemporaryRow.js +1 -1
  152. package/dist/components/Table3/components/Row/Editing/TemporaryRow.js.map +1 -1
  153. package/dist/components/Table3/components/Toolbar/Editing/Editing.cjs +1 -1
  154. package/dist/components/Table3/components/Toolbar/Editing/Editing.cjs.map +1 -1
  155. package/dist/components/Table3/components/Toolbar/Editing/Editing.js +1 -1
  156. package/dist/components/Table3/components/Toolbar/Editing/Editing.js.map +1 -1
  157. package/dist/components/Tabs/components/TabList.cjs +1 -1
  158. package/dist/components/Tabs/components/TabList.cjs.map +1 -1
  159. package/dist/components/Tabs/components/TabList.js +1 -1
  160. package/dist/components/Tabs/components/TabList.js.map +1 -1
  161. package/dist/components/Tabs/components/Trigger.cjs +1 -1
  162. package/dist/components/Tabs/components/Trigger.cjs.map +1 -1
  163. package/dist/components/Tabs/components/Trigger.js +1 -1
  164. package/dist/components/Tabs/components/Trigger.js.map +1 -1
  165. package/dist/components/Tag/Tag.cjs +1 -1
  166. package/dist/components/Tag/Tag.cjs.map +1 -1
  167. package/dist/components/Tag/Tag.js +1 -1
  168. package/dist/components/Tag/Tag.js.map +1 -1
  169. package/dist/components/Toast/Toast.cjs +4 -4
  170. package/dist/components/Toast/Toast.cjs.map +1 -1
  171. package/dist/components/Toast/Toast.js +4 -4
  172. package/dist/components/Toast/Toast.js.map +1 -1
  173. package/dist/components/Tooltip/Tooltip.cjs +4 -4
  174. package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
  175. package/dist/components/Tooltip/Tooltip.js +4 -4
  176. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  177. package/dist/taco.css +63 -79
  178. package/dist/tailwind.colors.cjs +156 -95
  179. package/dist/tailwind.colors.cjs.map +1 -1
  180. package/dist/tailwind.colors.js +156 -95
  181. package/dist/tailwind.colors.js.map +1 -1
  182. package/dist/utils/tailwind.cjs +26 -26
  183. package/dist/utils/tailwind.cjs.map +1 -1
  184. package/dist/utils/tailwind.js +26 -26
  185. package/dist/utils/tailwind.js.map +1 -1
  186. package/package.json +6 -5
  187. package/tailwind.colors.js +206 -95
  188. package/tailwind.config.js +10 -45
@@ -1,103 +1,214 @@
1
+ /**
2
+ * Taco Tailwind color theme.
3
+ *
4
+ * Structure:
5
+ * 1. Legacy constants — colors not (yet) in the token pipeline.
6
+ * 2. Semantic constants — non-token UI colors (overlay blends, etc.).
7
+ * 3. Token maps — rename taco-tokens keys to Tailwind family/shade tuples.
8
+ * 4. palette — assembled from all token maps; mutated to add DEFAULT shades.
9
+ * 5. THEME_COLORS — the final export consumed by tailwind.config.js.
10
+ *
11
+ * To add a new token-backed color family: add rows to the relevant *_MAP and a
12
+ * `palette.<family>` entry in THEME_COLORS. Do NOT edit taco-tokens — it is generated.
13
+ */
14
+ import { primaryColors, secondaryColors, tertiaryColors, neutralColors, brandColors } from '@economic/taco-tokens/tokens';
15
+
16
+ // ─── 1. Legacy constants ──────────────────────────────────────────────────────
17
+
18
+ // Not generated in tokens: TODO: Map and remove post color palette update
19
+ const LEGACY_BROWN = {
20
+ 100: '#EEE0DA', // Used in Badge component
21
+ 300: '#C4AB9E', // Client: Used in paymentcards
22
+ 500: '#93715D', // Client: Used in paymentcards, invoicing dashboard
23
+ 700: '#73503B', // Client: Used in paymentcards, invoicing dashboard
24
+ 900: '#45291F', // Used in Badge component
25
+ };
26
+
27
+ // Not generated in tokens: TODO: Map and remove post color palette update */
28
+ const LEGACY_ORANGE = {
29
+ 100: '#FFE3BB', // Used in Badge component
30
+ 300: '#FAB64D', // Client: Used in paymentcards, workflows
31
+ 500: '#F99702', // Client: Used in Avatar component
32
+ 700: '#EF7D00', // Client: Used in paymentcards
33
+ 900: '#4A2811', // Used in Badge component
34
+ };
35
+
36
+ // ─── 2. Semantic constants ────────────────────────────────────────────────────
37
+
38
+ /** Not in tokens: 7% tacoNeutralBlack over transparent → `bg-black-subtle`. */
39
+ const BLACK_SUBTLE_ALPHA = 7;
40
+ const BLACK_SUBTLE = `color-mix(in oklab, ${neutralColors.tacoNeutralBlack} ${BLACK_SUBTLE_ALPHA}%, transparent)`;
41
+
42
+ /** Not in tokens: 8% tacoNeutralWhite over transparent → `bg-white-subtle`. */
43
+ const WHITE_SUBTLE_ALPHA = 8;
44
+ const WHITE_SUBTLE = `color-mix(in oklab, ${neutralColors.tacoNeutralWhite} ${WHITE_SUBTLE_ALPHA}%, transparent)`;
45
+
46
+ // ─── 3. Token maps ────────────────────────────────────────────────────────────
47
+
48
+ /**
49
+ * Maps token keys from a source object into a `{ [family]: { [shade]: hex } }` structure
50
+ * that Tailwind can consume as a color scale.
51
+ *
52
+ * @param {Record<string, string>} source - A taco-tokens export (e.g. `primaryColors`).
53
+ * @param {ReadonlyArray<readonly [string, string, string | number]>} rows - Each row is
54
+ * [tokenKey, tailwindFamily, tailwindShade], e.g. ['tacoBlue500', 'blue', 500].
55
+ * @returns {Record<string, Record<string | number, string>>}
56
+ */
57
+ const assignTokenShades = (source, rows) => {
58
+ const out = {};
59
+ for (const [tokenKey, family, shade] of rows) {
60
+ const value = source[tokenKey];
61
+ if (value === undefined) {
62
+ continue;
63
+ }
64
+ if (!out[family]) {
65
+ out[family] = {};
66
+ }
67
+ out[family][shade] = value;
68
+ }
69
+ return out;
70
+ };
71
+
72
+ const PRIMARY_MAP = [
73
+ ['tacoBlue50', 'blue', 50],
74
+ ['tacoBlue100', 'blue', 100],
75
+ ['tacoBlue200', 'blue', 200],
76
+ ['tacoBlue300', 'blue', 300],
77
+ ['tacoBlue500', 'blue', 500],
78
+ ['tacoBlue700', 'blue', 700],
79
+ ['tacoBlue900', 'blue', 900],
80
+ ['tacoGray50', 'gray', 50],
81
+ ['tacoGray100', 'gray', 100],
82
+ ['tacoGray200', 'gray', 200],
83
+ ['tacoGray300', 'gray', 300],
84
+ ['tacoGray500', 'gray', 500],
85
+ ['tacoGray700', 'gray', 700],
86
+ ['tacoGray900', 'gray', 900],
87
+ ];
88
+
89
+ const SECONDARY_MAP = [
90
+ ['tacoRed50', 'red', 50],
91
+ ['tacoRed100', 'red', 100],
92
+ ['tacoRed200', 'red', 200],
93
+ ['tacoRed300', 'red', 300],
94
+ ['tacoRed500', 'red', 500],
95
+ ['tacoRed700', 'red', 700],
96
+ ['tacoRed900', 'red', 900],
97
+ ['tacoYellow50', 'yellow', 50],
98
+ ['tacoYellow100', 'yellow', 100],
99
+ ['tacoYellow200', 'yellow', 200],
100
+ ['tacoYellow300', 'yellow', 300],
101
+ ['tacoYellow500', 'yellow', 500],
102
+ ['tacoYellow700', 'yellow', 700],
103
+ ['tacoYellow900', 'yellow', 900],
104
+ ['tacoGreen50', 'green', 50],
105
+ ['tacoGreen100', 'green', 100],
106
+ ['tacoGreen200', 'green', 200],
107
+ ['tacoGreen300', 'green', 300],
108
+ ['tacoGreen500', 'green', 500],
109
+ ['tacoGreen700', 'green', 700],
110
+ ['tacoGreen900', 'green', 900],
111
+ ];
112
+
113
+ const TERTIARY_MAP = [
114
+ ['tacoPink50', 'pink', 50],
115
+ ['tacoPink100', 'pink', 100],
116
+ ['tacoPink200', 'pink', 200],
117
+ ['tacoPink300', 'pink', 300],
118
+ ['tacoPink500', 'pink', 500],
119
+ ['tacoPink700', 'pink', 700],
120
+ ['tacoPink900', 'pink', 900],
121
+ ['tacoPurple50', 'purple', 50],
122
+ ['tacoPurple100', 'purple', 100],
123
+ ['tacoPurple200', 'purple', 200],
124
+ ['tacoPurple300', 'purple', 300],
125
+ ['tacoPurple500', 'purple', 500],
126
+ ['tacoPurple700', 'purple', 700],
127
+ ['tacoPurple900', 'purple', 900],
128
+ ];
129
+
130
+ /**
131
+ * Matches --taco-neutral-white / --taco-neutral-black in tokens.css.
132
+ * Note: palette.neutral.white / .black are not exposed in THEME_COLORS — `white` and `black`
133
+ * are set directly from neutralColors instead to keep utilities flat (bg-white, not bg-neutral-white).
134
+ */
135
+ const NEUTRAL_MAP = [
136
+ ['tacoNeutralWhite', 'neutral', 'white'],
137
+ ['tacoNeutralBlack', 'neutral', 'black'],
138
+ ];
139
+
140
+ // ─── 4. Palette assembly ──────────────────────────────────────────────────────
141
+
142
+ const fromPrimary = assignTokenShades(primaryColors, PRIMARY_MAP);
143
+ const fromSecondary = assignTokenShades(secondaryColors, SECONDARY_MAP);
144
+ const fromTertiary = assignTokenShades(tertiaryColors, TERTIARY_MAP);
145
+ const fromNeutral = assignTokenShades(neutralColors, NEUTRAL_MAP);
146
+
147
+ const mergeFamilies = (...parts) => {
148
+ const merged = {};
149
+ for (const part of parts) {
150
+ for (const [family, shades] of Object.entries(part)) {
151
+ merged[family] = { ...merged[family], ...shades };
152
+ }
153
+ }
154
+ return merged;
155
+ };
156
+
157
+ const palette = mergeFamilies(fromPrimary, fromSecondary, fromTertiary, fromNeutral);
158
+
159
+ // `DEFAULT` lets Tailwind resolve bare utilities (e.g. `bg-blue` → blue-500, `text-red` → red-500).
160
+ palette.blue = {
161
+ DEFAULT: primaryColors.tacoBlue500,
162
+ ...palette.blue,
163
+ };
164
+
165
+ palette.red = {
166
+ DEFAULT: secondaryColors.tacoRed500,
167
+ ...palette.red,
168
+ };
169
+
170
+ palette.green = {
171
+ DEFAULT: secondaryColors.tacoGreen500,
172
+ ...palette.green,
173
+ };
174
+
175
+ palette.yellow = {
176
+ DEFAULT: secondaryColors.tacoYellow500,
177
+ ...palette.yellow,
178
+ };
179
+
180
+ palette.gray = {
181
+ DEFAULT: primaryColors.tacoGray50,
182
+ ...palette.gray,
183
+ };
184
+
185
+ // ─── 5. Theme colors ──────────────────────────────────────────────────────────
186
+
1
187
  const THEME_COLORS = {
2
188
  transparent: 'transparent',
3
189
  current: 'currentColor',
4
- white: '#fff',
5
- black: '#1c1c1c',
190
+ white: neutralColors.tacoNeutralWhite,
191
+ black: neutralColors.tacoNeutralBlack,
192
+ 'black-subtle': BLACK_SUBTLE,
193
+ 'white-subtle': WHITE_SUBTLE,
6
194
  brand: {
7
- vismaRed: '#E70641',
8
- paleOrange: '#FFF5E5',
9
- sunsetOrange: '#E89C2E',
10
- midnightBlue: '#29283E',
11
- coolBlue: '#F5F7F9',
12
- },
13
- grey: {
14
- DEFAULT: '#EBEBEB',
15
- 50: '#fafafa',
16
- 100: '#F6F6F6',
17
- 200: '#EBEBEB',
18
- 300: '#DDDDDD',
19
- 500: '#ACACAC',
20
- 700: '#595959',
21
- 900: '#303030',
22
- },
23
- gray: {
24
- DEFAULT: '#EBEBEB',
25
- 50: '#fafafa',
26
- 100: '#F6F6F6',
27
- 200: '#EBEBEB',
28
- 300: '#DDDDDD',
29
- 500: '#ACACAC',
30
- 700: '#595959',
31
- 900: '#303030',
32
- },
33
- purple: {
34
- 100: '#EEE5FF',
35
- 200: '#ddd1ff',
36
- 300: '#CBBCFE',
37
- 500: '#9270FA',
38
- 700: '#6542D1',
39
- 900: '#412970',
40
- },
41
- blue: {
42
- DEFAULT: '#4573D2',
43
- 100: '#DEEBFF',
44
- 200: '#AACCFF',
45
- 300: '#75A0F5',
46
- 500: '#4573D2',
47
- 700: '#2B57B4',
48
- 900: '#29283E',
49
- },
50
- red: {
51
- DEFAULT: '#CE3F42',
52
- 100: '#FFDAD2',
53
- 200: '#f3a09d',
54
- 300: '#E66568',
55
- 500: '#CE3F42',
56
- 700: '#950027',
57
- 900: '#64001B',
58
- },
59
- green: {
60
- DEFAULT: '#08AE87',
61
- 100: '#cdf0e7',
62
- 200: '#9be1ce',
63
- 300: '#52C7AB',
64
- 500: '#08AE87',
65
- 700: '#028465',
66
- 900: '#14493A',
67
- },
68
- yellow: {
69
- DEFAULT: '#FFBD3B',
70
- 100: '#FFF1C3',
71
- 200: '#ffe494',
72
- 300: '#FFD665',
73
- 500: '#FFBD3B',
74
- 700: '#e89c2e',
75
- 900: '#733700',
76
- },
77
- pink: {
78
- 100: '#FFE3F7',
79
- 200: '#fcb9e9',
80
- 300: '#F98EDB',
81
- 500: '#E165BF',
82
- 700: '#CF49AA',
83
- 900: '#870062',
84
- },
85
- brown: {
86
- 100: '#EEE0DA',
87
- 200: '#DFCCC2',
88
- 300: '#C4AB9E',
89
- 500: '#93715D',
90
- 700: '#73503B',
91
- 900: '#45291F',
92
- },
93
- orange: {
94
- 100: '#FFE3BB',
95
- 200: '#FCCB80',
96
- 300: '#FAB64D',
97
- 500: '#F99702',
98
- 700: '#EF7D00',
99
- 900: '#4A2811',
195
+ morning: brandColors.tacoBrandMorning,
196
+ noon: brandColors.tacoBrandNoon,
197
+ sunset: brandColors.tacoBrandSunset,
198
+ midnight: brandColors.tacoBrandMidnight,
100
199
  },
200
+ /** Alias for `gray` — supports both spellings in className strings. */
201
+ grey: { ...palette.gray },
202
+ gray: palette.gray,
203
+ neutral: palette.neutral,
204
+ purple: palette.purple,
205
+ blue: palette.blue,
206
+ red: palette.red,
207
+ green: palette.green,
208
+ yellow: palette.yellow,
209
+ pink: palette.pink,
210
+ brown: LEGACY_BROWN,
211
+ orange: LEGACY_ORANGE,
101
212
  };
102
213
 
103
214
  export default THEME_COLORS;
@@ -7,6 +7,7 @@ import { borderRadius, typography } from '@economic/taco-tokens/tokens';
7
7
 
8
8
  module.exports = {
9
9
  theme: {
10
+ /** Semantic / non-token colors (e.g. `black-subtle`, `white-subtle`): see `./tailwind.colors.js` */
10
11
  colors,
11
12
  fontFamily: {
12
13
  display: ['Helvetica, Arial, sans-serif'],
@@ -162,7 +163,7 @@ module.exports = {
162
163
  },
163
164
  '.wcag-green-500': {
164
165
  background: theme('colors.green.500'),
165
- color: theme('colors.black'),
166
+ color: theme('colors.white'),
166
167
  },
167
168
  '.wcag-green-700': {
168
169
  background: theme('colors.green.700'),
@@ -173,8 +174,8 @@ module.exports = {
173
174
  color: theme('colors.yellow.900'),
174
175
  },
175
176
  '.wcag-yellow-500': {
176
- background: theme('colors.yellow.500'),
177
- color: theme('colors.yellow.900'),
177
+ background: theme('colors.yellow.200'),
178
+ color: theme('colors.black'),
178
179
  },
179
180
  '.wcag-yellow-700': {
180
181
  background: theme('colors.yellow.700'),
@@ -188,29 +189,13 @@ module.exports = {
188
189
  background: theme('colors.purple.700'),
189
190
  color: theme('colors.white'),
190
191
  },
191
- '.wcag-brown-100': {
192
- background: theme('colors.brown.100'),
193
- color: theme('colors.brown.900'),
194
- },
195
- '.wcag-brown-700': {
196
- background: theme('colors.brown.700'),
197
- color: theme('colors.white'),
198
- },
199
192
  '.wcag-pink-100': {
200
193
  background: theme('colors.pink.100'),
201
194
  color: theme('colors.pink.900'),
202
195
  },
203
196
  '.wcag-pink-500': {
204
197
  background: theme('colors.pink.500'),
205
- color: theme('colors.black'),
206
- },
207
- '.wcag-orange-100': {
208
- background: theme('colors.orange.100'),
209
- color: theme('colors.orange.900'),
210
- },
211
- '.wcag-orange-700': {
212
- background: theme('colors.orange.700'),
213
- color: theme('colors.orange.900'),
198
+ color: theme('colors.white'),
214
199
  },
215
200
  // Legacy
216
201
  '.yt-transparent': {
@@ -251,46 +236,26 @@ module.exports = {
251
236
  color: theme('colors.blue.500'),
252
237
  },
253
238
  '.yt-yellow-solid': {
254
- background: theme('colors.yellow.500'),
239
+ background: theme('colors.yellow.200'),
255
240
  color: theme('colors.black'),
256
241
  },
257
- '.yt-yellow-inverted': {
258
- background: theme('colors.transparent'),
259
- border: `1px solid ${theme('colors.yellow.700')}`,
260
- color: theme('colors.yellow.700'),
261
- },
262
242
  '.yt-red-solid': {
263
243
  background: theme('colors.red.500'),
264
244
  color: theme('colors.white'),
265
245
  },
266
- '.yt-red-inverted': {
267
- background: theme('colors.transparent'),
268
- border: `1px solid ${theme('colors.red.500')}`,
269
- color: theme('colors.red.500'),
270
- },
271
246
  '.yt-green-solid': {
272
- background: theme('colors.green.700'),
247
+ background: theme('colors.green.500'),
273
248
  color: theme('colors.white'),
274
249
  },
275
- '.yt-green-inverted': {
276
- background: theme('colors.transparent'),
277
- border: `1px solid ${theme('colors.green.700')}`,
278
- color: theme('colors.green.700'),
279
- },
280
250
  '.yt-grey-solid': {
281
- background: theme('colors.gray.200'),
251
+ background: theme('colors.gray.100'),
282
252
  color: theme('colors.black'),
283
253
  },
284
- '.yt-grey-inverted': {
285
- background: theme('colors.transparent'),
286
- border: `1px solid ${theme('colors.gray.700')}`,
287
- color: theme('colors.gray.700'),
288
- },
289
254
  '.yt-shadow': {
290
- 'box-shadow': '0px 1px 3px 1px rgba(89, 85, 98, 0.35), 0px 0px 1px 0px rgba(89, 85, 98, 0.2)',
255
+ 'box-shadow': '0px 1px 3px 1px rgba(89, 85, 98, 0.15), 0px 0px 1px 0px rgba(89, 85, 98, 0.2)',
291
256
  },
292
257
  '.yt-shadow-inset': {
293
- 'box-shadow': 'inset 0px 1px 4px 0px rgba(89, 85, 98, 0.3), inset 0px 0px 1px 0px rgba(89, 85, 98, 0.2)',
258
+ 'box-shadow': 'inset 0px 1px 4px 0px rgba(89, 85, 98, 0.175), inset 0px 0px 1px 0px rgba(89, 85, 98, 0.2)',
294
259
  },
295
260
  '.pointer-events-all': {
296
261
  'pointer-events': 'all',