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: nordLightScheme), darkTheme: ThemeData(colorScheme: nordDarkScheme)). The raw values are on NordDarkTokens and NordLightTokens.

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

/// The Nord palette: muted polar blues.
class NordDarkTokens {
  NordDarkTokens._();
  static const colorBgBase = Color(0xFF2E3440);
  static const colorBgSurface = Color(0xFF272C36);
  static const colorBgSubtle = Color(0xFF3B4252);
  static const colorBgRaised = Color(0xFF333A48);
  static const colorBgHover = Color(0xFF434C5E);
  static const colorBgInput = Color(0xFF2A303C);
  static const colorTextPrimary = Color(0xFFECEFF4);
  static const colorTextSecondary = Color(0xFFD8DEE9);
  static const colorTextMuted = Color(0xFFB5BCCA);
  static const colorAccentBase = Color(0xFF88C0D0);
  static const colorAccentLight = Color(0xFF8FBCBB);
  static const colorAccentDark = Color(0xFF5E81AC);
  static const colorAccentStrong = Color(0xFF88C0D0);
  static const colorAccentOn = Color(0xFF0B0D10);
  static const colorAccentOnStrong = Color(0xFF0B0D10);
  static const colorAccentGlow = Color(0x5988C0D0);
  static const colorLineBase = Color(0xFF3B4252);
  static const colorLineStrong = Color(0xFF4C566A);
  static const colorStatusOkBase = Color(0xFFA3BE8C);
  static const colorStatusOkText = Color(0xFFACC598);
  static const colorStatusWarnBase = Color(0xFFEBCB8B);
  static const colorStatusWarnText = Color(0xFFEBCB8B);
  static const colorStatusBadBase = Color(0xFFBF616A);
  static const colorStatusBadText = Color(0xFFDFB0B5);
  static const colorStatusInfoBase = Color(0xFF81A1C1);
  static const colorStatusInfoText = Color(0xFFA9BFD5);
  static const colorStatusLiveBase = Color(0xFFEF4444);
  static const colorStatusLiveText = Color(0xFFF8A9A9);
}

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

/// Nord's Snow Storm: frost blues on arctic white.
class NordLightTokens {
  NordLightTokens._();
  static const colorBgBase = Color(0xFFECEFF4);
  static const colorBgSurface = Color(0xFFE5E9F0);
  static const colorBgSubtle = Color(0xFFD8DEE9);
  static const colorBgRaised = Color(0xFFF2F4F8);
  static const colorBgHover = Color(0xFFDFE4EC);
  static const colorBgInput = Color(0xFFE8ECF2);
  static const colorTextPrimary = Color(0xFF2E3440);
  static const colorTextSecondary = Color(0xFF434C5E);
  static const colorTextMuted = Color(0xFF4C566A);
  static const colorAccentBase = Color(0xFF476283);
  static const colorAccentLight = Color(0xFF506478);
  static const colorAccentDark = Color(0xFF4C6A91);
  static const colorAccentStrong = Color(0xFF476283);
  static const colorAccentOn = Color(0xFFFFFFFF);
  static const colorAccentOnStrong = Color(0xFFFFFFFF);
  static const colorAccentGlow = Color(0x59476283);
  static const colorLineBase = Color(0xFFD0D7E2);
  static const colorLineStrong = Color(0xFFC2CAD8);
  static const colorStatusOkBase = Color(0xFF22C55E);
  static const colorStatusOkText = Color(0xFF136E35);
  static const colorStatusWarnBase = Color(0xFFF59E0B);
  static const colorStatusWarnText = Color(0xFF845506);
  static const colorStatusBadBase = Color(0xFFEF4444);
  static const colorStatusBadText = Color(0xFFB13232);
  static const colorStatusInfoBase = Color(0xFF38BDF8);
  static const colorStatusInfoText = Color(0xFF1E6686);
  static const colorStatusLiveBase = Color(0xFFEF4444);
  static const colorStatusLiveText = Color(0xFFB13232);
}

const nordLightScheme = ColorScheme(
  brightness: Brightness.light,
  primary: NordLightTokens.colorAccentBase,
  onPrimary: NordLightTokens.colorAccentOn,
  primaryContainer: NordLightTokens.colorAccentStrong,
  onPrimaryContainer: NordLightTokens.colorAccentOnStrong,
  secondary: NordLightTokens.colorAccentLight,
  onSecondary: NordLightTokens.colorAccentOn,
  tertiary: NordLightTokens.colorStatusInfoBase,
  background: NordLightTokens.colorBgBase,
  onBackground: NordLightTokens.colorTextPrimary,
  surface: NordLightTokens.colorBgRaised,
  onSurface: NordLightTokens.colorTextPrimary,
  onSurfaceVariant: NordLightTokens.colorTextSecondary,
  outline: NordLightTokens.colorLineStrong,
  outlineVariant: NordLightTokens.colorLineBase,
  error: NordLightTokens.colorStatusBadBase,
  onError: NordLightTokens.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#2e3440#eceff4The page behind everything
  • color.bg.surface#272c36#e5e9f0Bands and side panels
  • color.bg.subtle#3b4252#d8dee9Wells, tracks and quiet fills
  • color.bg.raised#333a48#f2f4f8Cards, rows and sheets
  • color.bg.hover#434c5e#dfe4ecA control under the pointer or finger
  • color.bg.input#2a303c#e8ecf2Text fields
  • color.text.primary#eceff4#2e3440Body text and titles
  • color.text.secondary#d8dee9#434c5eSupporting text
  • color.text.muted#b5bcca#4c566aHints and meta lines
  • color.accent.base#88c0d0#476283Links, icons, focus rings
  • color.accent.light#8fbcbb#506478The accent a step lighter
  • color.accent.dark#5e81ac#4c6a91The accent a step darker
  • color.accent.strong#88c0d0#476283Filled buttons
  • color.accent.on#0b0d10#ffffffText on the accent
  • color.accent.onStrong#0b0d10#ffffffText on a filled button
  • color.accent.glowrgba(136,192,208,0.35)rgba(71,98,131,0.35)Glows and halos
  • color.line.base#3b4252#d0d7e2Dividers and outlines
  • color.line.strong#4c566a#c2cad8Outlines that must show
  • color.status.ok.base#a3be8c#22c55eSuccess fills
  • color.status.ok.text#acc598#136e35Success text on any surface
  • color.status.warn.base#ebcb8b#f59e0bWarning fills
  • color.status.warn.text#ebcb8b#845506Warning text on any surface
  • color.status.bad.base#bf616a#ef4444Danger fills
  • color.status.bad.text#dfb0b5#b13232Danger text on any surface
  • color.status.info.base#81a1c1#38bdf8Information fills
  • color.status.info.text#a9bfd5#1e6686Information text on any surface
  • color.status.live.base#ef4444#ef4444LIVE badges
  • color.status.live.text#f8a9a9#b13232LIVE 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