Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(storybook): replace failing WCAG AA annotation colours across all stories (#4311)

Ojas Mutrejae314f1913bba
diff --git a/apps/storybook/stories/Button.stories.tsx b/apps/storybook/stories/Button.stories.tsx
index 3e2114c853..86d9fd32ef 100644
--- a/apps/storybook/stories/Button.stories.tsx
+++ b/apps/storybook/stories/Button.stories.tsx
@@ -319,7 +319,12 @@ export const Truncation: Story = {
render: () => (
<div style={{display: 'flex', flexDirection: 'column', gap: '16px'}}>
<div>
- <p style={{fontSize: 12, color: '#666', marginBottom: 8}}>
+ <p
+ style={{
+ fontSize: 12,
+ color: 'var(--color-text-secondary)',
+ marginBottom: 8,
+ }}>
200px container — label truncates with ellipsis
</p>
<div style={{width: 200, border: '1px dashed #ccc', padding: 4}}>
@@ -331,7 +336,12 @@ export const Truncation: Story = {
</div>
</div>
<div>
- <p style={{fontSize: 12, color: '#666', marginBottom: 8}}>
+ <p
+ style={{
+ fontSize: 12,
+ color: 'var(--color-text-secondary)',
+ marginBottom: 8,
+ }}>
Flex row with limited space — button shrinks gracefully
</p>
<div style={{display: 'flex', gap: 8, maxWidth: 320}}>
@@ -346,7 +356,12 @@ export const Truncation: Story = {
</div>
</div>
<div>
- <p style={{fontSize: 12, color: '#666', marginBottom: 8}}>
+ <p
+ style={{
+ fontSize: 12,
+ color: 'var(--color-text-secondary)',
+ marginBottom: 8,
+ }}>
Unconstrained — renders at natural width
</p>
<Button
@@ -364,7 +379,12 @@ export const Elevations: Story = {
<div style={{display: 'flex', gap: 24, alignItems: 'center'}}>
{(['none', 'low', 'med', 'high'] as const).map(elevation => (
<div key={elevation} style={{textAlign: 'center'}}>
- <p style={{fontSize: 12, color: '#666', marginBottom: 8}}>
+ <p
+ style={{
+ fontSize: 12,
+ color: 'var(--color-text-secondary)',
+ marginBottom: 8,
+ }}>
elevation=&quot;{elevation}&quot;
</p>
<Button label={elevation} variant="primary" elevation={elevation} />
diff --git a/apps/storybook/stories/Calendar.stories.tsx b/apps/storybook/stories/Calendar.stories.tsx
index ba220d78cb..edf6c2c0d2 100644
--- a/apps/storybook/stories/Calendar.stories.tsx
+++ b/apps/storybook/stories/Calendar.stories.tsx
@@ -342,7 +342,12 @@ export const AllVariations: Story = {
onChange={val => setSingleValue(val)}
focusDate="2026-01-01"
/>
- <p style={{marginTop: '8px', fontSize: '14px', color: '#666'}}>
+ <p
+ style={{
+ marginTop: '8px',
+ fontSize: '14px',
+ color: 'var(--color-text-secondary)',
+ }}>
Selected: {singleValue ?? 'None'}
</p>
</div>
@@ -356,7 +361,12 @@ export const AllVariations: Story = {
onChange={range => setRangeValue(range)}
focusDate="2026-01-01"
/>
- <p style={{marginTop: '8px', fontSize: '14px', color: '#666'}}>
+ <p
+ style={{
+ marginTop: '8px',
+ fontSize: '14px',
+ color: 'var(--color-text-secondary)',
+ }}>
Range:{' '}
{rangeValue
? `${rangeValue.start} to ${rangeValue.end}`
@@ -374,7 +384,12 @@ export const AllVariations: Story = {
onChange={val => setConstrainedValue(val)}
focusDate="2026-01-01"
/>
- <p style={{marginTop: '8px', fontSize: '14px', color: '#666'}}>
+ <p
+ style={{
+ marginTop: '8px',
+ fontSize: '14px',
+ color: 'var(--color-text-secondary)',
+ }}>
Selected: {constrainedValue ?? 'None'}
</p>
</div>
diff --git a/apps/storybook/stories/Chat.stories.tsx b/apps/storybook/stories/Chat.stories.tsx
index dd9012c50f..442edaf176 100644
--- a/apps/storybook/stories/Chat.stories.tsx
+++ b/apps/storybook/stories/Chat.stories.tsx
@@ -286,7 +286,7 @@ export const ChatConversation: StoryObj = {
const nameStyle = {
fontSize: 12,
fontWeight: 600,
- color: '#666',
+ color: 'var(--color-text-secondary)',
lineHeight: '16px',
};
return (
diff --git a/apps/storybook/stories/ChatComposerInput.stories.tsx b/apps/storybook/stories/ChatComposerInput.stories.tsx
index 8f41893073..d046798af5 100644
--- a/apps/storybook/stories/ChatComposerInput.stories.tsx
+++ b/apps/storybook/stories/ChatComposerInput.stories.tsx
@@ -114,7 +114,12 @@ export const Controlled: Story = {
/>
}
/>
- <div style={{fontSize: 12, fontFamily: 'monospace', color: '#888'}}>
+ <div
+ style={{
+ fontSize: 12,
+ fontFamily: 'monospace',
+ color: 'var(--color-text-secondary)',
+ }}>
Value: {JSON.stringify(value)}
</div>
</div>
@@ -140,9 +145,7 @@ export const Disabled: Story = {
<ChatComposer
onSubmit={() => {}}
isDisabled
- input={
- <ChatComposerInput isDisabled placeholder="Input is disabled" />
- }
+ input={<ChatComposerInput isDisabled placeholder="Input is disabled" />}
/>
),
};
@@ -175,7 +178,12 @@ export const MessageHistory: Story = {
}
/>
{log.length > 0 && (
- <div style={{fontSize: 12, fontFamily: 'monospace', color: '#666'}}>
+ <div
+ style={{
+ fontSize: 12,
+ fontFamily: 'monospace',
+ color: 'var(--color-text-secondary)',
+ }}>
{log.map((msg, i) => (
<div key={i}>→ {msg}</div>
))}
@@ -202,7 +210,7 @@ export const FilePaste: Story = {
}
/>
{files.length > 0 && (
- <div style={{fontSize: 12, color: '#666'}}>
+ <div style={{fontSize: 12, color: 'var(--color-text-secondary)'}}>
Files: {files.join(', ')}
</div>
)}
@@ -252,11 +260,21 @@ export const MentionTrigger: Story = {
/>
}
/>
- <div style={{fontSize: 12, fontFamily: 'monospace', color: '#888'}}>
+ <div
+ style={{
+ fontSize: 12,
+ fontFamily: 'monospace',
+ color: 'var(--color-text-secondary)',
+ }}>
Value: {JSON.stringify(value)}
</div>
{log.length > 0 && (
- <div style={{fontSize: 12, fontFamily: 'monospace', color: '#666'}}>
+ <div
+ style={{
+ fontSize: 12,
+ fontFamily: 'monospace',
+ color: 'var(--color-text-secondary)',
+ }}>
{log.map((msg, i) => (
<div key={i}>→ {msg}</div>
))}
@@ -370,7 +388,12 @@ export const MultipleTriggers: Story = {
/>
}
/>
- <div style={{fontSize: 12, fontFamily: 'monospace', color: '#888'}}>
+ <div
+ style={{
+ fontSize: 12,
+ fontFamily: 'monospace',
+ color: 'var(--color-text-secondary)',
+ }}>
Value: {JSON.stringify(value)}
</div>
</div>
diff --git a/apps/storybook/stories/ChatReasoning.stories.tsx b/apps/storybook/stories/ChatReasoning.stories.tsx
index d82e8b8474..5fe37a4074 100644
--- a/apps/storybook/stories/ChatReasoning.stories.tsx
+++ b/apps/storybook/stories/ChatReasoning.stories.tsx
@@ -67,7 +67,12 @@ export const Streaming: StoryObj = {
Working through the combinatorial constraints...
</ChatReasoning>
{!streaming && (
- <p style={{marginTop: 8, fontSize: 13, color: '#888'}}>
+ <p
+ style={{
+ marginTop: 8,
+ fontSize: 13,
+ color: 'var(--color-text-secondary)',
+ }}>
(Shimmer stopped after 5s)
</p>
)}
diff --git a/apps/storybook/stories/CodeEditorPerf.stories.tsx b/apps/storybook/stories/CodeEditorPerf.stories.tsx
index 74f6da3439..08250a35f3 100644
--- a/apps/storybook/stories/CodeEditorPerf.stories.tsx
+++ b/apps/storybook/stories/CodeEditorPerf.stories.tsx
@@ -50,7 +50,7 @@ function Metric({label, value}: {label: string; value: string | number}) {
fontSize: 12,
fontFamily: 'monospace',
}}>
- <span style={{color: '#666'}}>{label}:</span>
+ <span style={{color: 'var(--color-text-secondary)'}}>{label}:</span>
<strong>{value}</strong>
</div>
);
@@ -201,7 +201,7 @@ function TypingLatencyImpl() {
<Metric label="Avg" value={`${avgLatency.toFixed(1)}ms`} />
<Metric label="Max" value={`${maxLatency.toFixed(1)}ms`} />
<Metric label="Samples" value={latencies.length} />
- <span style={{fontSize: 11, color: '#888'}}>
+ <span style={{fontSize: 11, color: 'var(--color-text-secondary)'}}>
Type in the editor to measure input latency
</span>
</div>
diff --git a/apps/storybook/stories/CodeEditorTheme.stories.tsx b/apps/storybook/stories/CodeEditorTheme.stories.tsx
index 667ad978ca..d3c0e24947 100644
--- a/apps/storybook/stories/CodeEditorTheme.stories.tsx
+++ b/apps/storybook/stories/CodeEditorTheme.stories.tsx
@@ -179,7 +179,7 @@ function GalleryEditor({
style={{
fontSize: 11,
fontWeight: 600,
- color: '#888',
+ color: 'var(--color-text-secondary)',
marginBottom: 4,
fontFamily: 'monospace',
}}>
diff --git a/apps/storybook/stories/Icon.stories.tsx b/apps/storybook/stories/Icon.stories.tsx
index c8fb1b261d..8e8ff83c86 100644
--- a/apps/storybook/stories/Icon.stories.tsx
+++ b/apps/storybook/stories/Icon.stories.tsx
@@ -204,7 +204,9 @@ export const OutlineVsSolid: Story = {
gap: '8px',
}}>
<Icon icon={HeartIcon} size="lg" color="error" />
- <span style={{fontSize: '12px', color: '#666'}}>Outline</span>
+ <span style={{fontSize: '12px', color: 'var(--color-text-secondary)'}}>
+ Outline
+ </span>
</div>
<div
style={{
@@ -214,7 +216,9 @@ export const OutlineVsSolid: Story = {
gap: '8px',
}}>
<Icon icon={HeartIconSolid} size="lg" color="error" />
- <span style={{fontSize: '12px', color: '#666'}}>Solid</span>
+ <span style={{fontSize: '12px', color: 'var(--color-text-secondary)'}}>
+ Solid
+ </span>
</div>
<div
style={{
@@ -224,7 +228,9 @@ export const OutlineVsSolid: Story = {
gap: '8px',
}}>
<Icon icon={StarIcon} size="lg" color="warning" />
- <span style={{fontSize: '12px', color: '#666'}}>Outline</span>
+ <span style={{fontSize: '12px', color: 'var(--color-text-secondary)'}}>
+ Outline
+ </span>
</div>
<div
style={{
@@ -234,7 +240,9 @@ export const OutlineVsSolid: Story = {
gap: '8px',
}}>
<Icon icon={StarIconSolid} size="lg" color="warning" />
- <span style={{fontSize: '12px', color: '#666'}}>Solid</span>
+ <span style={{fontSize: '12px', color: 'var(--color-text-secondary)'}}>
+ Solid
+ </span>
</div>
</div>
),
diff --git a/apps/storybook/stories/Markdown.stories.tsx b/apps/storybook/stories/Markdown.stories.tsx
index cfd3a49808..f69d05b759 100644
--- a/apps/storybook/stories/Markdown.stories.tsx
+++ b/apps/storybook/stories/Markdown.stories.tsx
@@ -282,7 +282,7 @@ export const Streaming: Story = {
onClick={replay}
isDisabled={isStreaming}
/>
- <span style={{fontSize: 12, color: '#666'}}>
+ <span style={{fontSize: 12, color: 'var(--color-text-secondary)'}}>
{isStreaming
? `Streaming... ${charIndex}/${text.length}`
: 'Complete'}
diff --git a/apps/storybook/stories/MarkdownCitations.stories.tsx b/apps/storybook/stories/MarkdownCitations.stories.tsx
index 39813bace4..76a5c1470d 100644
--- a/apps/storybook/stories/MarkdownCitations.stories.tsx
+++ b/apps/storybook/stories/MarkdownCitations.stories.tsx
@@ -167,7 +167,7 @@ export const StreamingWithCitations: Story = {
onClick={replay}
isDisabled={isStreaming}
/>
- <span style={{fontSize: 12, color: '#666'}}>
+ <span style={{fontSize: 12, color: 'var(--color-text-secondary)'}}>
{isStreaming
? `Streaming... ${charIndex}/${text.length}`
: 'Complete'}
diff --git a/apps/storybook/stories/NumberInput.stories.tsx b/apps/storybook/stories/NumberInput.stories.tsx
index e1b486296f..95ce1162d0 100644
--- a/apps/storybook/stories/NumberInput.stories.tsx
+++ b/apps/storybook/stories/NumberInput.stories.tsx
@@ -653,7 +653,12 @@ export const WithEventHandlers: Story = {
onBlur={() => addEvent('onBlur')}
onEnter={() => addEvent('onEnter')}
/>
- <div style={{marginTop: '16px', fontSize: '12px', color: '#666'}}>
+ <div
+ style={{
+ marginTop: '16px',
+ fontSize: '12px',
+ color: 'var(--color-text-secondary)',
+ }}>
<strong>Events:</strong>
<ul style={{margin: '4px 0', paddingLeft: '20px'}}>
{events.map((event, i) => (
diff --git a/apps/storybook/stories/PowerSearch.stories.tsx b/apps/storybook/stories/PowerSearch.stories.tsx
index 56b0543fee..7857ecfcda 100644
--- a/apps/storybook/stories/PowerSearch.stories.tsx
+++ b/apps/storybook/stories/PowerSearch.stories.tsx
@@ -1526,7 +1526,12 @@ export const WithCustomComponents: Story = {
onChange={newFilters => setFilters([...newFilters])}
components={customComponents}
/>
- <p style={{marginTop: 16, fontSize: 13, color: '#666'}}>
+ <p
+ style={{
+ marginTop: 16,
+ fontSize: 13,
+ color: 'var(--color-text-secondary)',
+ }}>
<strong>Custom overrides:</strong> Status tokens show colored text
(custom Token). Integer fields use a range slider editor (custom
Editor).
diff --git a/apps/storybook/stories/SegmentedControl.stories.tsx b/apps/storybook/stories/SegmentedControl.stories.tsx
index 38cfdbf2dd..250220409c 100644
--- a/apps/storybook/stories/SegmentedControl.stories.tsx
+++ b/apps/storybook/stories/SegmentedControl.stories.tsx
@@ -127,7 +127,12 @@ export const SizeVariants: Story = {
return (
<div style={{display: 'flex', flexDirection: 'column', gap: '24px'}}>
<div>
- <div style={{marginBottom: '8px', fontSize: '12px', color: '#666'}}>
+ <div
+ style={{
+ marginBottom: '8px',
+ fontSize: '12px',
+ color: 'var(--color-text-secondary)',
+ }}>
Small
</div>
<SegmentedControl
@@ -141,7 +146,12 @@ export const SizeVariants: Story = {
</SegmentedControl>
</div>
<div>
- <div style={{marginBottom: '8px', fontSize: '12px', color: '#666'}}>
+ <div
+ style={{
+ marginBottom: '8px',
+ fontSize: '12px',
+ color: 'var(--color-text-secondary)',
+ }}>
Medium (default)
</div>
<SegmentedControl
@@ -155,7 +165,12 @@ export const SizeVariants: Story = {
</SegmentedControl>
</div>
<div>
- <div style={{marginBottom: '8px', fontSize: '12px', color: '#666'}}>
+ <div
+ style={{
+ marginBottom: '8px',
+ fontSize: '12px',
+ color: 'var(--color-text-secondary)',
+ }}>
Large
</div>
<SegmentedControl
diff --git a/apps/storybook/stories/TabList.stories.tsx b/apps/storybook/stories/TabList.stories.tsx
index a6c001c1fc..306f2a7792 100644
--- a/apps/storybook/stories/TabList.stories.tsx
+++ b/apps/storybook/stories/TabList.stories.tsx
@@ -94,7 +94,7 @@ export const SizeVariants: Story = {
style={{
marginBottom: '8px',
fontSize: '12px',
- color: '#666',
+ color: 'var(--color-text-secondary)',
fontFamily: 'monospace',
}}>
size=\"{size}\"
@@ -242,7 +242,11 @@ export const DividerGap: Story = {
<div
key={size}
style={{display: 'flex', flexDirection: 'column', gap: '8px'}}>
- <span style={{font: '600 12px system-ui', color: '#4E606F'}}>
+ <span
+ style={{
+ font: '600 12px system-ui',
+ color: 'var(--color-text-secondary)',
+ }}>
size=&quot;{size}&quot; · hasDivider · matched Button size
</span>
<TabList
diff --git a/apps/storybook/stories/TableColumnResize.stories.tsx b/apps/storybook/stories/TableColumnResize.stories.tsx
index 1bb559dacf..c5dda36268 100644
--- a/apps/storybook/stories/TableColumnResize.stories.tsx
+++ b/apps/storybook/stories/TableColumnResize.stories.tsx
@@ -95,7 +95,12 @@ export const Default: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Drag the right edge of any column header to resize. The last
proportional column has no handle; it flexes to fill remaining space.
</p>
@@ -128,7 +133,12 @@ export const WithMinMaxConstraints: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Columns are constrained between 80px and 300px.
</p>
<Table
@@ -158,7 +168,12 @@ export const PersistingWidths: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Current widths:{' '}
{Object.keys(columnWidths).length > 0
? Object.entries(columnWidths)
@@ -198,7 +213,12 @@ export const KeyboardResize: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Tab to a resize handle, press Enter to activate, use Arrow keys to
resize (Shift for larger steps), Enter to commit, Escape to cancel.
</p>
@@ -238,7 +258,12 @@ export const WithSelectionAndResize: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Selection and column resize plugins composed together. Selected:{' '}
{selectedKeys.size} of {users.length}
</p>
@@ -275,7 +300,12 @@ export const AllPixelColumns: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
All columns are pixel-width. Every column gets a resize handle,
including the last one. Min width defaults to the column&apos;s
declared pixel value.
diff --git a/apps/storybook/stories/TableFiltering.stories.tsx b/apps/storybook/stories/TableFiltering.stories.tsx
index a5be8084f7..115cae723d 100644
--- a/apps/storybook/stories/TableFiltering.stories.tsx
+++ b/apps/storybook/stories/TableFiltering.stories.tsx
@@ -121,7 +121,12 @@ export const TextFilter: Story = {
);
return (
<div style={{maxWidth: 800}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Showing {data.length}/{employees.length} rows.
</p>
<Table
@@ -156,7 +161,12 @@ export const SelectorFilter: Story = {
);
return (
<div style={{maxWidth: 800}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Enum → selector. Showing {data.length}/{employees.length} rows.
</p>
<Table
@@ -191,7 +201,12 @@ export const MultiSelectorFilter: Story = {
);
return (
<div style={{maxWidth: 800}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Enum list → multi-selector. Showing {data.length}/{employees.length}{' '}
rows.
</p>
@@ -227,7 +242,12 @@ export const NumberFilter: Story = {
);
return (
<div style={{maxWidth: 800}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Number field → numeric input. Showing {data.length}/{employees.length}{' '}
rows.
</p>
@@ -264,7 +284,12 @@ export const InlineVariant: Story = {
);
return (
<div style={{maxWidth: 800}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Inline variant. Showing {data.length}/{employees.length} rows.
</p>
<Table
@@ -307,7 +332,12 @@ export const WithSelection: Story = {
const selectionPlugin = useTableSelection<Employee>(selectionConfig);
return (
<div style={{maxWidth: 800}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Filtering + Selection. Selected: {selectedKeys.size} | Showing{' '}
{data.length}/{employees.length} rows.
</p>
@@ -353,7 +383,12 @@ export const WithSorting: Story = {
const data = applySort(filtered);
return (
<div style={{maxWidth: 800}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Filtering + Sorting. Showing {data.length}/{employees.length} rows.
</p>
<Table
@@ -398,7 +433,12 @@ export const WithResize: Story = {
);
return (
<div style={{maxWidth: 800}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Inline filtering + Resize. Showing {data.length}/{employees.length}{' '}
rows.
</p>
@@ -456,7 +496,12 @@ export const WithAllPlugins: Story = {
const selectionPlugin = useTableSelection<Employee>(selectionConfig);
return (
<div style={{maxWidth: 900}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
All plugins. Selected: {selectedKeys.size} | Showing {data.length}/
{employees.length} rows.
</p>
@@ -498,7 +543,12 @@ export const InlineWithClear: Story = {
);
return (
<div style={{maxWidth: 800}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Inline variant with clear buttons. Type to filter, then click ✕ to
clear. Showing {data.length}/{employees.length} rows.
</p>
@@ -535,7 +585,12 @@ export const EmptyState: Story = {
);
return (
<div style={{maxWidth: 800}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Try filtering to get zero results; empty state appears.
</p>
<Table
diff --git a/apps/storybook/stories/TablePagination.stories.tsx b/apps/storybook/stories/TablePagination.stories.tsx
index 280bcf1341..c9f63d098f 100644
--- a/apps/storybook/stories/TablePagination.stories.tsx
+++ b/apps/storybook/stories/TablePagination.stories.tsx
@@ -135,7 +135,12 @@ export const ServerSide: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Server-side: data is pre-sliced, no paginatedData() needed.
</p>
<Table
@@ -192,7 +197,12 @@ export const CursorBased: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Cursor-based: total unknown, only hasMore={String(hasMore)}.
</p>
<Table
@@ -283,7 +293,12 @@ export const WithSelection: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Pagination + Selection composed. Selected: {selectedKeys.size}
</p>
<Table
diff --git a/apps/storybook/stories/TableSelection.stories.tsx b/apps/storybook/stories/TableSelection.stories.tsx
index 36acdb1220..b32be96e74 100644
--- a/apps/storybook/stories/TableSelection.stories.tsx
+++ b/apps/storybook/stories/TableSelection.stories.tsx
@@ -91,7 +91,12 @@ export const Default: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Selected: {selectedKeys.size} of {users.length}
</p>
<Table
@@ -121,7 +126,12 @@ export const WithPreselection: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Selected: {[...selectedKeys].join(', ') || 'none'}
</p>
<Table
@@ -150,7 +160,12 @@ export const NonSelectableRows: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Admin rows have no checkbox. Selected: {selectedKeys.size}
</p>
<Table
@@ -179,7 +194,12 @@ export const DisabledRows: Story = {
return (
<div style={{maxWidth: 600}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Locked rows (Diana) have a disabled checkbox. Select-all skips them.
Selected: {selectedKeys.size}
</p>
diff --git a/apps/storybook/stories/TableSortable.stories.tsx b/apps/storybook/stories/TableSortable.stories.tsx
index 32a2196c2e..0a9b28ca2f 100644
--- a/apps/storybook/stories/TableSortable.stories.tsx
+++ b/apps/storybook/stories/TableSortable.stories.tsx
@@ -98,7 +98,12 @@ export const SingleSort: Story = {
return (
<div style={{maxWidth: 700}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Click a column header to sort. Current:{' '}
{sort.length > 0 ? `${sort[0].sortKey} ${sort[0].direction}` : 'none'}
</p>
@@ -125,7 +130,12 @@ export const MultiSort: Story = {
return (
<div style={{maxWidth: 700}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Shift+click column headers to add secondary sorts. Active sorts:{' '}
{sort.map(s => `${s.sortKey} (${s.direction})`).join(', ') || 'none'}
</p>
@@ -163,7 +173,12 @@ export const CustomSortKey: Story = {
return (
<div style={{maxWidth: 700}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Age column uses sortKey &quot;yearsOld&quot;, Email uses
&quot;emailSort&quot;. Current:{' '}
{sort.length > 0 ? `${sort[0].sortKey} ${sort[0].direction}` : 'none'}
@@ -190,7 +205,12 @@ export const AllowUnsortedState: Story = {
return (
<div style={{maxWidth: 700}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Cycles: ascending → descending → unsorted. Current:{' '}
{sort.length > 0
? `${sort[0].sortKey} ${sort[0].direction}`
@@ -228,7 +248,12 @@ export const WithSelection: Story = {
return (
<div style={{maxWidth: 700}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Sorting + Selection composed together. Selected: {selectedKeys.size}{' '}
of {employees.length}. Sort:{' '}
{sort.length > 0 ? `${sort[0].sortKey} ${sort[0].direction}` : 'none'}
@@ -260,7 +285,12 @@ export const Controlled: Story = {
return (
<div style={{maxWidth: 700}}>
- <p style={{marginBottom: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
Controlled mode — external state. Current:{' '}
{sort.length > 0 ? `${sort[0].sortKey} ${sort[0].direction}` : 'none'}
</p>
diff --git a/apps/storybook/stories/TableStickyColumns.stories.tsx b/apps/storybook/stories/TableStickyColumns.stories.tsx
index 271dba1267..6780e7f255 100644
--- a/apps/storybook/stories/TableStickyColumns.stories.tsx
+++ b/apps/storybook/stories/TableStickyColumns.stories.tsx
@@ -108,7 +108,11 @@ const meta: Meta = {
export default meta;
type Story = StoryObj;
-const note = {marginBottom: 8, fontSize: 14, color: '#666'} as const;
+const note = {
+ marginBottom: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+} as const;
/**
* Pin the leading `Name` column to the start edge. Scroll horizontally — the
diff --git a/apps/storybook/stories/Thumbnail.stories.tsx b/apps/storybook/stories/Thumbnail.stories.tsx
index 0ba3db37ad..824c8efdd9 100644
--- a/apps/storybook/stories/Thumbnail.stories.tsx
+++ b/apps/storybook/stories/Thumbnail.stories.tsx
@@ -62,7 +62,7 @@ export const WithRemove: Story = {
const [visible, setVisible] = useState(true);
if (!visible) {
return (
- <p style={{color: '#888', fontSize: 12}}>
+ <p style={{color: 'var(--color-text-secondary)', fontSize: 12}}>
Removed. <button onClick={() => setVisible(true)}>Undo</button>
</p>
);
@@ -124,7 +124,7 @@ export const WithCaption: Story = {
const [visible, setVisible] = useState(true);
if (!visible) {
return (
- <p style={{color: '#888', fontSize: 12}}>
+ <p style={{color: 'var(--color-text-secondary)', fontSize: 12}}>
Removed. <button onClick={() => setVisible(true)}>Undo</button>
</p>
);
@@ -174,7 +174,7 @@ export const Placeholder: Story = {
const [visible, setVisible] = useState(true);
if (!visible) {
return (
- <p style={{color: '#888', fontSize: 12}}>
+ <p style={{color: 'var(--color-text-secondary)', fontSize: 12}}>
Removed. <button onClick={() => setVisible(true)}>Undo</button>
</p>
);
@@ -211,7 +211,12 @@ export const MediaModeTest: Story = {
const [items, setItems] = useState(images);
return (
<div>
- <p style={{fontSize: 12, color: '#888', marginBottom: 8}}>
+ <p
+ style={{
+ fontSize: 12,
+ color: 'var(--color-text-secondary)',
+ marginBottom: 8,
+ }}>
Remove buttons should adapt: light icon on dark images, dark icon on
light images.
</p>
@@ -229,7 +234,7 @@ export const MediaModeTest: Story = {
/>
))}
{items.length === 0 && (
- <p style={{color: '#888', fontSize: 12}}>
+ <p style={{color: 'var(--color-text-secondary)', fontSize: 12}}>
All removed.{' '}
<button onClick={() => setItems(images)}>Reset</button>
</p>
@@ -263,7 +268,7 @@ export const Gallery: Story = {
/>
))}
{items.length === 0 && (
- <p style={{color: '#888', fontSize: 12}}>
+ <p style={{color: 'var(--color-text-secondary)', fontSize: 12}}>
All removed.{' '}
<button onClick={() => setItems(initial)}>Reset</button>
</p>
diff --git a/apps/storybook/stories/Tokenizer.stories.tsx b/apps/storybook/stories/Tokenizer.stories.tsx
index 3c7bdeb450..35c84871ef 100644
--- a/apps/storybook/stories/Tokenizer.stories.tsx
+++ b/apps/storybook/stories/Tokenizer.stories.tsx
@@ -325,7 +325,12 @@ export const Creatable: Story = {
hasCreate
placeholder="Type a tag and press Enter..."
/>
- <p style={{marginTop: 8, fontSize: 14, color: '#666'}}>
+ <p
+ style={{
+ marginTop: 8,
+ fontSize: 14,
+ color: 'var(--color-text-secondary)',
+ }}>
{tags.length} tag{tags.length !== 1 ? 's' : ''} added
</p>
</div>
@@ -428,7 +433,8 @@ export const StatusVariantComparison: Story = {
const [a, setA] = useState<SearchableItem[]>([]);
const [b, setB] = useState<SearchableItem[]>([]);
return (
- <div style={{display: 'flex', flexDirection: 'column', gap: 24, width: 320}}>
+ <div
+ style={{display: 'flex', flexDirection: 'column', gap: 24, width: 320}}>
<Tokenizer
label="Attached (default)"
searchSource={userSource}
diff --git a/apps/storybook/stories/ToolbarEdgeCompensation.stories.tsx b/apps/storybook/stories/ToolbarEdgeCompensation.stories.tsx
index f360615505..1fa2cc4342 100644
--- a/apps/storybook/stories/ToolbarEdgeCompensation.stories.tsx
+++ b/apps/storybook/stories/ToolbarEdgeCompensation.stories.tsx
@@ -46,7 +46,14 @@ function AlignmentGuide({
}) {
return (
<div>
- <div style={{marginBottom: 8, fontSize: 12, color: '#666'}}>{label}</div>
+ <div
+ style={{
+ marginBottom: 8,
+ fontSize: 12,
+ color: 'var(--color-text-secondary)',
+ }}>
+ {label}
+ </div>
{children}
</div>
);