Cave design system
العربية

Foundations

Customize the system

Change accent, fonts, corner radius and spacing from one place.

This example customizes the light theme. Keep semantic color roles and recheck contrast, focus and layout in dark and black themes too. Components require no Cave logo or fonts.

CSS

Add class="product" to your application root and load these overrides after Cave UI styles.

/* Load after Cave UI styles. Scope the theme to your application root. */
.product[data-theme="light"] {
  --accent-strong: #4338ca;
  --accent-strong-hover: #3730a3;
  --on-accent-strong: #ffffff;
  --accent-text: #4338ca;
  --accent-soft: #eef2ff;
  --focus-ring: #4338ca;
  --radius-control: 14px;
  --space-3: 20px;
  --font-sans: system-ui, sans-serif;
  --font-ar-text: system-ui, sans-serif;
}
/* Supply your own font-face declarations for bundled custom fonts. */

Customization boundaries

Tokens affect components that consume them. spacingScale adjusts themed control padding; use your application spacing for custom content. Locale and direction remain independent.