On the docs site, the color swatches on the Design System pages render as empty/transparent boxes, only the section headings and labels show up, no actual colors.
Steps to reproduce:
yarn docs:dev
- Open Design System → Background Color (also Border Color and Text Design → Text Color tab)
Actual: swatches are invisible (transparent), only labels render
Expected: each swatch shows its token color (e.g. bg-surface-red-4)
Version: main @ v1.0.0-beta.3
What I found: the token values passed by docs/content/docs/design-system/[token].paths.ts contain Tailwind's internal <alpha-value> placeholder (e.g. color-mix(in srgb, var(--surface-gray-2, #F3F3F3) calc(<alpha-value> * 100%), transparent)), which is invalid as an inline style — so the swatch divs get no background.
I have a small fix for this in #759.
On the docs site, the color swatches on the Design System pages render as empty/transparent boxes, only the section headings and labels show up, no actual colors.
Steps to reproduce:
yarn docs:devActual: swatches are invisible (transparent), only labels render
Expected: each swatch shows its token color (e.g.
bg-surface-red-4)Version:
main@ v1.0.0-beta.3What I found: the token values passed by
docs/content/docs/design-system/[token].paths.tscontain Tailwind's internal<alpha-value>placeholder (e.g.color-mix(in srgb, var(--surface-gray-2, #F3F3F3) calc(<alpha-value> * 100%), transparent)), which is invalid as an inline style — so the swatchdivs get no background.I have a small fix for this in #759.