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.
- UnderstoryDark
- MeadowLight
MaterialApp(theme: ThemeData(colorScheme: meadowLightScheme), darkTheme: ThemeData(colorScheme: meadowDarkScheme)). The raw values are on MeadowDarkTokens and MeadowLightTokens.
// Understory (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "forest". Regenerate instead of editing.
import 'package:flutter/material.dart';
/// Deep greens under the canopy.
class UnderstoryDarkTokens {
UnderstoryDarkTokens._();
static const colorBgBase = Color(0xFF0A120A);
static const colorBgSurface = Color(0xFF121E12);
static const colorBgSubtle = Color(0xFF1A2A1A);
static const colorBgRaised = Color(0xFF152015);
static const colorBgHover = Color(0xFF1E3420);
static const colorBgInput = Color(0xFF0D160D);
static const colorTextPrimary = Color(0xFFD4E8D4);
static const colorTextSecondary = Color(0xFF8AAA8A);
static const colorTextMuted = Color(0xFF849E84);
static const colorAccentBase = Color(0xFF4ADE80);
static const colorAccentLight = Color(0xFF86EFAC);
static const colorAccentDark = Color(0xFF22C55E);
static const colorAccentStrong = Color(0xFF4ADE80);
static const colorAccentOn = Color(0xFF0B0D10);
static const colorAccentOnStrong = Color(0xFF0B0D10);
static const colorAccentGlow = Color(0x594ADE80);
static const colorLineBase = Color(0xFF1A3A1A);
static const colorLineStrong = Color(0xFF2A4A2A);
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(0xFFF36D6D);
static const colorStatusInfoBase = Color(0xFF38BDF8);
static const colorStatusInfoText = Color(0xFF38BDF8);
static const colorStatusLiveBase = Color(0xFFEF4444);
static const colorStatusLiveText = Color(0xFFF36D6D);
}
const understoryDarkScheme = ColorScheme(
brightness: Brightness.dark,
primary: UnderstoryDarkTokens.colorAccentBase,
onPrimary: UnderstoryDarkTokens.colorAccentOn,
primaryContainer: UnderstoryDarkTokens.colorAccentStrong,
onPrimaryContainer: UnderstoryDarkTokens.colorAccentOnStrong,
secondary: UnderstoryDarkTokens.colorAccentLight,
onSecondary: UnderstoryDarkTokens.colorAccentOn,
tertiary: UnderstoryDarkTokens.colorStatusInfoBase,
background: UnderstoryDarkTokens.colorBgBase,
onBackground: UnderstoryDarkTokens.colorTextPrimary,
surface: UnderstoryDarkTokens.colorBgRaised,
onSurface: UnderstoryDarkTokens.colorTextPrimary,
onSurfaceVariant: UnderstoryDarkTokens.colorTextSecondary,
outline: UnderstoryDarkTokens.colorLineStrong,
outlineVariant: UnderstoryDarkTokens.colorLineBase,
error: UnderstoryDarkTokens.colorStatusBadBase,
onError: UnderstoryDarkTokens.colorAccentOnStrong,
);
/// Spring greens in daylight.
class UnderstoryLightTokens {
UnderstoryLightTokens._();
static const colorBgBase = Color(0xFFF2F8F0);
static const colorBgSurface = Color(0xFFE8F0E4);
static const colorBgSubtle = Color(0xFFDCE8D6);
static const colorBgRaised = Color(0xFFF5FAF2);
static const colorBgHover = Color(0xFFE4F0DE);
static const colorBgInput = Color(0xFFEDF5EA);
static const colorTextPrimary = Color(0xFF1A2E16);
static const colorTextSecondary = Color(0xFF3A5A32);
static const colorTextMuted = Color(0xFF526B4A);
static const colorAccentBase = Color(0xFF137538);
static const colorAccentLight = Color(0xFF147638);
static const colorAccentDark = Color(0xFF15803D);
static const colorAccentStrong = Color(0xFF137538);
static const colorAccentOn = Color(0xFFFFFFFF);
static const colorAccentOnStrong = Color(0xFFFFFFFF);
static const colorAccentGlow = Color(0x59137538);
static const colorLineBase = Color(0xFFC8DCC0);
static const colorLineStrong = Color(0xFFB0CCAA);
static const colorStatusOkBase = Color(0xFF22C55E);
static const colorStatusOkText = Color(0xFF147638);
static const colorStatusWarnBase = Color(0xFFF59E0B);
static const colorStatusWarnText = Color(0xFF895806);
static const colorStatusBadBase = Color(0xFFEF4444);
static const colorStatusBadText = Color(0xFFBA3535);
static const colorStatusInfoBase = Color(0xFF38BDF8);
static const colorStatusInfoText = Color(0xFF1F6A8B);
static const colorStatusLiveBase = Color(0xFFEF4444);
static const colorStatusLiveText = Color(0xFFBA3535);
}
const understoryLightScheme = ColorScheme(
brightness: Brightness.light,
primary: UnderstoryLightTokens.colorAccentBase,
onPrimary: UnderstoryLightTokens.colorAccentOn,
primaryContainer: UnderstoryLightTokens.colorAccentStrong,
onPrimaryContainer: UnderstoryLightTokens.colorAccentOnStrong,
secondary: UnderstoryLightTokens.colorAccentLight,
onSecondary: UnderstoryLightTokens.colorAccentOn,
tertiary: UnderstoryLightTokens.colorStatusInfoBase,
background: UnderstoryLightTokens.colorBgBase,
onBackground: UnderstoryLightTokens.colorTextPrimary,
surface: UnderstoryLightTokens.colorBgRaised,
onSurface: UnderstoryLightTokens.colorTextPrimary,
onSurfaceVariant: UnderstoryLightTokens.colorTextSecondary,
outline: UnderstoryLightTokens.colorLineStrong,
outlineVariant: UnderstoryLightTokens.colorLineBase,
error: UnderstoryLightTokens.colorStatusBadBase,
onError: UnderstoryLightTokens.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#0a120a#f2f8f0The page behind everythingcolor.bg.surface#121e12#e8f0e4Bands and side panelscolor.bg.subtle#1a2a1a#dce8d6Wells, tracks and quiet fillscolor.bg.raised#152015#f5faf2Cards, rows and sheetscolor.bg.hover#1e3420#e4f0deA control under the pointer or fingercolor.bg.input#0d160d#edf5eaText fieldscolor.text.primary#d4e8d4#1a2e16Body text and titlescolor.text.secondary#8aaa8a#3a5a32Supporting textcolor.text.muted#849e84#526b4aHints and meta linescolor.accent.base#4ade80#137538Links, icons, focus ringscolor.accent.light#86efac#147638The accent a step lightercolor.accent.dark#22c55e#15803dThe accent a step darkercolor.accent.strong#4ade80#137538Filled buttonscolor.accent.on#0b0d10#ffffffText on the accentcolor.accent.onStrong#0b0d10#ffffffText on a filled buttoncolor.accent.glowrgba(74,222,128,0.35)rgba(19,117,56,0.35)Glows and haloscolor.line.base#1a3a1a#c8dcc0Dividers and outlinescolor.line.strong#2a4a2a#b0ccaaOutlines that must showcolor.status.ok.base#22c55e#22c55eSuccess fillscolor.status.ok.text#22c55e#147638Success text on any surfacecolor.status.warn.base#f59e0b#f59e0bWarning fillscolor.status.warn.text#f59e0b#895806Warning text on any surfacecolor.status.bad.base#ef4444#ef4444Danger fillscolor.status.bad.text#f36d6d#ba3535Danger text on any surfacecolor.status.info.base#38bdf8#38bdf8Information fillscolor.status.info.text#38bdf8#1f6a8bInformation text on any surfacecolor.status.live.base#ef4444#ef4444LIVE badgescolor.status.live.text#f36d6d#ba3535LIVE 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.