Skip to content

Color swatches render empty on Design System docs pages #760

Description

@maarkN

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:

  1. yarn docs:dev
  2. 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

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagedSeen by baristaui

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions