Components

Vandoko Shape + Contrast Tokens

Corner-shape profiles (rounded, squircle, sharp) with border-radius fallbacks, plus contrast-color() foreground pairs with static fallbacks.

Vandoko Shape + Contrast Tokens

Foundation 1.2 token surface, shipped as one CSS file on top of vandoko-theme. It has two parts:

  1. Shape tokens. Three corner profiles, each a border-radius value paired with a CSS corner-shape value. corner-shape is applied only inside an @supports guard, so browsers without it keep the radius.
  2. Contrast pairs. contrast-color() foregrounds for the three required brand pairs, each with a static --fallback token for browsers without contrast-color().

blueprint-panel depends on this item.

Installation

Terminal
$npx shadcn@latest add @vandoko/vandoko-shape-tokens

Import it in your globals.css after the base theme:

@import "tailwindcss";
@import "./vandoko-theme.css";
@import "./vandoko-shape-tokens.css";

Shape profiles

Profile--shape-radius-*--shape-corner-*Use
rounded0.75remroundStandard, friendly
squircle1.5remsquircleVandoko default, premium
sharp0.25remroundMinimal, editorial

--shape-radius and --shape-corner hold the active profile (squircle by default). Set data-shape="rounded" | "squircle" | "sharp" on a parent to switch the profile for everything inside it.

Semantic aliases for components:

TokenResolves to
--shape-radius-card--shape-radius-squircle
--shape-radius-button--shape-radius-rounded
--shape-radius-badge--shape-radius-sharp
--shape-radius-input--shape-radius-rounded

Classes

ClassEffect
.use-corner-shapeborder-radius: var(--shape-radius), plus corner-shape where supported
.corner-rounded, .corner-squircle, .corner-sharpOne fixed profile (only where corner-shape is supported)
<div data-shape="sharp">
  <div className="use-corner-shape border p-6">Sharp corners inside this block</div>
</div>

Contrast pairs

TokenPairStatic fallback
--fg-cyan-on-obsidianCyan foreground on obsidian--fg-cyan-on-obsidian--fallback
--fg-white-on-charcoalNear-white foreground on charcoal--fg-white-on-charcoal--fallback
--fg-obsidian-on-cyanObsidian foreground on cyan--fg-obsidian-on-cyan--fallback

--surface-cyan and --surface-cyan-fg alias the obsidian-on-cyan pair for cyan accent surfaces.

Browser support

  • corner-shape: Chrome 137 and later. Other browsers use the border-radius fallback.
  • contrast-color(): Chrome 134 and later. Use the --fallback tokens where it isn't supported.

On this page