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: arcticLightScheme), darkTheme: ThemeData(colorScheme: arcticDarkScheme)). The raw values are on ArcticDarkTokens and ArcticLightTokens.

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

/// Frost surfaces, cyan light, crisp white text.
class ArcticDarkTokens {
  ArcticDarkTokens._();
  static const colorBgBase = Color(0xFF0B1620);
  static const colorBgSurface = Color(0xFF0F1E2B);
  static const colorBgSubtle = Color(0xFF163040);
  static const colorBgRaised = Color(0xFF122534);
  static const colorBgHover = Color(0xFF1A3A4C);
  static const colorBgInput = Color(0xFF0C1A26);
  static const colorTextPrimary = Color(0xFFEAF6FF);
  static const colorTextSecondary = Color(0xFF9EC3D8);
  static const colorTextMuted = Color(0xFF81A5BB);
  static const colorAccentBase = Color(0xFF22D3EE);
  static const colorAccentLight = Color(0xFFA5F3FC);
  static const colorAccentDark = Color(0xFF0891B2);
  static const colorAccentStrong = Color(0xFF22D3EE);
  static const colorAccentOn = Color(0xFF0B0D10);
  static const colorAccentOnStrong = Color(0xFF0B0D10);
  static const colorAccentGlow = Color(0x5922D3EE);
  static const colorLineBase = Color(0xFF1E3F52);
  static const colorLineStrong = Color(0xFF2A5268);
  static const colorStatusOkBase = Color(0xFF34D399);
  static const colorStatusOkText = Color(0xFF34D399);
  static const colorStatusWarnBase = Color(0xFFF59E0B);
  static const colorStatusWarnText = Color(0xFFF59E0B);
  static const colorStatusBadBase = Color(0xFFEF4444);
  static const colorStatusBadText = Color(0xFFF47C7C);
  static const colorStatusInfoBase = Color(0xFF7DD3FC);
  static const colorStatusInfoText = Color(0xFF7DD3FC);
  static const colorStatusLiveBase = Color(0xFFEF4444);
  static const colorStatusLiveText = Color(0xFFF47C7C);
}

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

/// Pure white with icy blue.
class ArcticLightTokens {
  ArcticLightTokens._();
  static const colorBgBase = Color(0xFFFFFFFF);
  static const colorBgSurface = Color(0xFFF8FAFC);
  static const colorBgSubtle = Color(0xFFF1F5F9);
  static const colorBgRaised = Color(0xFFFFFFFF);
  static const colorBgHover = Color(0xFFF1F5F9);
  static const colorBgInput = Color(0xFFF8FAFC);
  static const colorTextPrimary = Color(0xFF0F172A);
  static const colorTextSecondary = Color(0xFF334155);
  static const colorTextMuted = Color(0xFF657185);
  static const colorAccentBase = Color(0xFF0275B0);
  static const colorAccentLight = Color(0xFF23759A);
  static const colorAccentDark = Color(0xFF0284C7);
  static const colorAccentStrong = Color(0xFF0275B0);
  static const colorAccentOn = Color(0xFFFFFFFF);
  static const colorAccentOnStrong = Color(0xFFFFFFFF);
  static const colorAccentGlow = Color(0x590275B0);
  static const colorLineBase = Color(0xFFE2E8F0);
  static const colorLineStrong = Color(0xFFCBD5E1);
  static const colorStatusOkBase = Color(0xFF22C55E);
  static const colorStatusOkText = Color(0xFF167E3C);
  static const colorStatusWarnBase = Color(0xFFF59E0B);
  static const colorStatusWarnText = Color(0xFF986207);
  static const colorStatusBadBase = Color(0xFFEF4444);
  static const colorStatusBadText = Color(0xFFC93939);
  static const colorStatusInfoBase = Color(0xFF38BDF8);
  static const colorStatusInfoText = Color(0xFF23759A);
  static const colorStatusLiveBase = Color(0xFFEF4444);
  static const colorStatusLiveText = Color(0xFFC93939);
}

const arcticLightScheme = ColorScheme(
  brightness: Brightness.light,
  primary: ArcticLightTokens.colorAccentBase,
  onPrimary: ArcticLightTokens.colorAccentOn,
  primaryContainer: ArcticLightTokens.colorAccentStrong,
  onPrimaryContainer: ArcticLightTokens.colorAccentOnStrong,
  secondary: ArcticLightTokens.colorAccentLight,
  onSecondary: ArcticLightTokens.colorAccentOn,
  tertiary: ArcticLightTokens.colorStatusInfoBase,
  background: ArcticLightTokens.colorBgBase,
  onBackground: ArcticLightTokens.colorTextPrimary,
  surface: ArcticLightTokens.colorBgRaised,
  onSurface: ArcticLightTokens.colorTextPrimary,
  onSurfaceVariant: ArcticLightTokens.colorTextSecondary,
  outline: ArcticLightTokens.colorLineStrong,
  outlineVariant: ArcticLightTokens.colorLineBase,
  error: ArcticLightTokens.colorStatusBadBase,
  onError: ArcticLightTokens.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#0b1620#ffffffThe page behind everything
  • color.bg.surface#0f1e2b#f8fafcBands and side panels
  • color.bg.subtle#163040#f1f5f9Wells, tracks and quiet fills
  • color.bg.raised#122534#ffffffCards, rows and sheets
  • color.bg.hover#1a3a4c#f1f5f9A control under the pointer or finger
  • color.bg.input#0c1a26#f8fafcText fields
  • color.text.primary#eaf6ff#0f172aBody text and titles
  • color.text.secondary#9ec3d8#334155Supporting text
  • color.text.muted#81a5bb#657185Hints and meta lines
  • color.accent.base#22d3ee#0275b0Links, icons, focus rings
  • color.accent.light#a5f3fc#23759aThe accent a step lighter
  • color.accent.dark#0891b2#0284c7The accent a step darker
  • color.accent.strong#22d3ee#0275b0Filled buttons
  • color.accent.on#0b0d10#ffffffText on the accent
  • color.accent.onStrong#0b0d10#ffffffText on a filled button
  • color.accent.glowrgba(34,211,238,0.35)rgba(2,117,176,0.35)Glows and halos
  • color.line.base#1e3f52#e2e8f0Dividers and outlines
  • color.line.strong#2a5268#cbd5e1Outlines that must show
  • color.status.ok.base#34d399#22c55eSuccess fills
  • color.status.ok.text#34d399#167e3cSuccess text on any surface
  • color.status.warn.base#f59e0b#f59e0bWarning fills
  • color.status.warn.text#f59e0b#986207Warning text on any surface
  • color.status.bad.base#ef4444#ef4444Danger fills
  • color.status.bad.text#f47c7c#c93939Danger text on any surface
  • color.status.info.base#7dd3fc#38bdf8Information fills
  • color.status.info.text#7dd3fc#23759aInformation text on any surface
  • color.status.live.base#ef4444#ef4444LIVE badges
  • color.status.live.text#f47c7c#c93939LIVE 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