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: neonTokyoLightScheme), darkTheme: ThemeData(colorScheme: neonTokyoDarkScheme)). The raw values are on NeonTokyoDarkTokens and NeonTokyoLightTokens.

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

/// Hot pink neon on wet chrome.
class NeonTokyoDarkTokens {
  NeonTokyoDarkTokens._();
  static const colorBgBase = Color(0xFF0A0A0F);
  static const colorBgSurface = Color(0xFF12101A);
  static const colorBgSubtle = Color(0xFF1A1625);
  static const colorBgRaised = Color(0xFF15111F);
  static const colorBgHover = Color(0xFF221A32);
  static const colorBgInput = Color(0xFF0D0B14);
  static const colorTextPrimary = Color(0xFFF0E6FF);
  static const colorTextSecondary = Color(0xFFB4A0D0);
  static const colorTextMuted = Color(0xFF8E81A2);
  static const colorAccentBase = Color(0xFFFF006E);
  static const colorAccentLight = Color(0xFFFF4D94);
  static const colorAccentDark = Color(0xFFC9005A);
  static const colorAccentStrong = Color(0xFFE60063);
  static const colorAccentOn = Color(0xFFFFFFFF);
  static const colorAccentOnStrong = Color(0xFFFFFFFF);
  static const colorAccentGlow = Color(0x59FF006E);
  static const colorLineBase = Color(0xFF2A1A3A);
  static const colorLineStrong = Color(0xFF3A2A4A);
  static const colorStatusOkBase = Color(0xFF22C55E);
  static const colorStatusOkText = Color(0xFF22C55E);
  static const colorStatusWarnBase = Color(0xFFF59E0B);
  static const colorStatusWarnText = Color(0xFFF59E0B);
  static const colorStatusBadBase = Color(0xFFEF4444);
  static const colorStatusBadText = Color(0xFFEF4848);
  static const colorStatusInfoBase = Color(0xFF38BDF8);
  static const colorStatusInfoText = Color(0xFF38BDF8);
  static const colorStatusLiveBase = Color(0xFFEF4444);
  static const colorStatusLiveText = Color(0xFFEF4848);
}

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

/// Neon Tokyo by day: hot pink on soft white.
class NeonTokyoLightTokens {
  NeonTokyoLightTokens._();
  static const colorBgBase = Color(0xFFFFF6FA);
  static const colorBgSurface = Color(0xFFFFEDF4);
  static const colorBgSubtle = Color(0xFFFDE1EC);
  static const colorBgRaised = Color(0xFFFFFAFC);
  static const colorBgHover = Color(0xFFFDE7F0);
  static const colorBgInput = Color(0xFFFFF0F6);
  static const colorTextPrimary = Color(0xFF24101A);
  static const colorTextSecondary = Color(0xFF5C3A4A);
  static const colorTextMuted = Color(0xFF7A5566);
  static const colorAccentBase = Color(0xFFCD0058);
  static const colorAccentLight = Color(0xFFC22261);
  static const colorAccentDark = Color(0xFF9C0043);
  static const colorAccentStrong = Color(0xFFCD0058);
  static const colorAccentOn = Color(0xFFFFFFFF);
  static const colorAccentOnStrong = Color(0xFFFFFFFF);
  static const colorAccentGlow = Color(0x59CD0058);
  static const colorLineBase = Color(0xFFF3D3E0);
  static const colorLineStrong = Color(0xFFEBBFD1);
  static const colorStatusOkBase = Color(0xFF22C55E);
  static const colorStatusOkText = Color(0xFF147638);
  static const colorStatusWarnBase = Color(0xFFF59E0B);
  static const colorStatusWarnText = Color(0xFF8E5C06);
  static const colorStatusBadBase = Color(0xFFEF4444);
  static const colorStatusBadText = Color(0xFFBF3636);
  static const colorStatusInfoBase = Color(0xFF38BDF8);
  static const colorStatusInfoText = Color(0xFF206E90);
  static const colorStatusLiveBase = Color(0xFFEF4444);
  static const colorStatusLiveText = Color(0xFFBF3636);
}

const neonTokyoLightScheme = ColorScheme(
  brightness: Brightness.light,
  primary: NeonTokyoLightTokens.colorAccentBase,
  onPrimary: NeonTokyoLightTokens.colorAccentOn,
  primaryContainer: NeonTokyoLightTokens.colorAccentStrong,
  onPrimaryContainer: NeonTokyoLightTokens.colorAccentOnStrong,
  secondary: NeonTokyoLightTokens.colorAccentLight,
  onSecondary: NeonTokyoLightTokens.colorAccentOn,
  tertiary: NeonTokyoLightTokens.colorStatusInfoBase,
  background: NeonTokyoLightTokens.colorBgBase,
  onBackground: NeonTokyoLightTokens.colorTextPrimary,
  surface: NeonTokyoLightTokens.colorBgRaised,
  onSurface: NeonTokyoLightTokens.colorTextPrimary,
  onSurfaceVariant: NeonTokyoLightTokens.colorTextSecondary,
  outline: NeonTokyoLightTokens.colorLineStrong,
  outlineVariant: NeonTokyoLightTokens.colorLineBase,
  error: NeonTokyoLightTokens.colorStatusBadBase,
  onError: NeonTokyoLightTokens.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#0a0a0f#fff6faThe page behind everything
  • color.bg.surface#12101a#ffedf4Bands and side panels
  • color.bg.subtle#1a1625#fde1ecWells, tracks and quiet fills
  • color.bg.raised#15111f#fffafcCards, rows and sheets
  • color.bg.hover#221a32#fde7f0A control under the pointer or finger
  • color.bg.input#0d0b14#fff0f6Text fields
  • color.text.primary#f0e6ff#24101aBody text and titles
  • color.text.secondary#b4a0d0#5c3a4aSupporting text
  • color.text.muted#8e81a2#7a5566Hints and meta lines
  • color.accent.base#ff006e#cd0058Links, icons, focus rings
  • color.accent.light#ff4d94#c22261The accent a step lighter
  • color.accent.dark#c9005a#9c0043The accent a step darker
  • color.accent.strong#e60063#cd0058Filled buttons
  • color.accent.on#ffffff#ffffffText on the accent
  • color.accent.onStrong#ffffff#ffffffText on a filled button
  • color.accent.glowrgba(255,0,110,0.35)rgba(205,0,88,0.35)Glows and halos
  • color.line.base#2a1a3a#f3d3e0Dividers and outlines
  • color.line.strong#3a2a4a#ebbfd1Outlines that must show
  • color.status.ok.base#22c55e#22c55eSuccess fills
  • color.status.ok.text#22c55e#147638Success text on any surface
  • color.status.warn.base#f59e0b#f59e0bWarning fills
  • color.status.warn.text#f59e0b#8e5c06Warning text on any surface
  • color.status.bad.base#ef4444#ef4444Danger fills
  • color.status.bad.text#ef4848#bf3636Danger text on any surface
  • color.status.info.base#38bdf8#38bdf8Information fills
  • color.status.info.text#38bdf8#206e90Information text on any surface
  • color.status.live.base#ef4444#ef4444LIVE badges
  • color.status.live.text#ef4848#bf3636LIVE 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