Skip to content

Commit 50ac0e6

Browse files
committed
Add theme intent comments to color demo
1 parent 66bd89b commit 50ac0e6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/nextjs-app/src/modules/pages/color-demo.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ const ColorDemoPage = () => {
176176
<ColorSwatch name="chart-5" bgVar="--chart-5" fgVar="--foreground" />
177177
</SwatchSection>
178178

179+
{/* Show author-facing gradient inputs (`base` + `tint`) here.
180+
`start` / `end` are derived from them in the theme CSS. */}
179181
<SwatchSection title="Shell gradient">
180182
<ColorSwatch
181183
name="shell-gradient-base"
@@ -290,6 +292,8 @@ const ColorDemoPage = () => {
290292
padding: "0.75rem",
291293
borderRadius: "var(--radius-md)",
292294
backgroundColor: "var(--shell-gradient-base)",
295+
// Keep the preview formula inline so this demo reads the
296+
// same author-facing tokens palette files set: `base` + `tint`.
293297
backgroundImage: `linear-gradient(
294298
to bottom,
295299
color-mix(in srgb, var(--shell-gradient-base) 55%, var(--shell-gradient-tint)) 0%,

0 commit comments

Comments
 (0)