Prototype

Colour and icons

Colour carries meaning

Give each category, level, status or group its own hue, and use the same hue everywhere that thing appears: its chip in a row, the icon of its selected tab, a banner about it. Do not leave categories grey.

Keep the palette in one prototype file (_hues.ts) and import it:

export const hues = {
    design: {
        chip: "bg-(--sv-pink-100) text-(--sv-pink-800) [[data-theme=dark]_&]:bg-(--sv-pink-950) [[data-theme=dark]_&]:text-(--sv-pink-200)",
        ink: "in-aria-selected:text-(--sv-pink-500)",
        tint: "from-(--sv-pink-100) to-(--sv-pink-50) [[data-theme=dark]_&]:from-(--sv-pink-900) [[data-theme=dark]_&]:to-(--sv-pink-950)",
    },
    // …one entry per category
} as const;

Hues available: --sv-<red|orange|yellow|green|teal|blue|violet|pink>-<50..950>.

  • Chip: light tint background (100), dark label (800); dark theme flips to 950 and 200.
  • Icon ink: colour at 500 when selected; neutral otherwise. A mark on a tinted surface goes one step darker (600).
  • Banner: a soft two-stop gradient (100 to 50), a subtle border and a light grain layer. Match the tint to the featured logo's colour, not to the category.
  • Choose hues so neighbours differ. Keep green for success states elsewhere if the product uses it that way.

Write every class out

Tailwind only generates classes it sees as whole strings. "text-(--sv-" + hue + "-500)" and .replace("-500)", "-600)") produce classes that never exist. Put the full string in the map, once per hue, even when it repeats.

Icons

  • Hugeicons Standard only. Stroke Standard by default, Solid Standard for the active or selected state. In tabs, render both and swap them with in-aria-selected.
  • Register every icon the prototype needs beyond Life's registry in one _icons.ts, as { stroke, solid } pairs, and wrap the page in IconProvider extend={…}.
  • Button only renders names from Life's registry. For an extended icon pass icon={<Glyph name="…" />}.
  • Pick icons that mean something in context and are unlike their neighbours (a puzzle piece, a magic wand and a plug for three sibling tabs, not three tools).
  • A provider logo that sits beside a label (a cloud provider, an identity provider) is a real SVG logo, not an icon: 16px tall, w-auto, in a _logos.tsx that holds the inline markup with unique ids per file and a dark variant where the brand ships one. Place it after the label with a small gap, centred vertically in the row. Never justify it to the far edge.
  • Tailwind colour utilities (text-sv-content-secondary) resolve their variable at :root. Overriding --sv-content-secondary on a wrapper does not recolour them: set the --color-sv-* variable as well (or the utility's variable), otherwise the wrapper looks unchanged.
  • A brand's own logo wins where one exists: get it with the get-logos skill and keep it in a local _assets/logos/ folder with a light and a dark file when the brand ships both. Otherwise use a solid icon in the item's hue on a flat grey tile, with a hairline border.