also looking at this
refactor(ui): adopt shared workspace badges
#17
5 files
+118
-9
| @@ -6,6 +6,20 @@ import type { CrosswindConfig, Theme } from '@cwcss/crosswind' | ||
| 6 | 6 | * Use theme entries rather than layered preflight overrides of library tokens. |
| 7 | 7 | */ |
| 8 | 8 | export default { |
| 9 | shortcuts: { | |
| 10 | // Preserve the existing consent pill while Badge owns its markup. Explicit | |
| 11 | // precedence is required: class attribute order does not decide CSS order. | |
| 12 | 'audience-consent-badge': 'sm:!inline !px-2.5 !py-1 !font-bold !text-[#466833] !bg-[#edf5e8] ' | |
| 13 | + 'dark:!text-[#acd294] dark:!bg-[#75a65a]/15', | |
| 14 | // These were flex items. Block-level flex avoids an extra inline baseline | |
| 15 | // inside the component scope wrapper, preserving the original row heights. | |
| 16 | 'workspace-change-badge': '!flex !px-2.5 !py-1 !font-bold !text-[11px] !leading-[inherit] ' | |
| 17 | + '!text-[#42652e] !bg-[#eef5e8] dark:!text-[#a8d28e] dark:!bg-[#75a65a]/15', | |
| 18 | 'workspace-record-badge': '!flex !py-1 !font-bold !text-[10px] !leading-[inherit] ' | |
| 19 | + '!text-[#466833] !bg-[#eef5e8] dark:!text-[#acd294] dark:!bg-[#75a65a]/15', | |
| 20 | // The readiness panel is dark in both modes, so this treatment stays fixed. | |
| 21 | 'workspace-check-badge': '!flex !py-1 !font-bold !text-[10px] !leading-[inherit] !text-[#bfe2ab] !bg-white/10', | |
| 22 | }, | |
| 9 | 23 | theme: { |
| 10 | 24 | extend: { |
| 11 | 25 | borderRadius: { |