Skip to content

Commit 44adfaf

Browse files
committed
fix(workflow): neutralize content block color
1 parent d4de73b commit 44adfaf

3 files changed

Lines changed: 18 additions & 16 deletions

File tree

apps/sim/lib/workflows/blocks/workflow-block-view-interaction.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ describe('WorkflowTypeTag colors', () => {
200200
variant: 'workflow',
201201
tone: 'purple',
202202
})
203-
expect(getWorkflowTypeAccent('knowledge')).toEqual({ variant: 'workflow', tone: 'cyan' })
203+
expect(getWorkflowTypeAccent('knowledge')).toEqual({ variant: 'workflow', tone: 'content' })
204204
})
205205

206206
it('renders compact workflow icons with their canonical fill and ink', () => {
@@ -220,8 +220,8 @@ describe('WorkflowTypeTag colors', () => {
220220
)
221221

222222
expect(host.querySelector('[data-workflow-type-icon="knowledge"]')).toHaveClass(
223-
'bg-[#00BBD0]',
224-
'text-[#1A1A1A]'
223+
'bg-[#888888]',
224+
'text-[#FFFFFF]'
225225
)
226226
expect(host.querySelector('[data-workflow-type-icon="image_generator_v2"]')).toHaveClass(
227227
'bg-[#AA00FF]',

packages/emcn/src/components/chip-tag/chip-tag.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,19 @@ import { cn } from '../../lib/cn'
3434
* icon inherits the label colour and remains the non-colour identifier.
3535
*
3636
* These are fixed brand values, not derived ones — do not "correct" a hex
37-
* for contrast or gamut. Every label is one of two inks: `#F8F8F8` when the
38-
* fill is dark, `#1A1A1A` when it is light. `#3B3B3B` appears only as
39-
* `inverse`'s fill, never as text. One value serves both modes; the tones
40-
* carry no `dark:` overrides.
37+
* for contrast or gamut. Labels use `#F8F8F8` on dark semantic fills and
38+
* `#1A1A1A` on light fills; the neutral content tone uses true white
39+
* (`#FFFFFF`) on `#888888`. `#3B3B3B` appears only as `inverse`'s fill,
40+
* never as text. One value serves both modes; the tones carry no `dark:`
41+
* overrides.
4142
*
42-
* Contrast against the paired ink varies, and two pairs sit under WCAG AA
43-
* (4.5:1) for normal text: `green` at 3.98:1 and `orange` at 3.15:1. These
44-
* are brand decisions rather than oversights. Because the label is short and
45-
* always duplicated by an icon and the block name beside it, the tag is a
46-
* redundant cue rather than the sole carrier of the information — but do not
47-
* reuse either pairing anywhere the label stands alone.
43+
* Contrast against the paired ink varies, and three pairs sit under WCAG AA
44+
* (4.5:1) for normal text: `green` at 3.98:1, `content` at 3.54:1, and
45+
* `orange` at 3.15:1. These are brand decisions rather than oversights.
46+
* Because the label is short and always duplicated by an icon and the block
47+
* name beside it, the tag is a redundant cue rather than the sole carrier of
48+
* the information — but do not reuse these pairings anywhere the label
49+
* stands alone.
4850
*
4951
* `neutral` is the only tone that is not a solid fill — neutral/system blocks
5052
* and unmapped block types read as white, outlined slots rather than as one
@@ -83,7 +85,7 @@ const chipTagVariants = cva(
8385
green: '',
8486
yellow: '',
8587
purple: '',
86-
cyan: '',
88+
content: '',
8789
},
8890
brandForeground: {
8991
light: '',
@@ -112,7 +114,7 @@ const chipTagVariants = cva(
112114
{ variant: 'workflow', tone: 'green', className: 'bg-[#188F00] text-[#F8F8F8]' },
113115
{ variant: 'workflow', tone: 'yellow', className: 'bg-[#FFEF08] text-[#1A1A1A]' },
114116
{ variant: 'workflow', tone: 'purple', className: 'bg-[#AA00FF] text-[#F8F8F8]' },
115-
{ variant: 'workflow', tone: 'cyan', className: 'bg-[#00BBD0] text-[#1A1A1A]' },
117+
{ variant: 'workflow', tone: 'content', className: 'bg-[#888888] text-[#FFFFFF]' },
116118
{ variant: 'brand', brandForeground: 'light', className: 'text-[#FFFFFF]' },
117119
{ variant: 'brand', brandForeground: 'dark', className: 'text-[#000000]' },
118120
],

packages/workflow-renderer/src/workflow-block/workflow-block-view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const WORKFLOW_ROLE_ACCENTS = {
106106
records: { variant: 'workflow', tone: 'green' },
107107
neutral: { variant: 'workflow', tone: 'neutral' },
108108
generative: { variant: 'workflow', tone: 'purple' },
109-
knowledge: { variant: 'workflow', tone: 'cyan' },
109+
knowledge: { variant: 'workflow', tone: 'content' },
110110
} as const
111111

112112
export type WorkflowTypeRole = keyof typeof WORKFLOW_ROLE_ACCENTS

0 commit comments

Comments
 (0)