OpenVibe Tokens

Your theme, as code

Take any OpenVibe theme into your own app, its light and dark halves together: the web, Android, iOS, Flutter or Figma. The colours are the ones the network paints.

MaterialApp(theme: ThemeData(colorScheme: catppuccinMochaLightScheme), darkTheme: ThemeData(colorScheme: catppuccinMochaDarkScheme)). The raw values are on CatppuccinMochaDarkTokens and CatppuccinMochaLightTokens.

// Catppuccin Mocha (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "catppuccin-mocha". Regenerate instead of editing.
import 'package:flutter/material.dart';

/// Soothing pastels on mocha.
class CatppuccinMochaDarkTokens {
  CatppuccinMochaDarkTokens._();
  static const colorBgBase = Color(0xFF1E1E2E);
  static const colorBgSurface = Color(0xFF181825);
  static const colorBgSubtle = Color(0xFF313244);
  static const colorBgRaised = Color(0xFF1E1E2E);
  static const colorBgHover = Color(0xFF313244);
  static const colorBgInput = Color(0xFF1A1A2C);
  static const colorTextPrimary = Color(0xFFCDD6F4);
  static const colorTextSecondary = Color(0xFFBAC2DE);
  static const colorTextMuted = Color(0xFF989CAF);
  static const colorAccentBase = Color(0xFFCBA6F7);
  static const colorAccentLight = Color(0xFFDCC0FF);
  static const colorAccentDark = Color(0xFFB07DE0);
  static const colorAccentStrong = Color(0xFFCBA6F7);
  static const colorAccentOn = Color(0xFF0B0D10);
  static const colorAccentOnStrong = Color(0xFF0B0D10);
  static const colorAccentGlow = Color(0x59CBA6F7);
  static const colorLineBase = Color(0xFF313244);
  static const colorLineStrong = Color(0xFF45475A);
  static const colorStatusOkBase = Color(0xFFA6E3A1);
  static const colorStatusOkText = Color(0xFFA6E3A1);
  static const colorStatusWarnBase = Color(0xFFFAB387);
  static const colorStatusWarnText = Color(0xFFFAB387);
  static const colorStatusBadBase = Color(0xFFF38BA8);
  static const colorStatusBadText = Color(0xFFF38BA8);
  static const colorStatusInfoBase = Color(0xFF89B4FA);
  static const colorStatusInfoText = Color(0xFF89B4FA);
  static const colorStatusLiveBase = Color(0xFFF38BA8);
  static const colorStatusLiveText = Color(0xFFF38BA8);
}

const catppuccinMochaDarkScheme = ColorScheme(
  brightness: Brightness.dark,
  primary: CatppuccinMochaDarkTokens.colorAccentBase,
  onPrimary: CatppuccinMochaDarkTokens.colorAccentOn,
  primaryContainer: CatppuccinMochaDarkTokens.colorAccentStrong,
  onPrimaryContainer: CatppuccinMochaDarkTokens.colorAccentOnStrong,
  secondary: CatppuccinMochaDarkTokens.colorAccentLight,
  onSecondary: CatppuccinMochaDarkTokens.colorAccentOn,
  tertiary: CatppuccinMochaDarkTokens.colorStatusInfoBase,
  background: CatppuccinMochaDarkTokens.colorBgBase,
  onBackground: CatppuccinMochaDarkTokens.colorTextPrimary,
  surface: CatppuccinMochaDarkTokens.colorBgRaised,
  onSurface: CatppuccinMochaDarkTokens.colorTextPrimary,
  onSurfaceVariant: CatppuccinMochaDarkTokens.colorTextSecondary,
  outline: CatppuccinMochaDarkTokens.colorLineStrong,
  outlineVariant: CatppuccinMochaDarkTokens.colorLineBase,
  error: CatppuccinMochaDarkTokens.colorStatusBadBase,
  onError: CatppuccinMochaDarkTokens.colorAccentOnStrong,
);

/// Soothing pastels on latte.
class CatppuccinMochaLightTokens {
  CatppuccinMochaLightTokens._();
  static const colorBgBase = Color(0xFFEFF1F5);
  static const colorBgSurface = Color(0xFFE6E9EF);
  static const colorBgSubtle = Color(0xFFDCE0E8);
  static const colorBgRaised = Color(0xFFEFF1F5);
  static const colorBgHover = Color(0xFFDCE0E8);
  static const colorBgInput = Color(0xFFE8EBF0);
  static const colorTextPrimary = Color(0xFF4C4F69);
  static const colorTextSecondary = Color(0xFF5C5F77);
  static const colorTextMuted = Color(0xFF5F6176);
  static const colorAccentBase = Color(0xFF7D34DC);
  static const colorAccentLight = Color(0xFF7A46C2);
  static const colorAccentDark = Color(0xFF7028D4);
  static const colorAccentStrong = Color(0xFF7D34DC);
  static const colorAccentOn = Color(0xFFFFFFFF);
  static const colorAccentOnStrong = Color(0xFFFFFFFF);
  static const colorAccentGlow = Color(0x597D34DC);
  static const colorLineBase = Color(0xFFCCD0DA);
  static const colorLineStrong = Color(0xFFBCC0CC);
  static const colorStatusOkBase = Color(0xFF40A02B);
  static const colorStatusOkText = Color(0xFF2D701E);
  static const colorStatusWarnBase = Color(0xFFFE640B);
  static const colorStatusWarnText = Color(0xFFA84207);
  static const colorStatusBadBase = Color(0xFFD20F39);
  static const colorStatusBadText = Color(0xFFC50E36);
  static const colorStatusInfoBase = Color(0xFF1E66F5);
  static const colorStatusInfoText = Color(0xFF1A5AD8);
  static const colorStatusLiveBase = Color(0xFFD20F39);
  static const colorStatusLiveText = Color(0xFFC50E36);
}

const catppuccinMochaLightScheme = ColorScheme(
  brightness: Brightness.light,
  primary: CatppuccinMochaLightTokens.colorAccentBase,
  onPrimary: CatppuccinMochaLightTokens.colorAccentOn,
  primaryContainer: CatppuccinMochaLightTokens.colorAccentStrong,
  onPrimaryContainer: CatppuccinMochaLightTokens.colorAccentOnStrong,
  secondary: CatppuccinMochaLightTokens.colorAccentLight,
  onSecondary: CatppuccinMochaLightTokens.colorAccentOn,
  tertiary: CatppuccinMochaLightTokens.colorStatusInfoBase,
  background: CatppuccinMochaLightTokens.colorBgBase,
  onBackground: CatppuccinMochaLightTokens.colorTextPrimary,
  surface: CatppuccinMochaLightTokens.colorBgRaised,
  onSurface: CatppuccinMochaLightTokens.colorTextPrimary,
  onSurfaceVariant: CatppuccinMochaLightTokens.colorTextSecondary,
  outline: CatppuccinMochaLightTokens.colorLineStrong,
  outlineVariant: CatppuccinMochaLightTokens.colorLineBase,
  error: CatppuccinMochaLightTokens.colorStatusBadBase,
  onError: CatppuccinMochaLightTokens.colorAccentOnStrong,
);

/// The OpenVibe kit's radius, space, size and type scales: the same in every theme.
class OvScale {
  OvScale._();
  static const double radiusSm = 10;
  static const double radiusMd = 14;
  static const double radiusLg = 20;
  static const double radiusPill = 999;
  static const double spaceXs = 4;
  static const double spaceSm = 8;
  static const double spaceMd = 12;
  static const double spaceLg = 16;
  static const double spaceXl = 24;
  static const double spaceXxl = 32;
  static const double sizeTap = 44;
  static const double sizeIcon = 20;
  static const double sizeAvatar = 34;
  static const double typeSizeCaption = 12;
  static const double typeSizeMeta = 13;
  static const double typeSizeBody = 15;
  static const double typeSizeLead = 17;
  static const double typeSizeTitle = 20;
  static const double typeSizeHeadline = 24;
  static const double typeSizeDisplay = 34;
}

Files your tools can fetch

This theme on its own, with the motion every OpenVibe page shares and the mark’s colours. Each one has a lasting address a build or a design tool can read straight from here.

Every colour token · 28 of them
  • color.bg.base#1e1e2e#eff1f5The page behind everything
  • color.bg.surface#181825#e6e9efBands and side panels
  • color.bg.subtle#313244#dce0e8Wells, tracks and quiet fills
  • color.bg.raised#1e1e2e#eff1f5Cards, rows and sheets
  • color.bg.hover#313244#dce0e8A control under the pointer or finger
  • color.bg.input#1a1a2c#e8ebf0Text fields
  • color.text.primary#cdd6f4#4c4f69Body text and titles
  • color.text.secondary#bac2de#5c5f77Supporting text
  • color.text.muted#989caf#5f6176Hints and meta lines
  • color.accent.base#cba6f7#7d34dcLinks, icons, focus rings
  • color.accent.light#dcc0ff#7a46c2The accent a step lighter
  • color.accent.dark#b07de0#7028d4The accent a step darker
  • color.accent.strong#cba6f7#7d34dcFilled buttons
  • color.accent.on#0b0d10#ffffffText on the accent
  • color.accent.onStrong#0b0d10#ffffffText on a filled button
  • color.accent.glowrgba(203,166,247,0.35)rgba(125,52,220,0.35)Glows and halos
  • color.line.base#313244#ccd0daDividers and outlines
  • color.line.strong#45475a#bcc0ccOutlines that must show
  • color.status.ok.base#a6e3a1#40a02bSuccess fills
  • color.status.ok.text#a6e3a1#2d701eSuccess text on any surface
  • color.status.warn.base#fab387#fe640bWarning fills
  • color.status.warn.text#fab387#a84207Warning text on any surface
  • color.status.bad.base#f38ba8#d20f39Danger fills
  • color.status.bad.text#f38ba8#c50e36Danger text on any surface
  • color.status.info.base#89b4fa#1e66f5Information fills
  • color.status.info.text#89b4fa#1a5ad8Information text on any surface
  • color.status.live.base#f38ba8#d20f39LIVE badges
  • color.status.live.text#f38ba8#c50e36LIVE text on any surface

Every theme also carries the kit's scales: radius.*, space.* (4 to 32), size.tap (44), type.size.*, type.weight.* and motion.*.

Why tokens, and what is next

A theme on OpenVibe is one set of design tokens: semantic names such as color.accent.strong and space.lg, kept apart from any one platform. The web reads them as CSS variables today. An Android or iOS app reads the same values in Compose or SwiftUI, so a native app wears your theme without being a web page in a frame.

The format is the W3C Design Tokens one, so the same file works in Style Dictionary, Tokens Studio and Figma. Next: the kit's components described the same way (anatomy, states, roles), so a page made on OpenVibe.Design can be drawn natively too.

Change this theme in the studio The tokens API