Skip to content

Commit 2ebe4f2

Browse files
committed
docs: color design token samples now switch to dark mode
1 parent f61b542 commit 2ebe4f2

File tree

1 file changed

+5
-2
lines changed
  • packages/storybook/src/templates/design-tokens

1 file changed

+5
-2
lines changed

packages/storybook/src/templates/design-tokens/color.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,13 @@ export default function Page() {
158158
</TableRow>
159159
</TableHeader>
160160
<TableBody>
161-
{Object.entries(tokens).map(([name, value]) => (
161+
{Object.entries(tokens).map(([name]) => (
162162
<TableRow key={name}>
163163
<TableCell className="utrecht-table__cell--rhc-fill utrecht-table__cell--rhc-color-sample">
164-
<ColorSample className="rhc-color-sample--table-cell" color={String(value) || ''} />
164+
<ColorSample
165+
className="rhc-color-sample--table-cell"
166+
color={`var(--${[...path, name].join('-')})`}
167+
/>
165168
</TableCell>
166169
<TableCell className="utrecht-table__cell--rhc-middle">
167170
<CopyDesignTokenButton path={[...path, name]} />

0 commit comments

Comments
 (0)