ReviewOS

also looking at this

stacks/commshq

refactor(ui): adopt shared workspace badges

#17
Merged glennmichael123 wants to merge refactor/commshq-shared-controls into main
5 files +118 -9
config/crosswind.tsmodified+14-0
Changes to config/crosswind.ts
@@ -6,6 +6,20 @@ import type { CrosswindConfig, Theme } from '@cwcss/crosswind'
66 * Use theme entries rather than layered preflight overrides of library tokens.
77 */
88export 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 },
923 theme: {
1024 extend: {
1125 borderRadius: {