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:
- Shape tokens. Three corner profiles, each a
border-radiusvalue paired with a CSScorner-shapevalue.corner-shapeis applied only inside an@supportsguard, so browsers without it keep the radius. - Contrast pairs.
contrast-color()foregrounds for the three required brand pairs, each with a static--fallbacktoken for browsers withoutcontrast-color().
blueprint-panel depends on this item.
Installation
Terminal
$npx shadcn@latest add @vandoko/vandoko-shape-tokensImport 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 |
|---|---|---|---|
rounded | 0.75rem | round | Standard, friendly |
squircle | 1.5rem | squircle | Vandoko default, premium |
sharp | 0.25rem | round | Minimal, 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:
| Token | Resolves 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
| Class | Effect |
|---|---|
.use-corner-shape | border-radius: var(--shape-radius), plus corner-shape where supported |
.corner-rounded, .corner-squircle, .corner-sharp | One 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
| Token | Pair | Static fallback |
|---|---|---|
--fg-cyan-on-obsidian | Cyan foreground on obsidian | --fg-cyan-on-obsidian--fallback |
--fg-white-on-charcoal | Near-white foreground on charcoal | --fg-white-on-charcoal--fallback |
--fg-obsidian-on-cyan | Obsidian 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 theborder-radiusfallback.contrast-color(): Chrome 134 and later. Use the--fallbacktokens where it isn't supported.