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.
- TrenchDark
- ShallowsLight
Flutter
Download TrenchTheme.dartMaterialApp(theme: ThemeData(colorScheme: shallowsLightScheme), darkTheme: ThemeData(colorScheme: shallowsDarkScheme)). The raw values are on ShallowsDarkTokens and ShallowsLightTokens.
// Trench (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "ocean-deep". Regenerate instead of editing.
import 'package:flutter/material.dart';
/// Pressure-dark water with a teal glow.
class TrenchDarkTokens {
TrenchDarkTokens._();
static const colorBgBase = Color(0xFF0A1215);
static const colorBgSurface = Color(0xFF0F1A1F);
static const colorBgSubtle = Color(0xFF162228);
static const colorBgRaised = Color(0xFF121C22);
static const colorBgHover = Color(0xFF1A2A32);
static const colorBgInput = Color(0xFF0C1418);
static const colorTextPrimary = Color(0xFFD0E8EF);
static const colorTextSecondary = Color(0xFF7AA8BA);
static const colorTextMuted = Color(0xFF7494A1);
static const colorAccentBase = Color(0xFF00BCD4);
static const colorAccentLight = Color(0xFF4DD0E1);
static const colorAccentDark = Color(0xFF0097A7);
static const colorAccentStrong = Color(0xFF00BCD4);
static const colorAccentOn = Color(0xFF0B0D10);
static const colorAccentOnStrong = Color(0xFF0B0D10);
static const colorAccentGlow = Color(0x5900BCD4);
static const colorLineBase = Color(0xFF1A3040);
static const colorLineStrong = Color(0xFF2A4050);
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(0xFFF15E5E);
static const colorStatusInfoBase = Color(0xFF38BDF8);
static const colorStatusInfoText = Color(0xFF38BDF8);
static const colorStatusLiveBase = Color(0xFFEF4444);
static const colorStatusLiveText = Color(0xFFF15E5E);
}
const trenchDarkScheme = ColorScheme(
brightness: Brightness.dark,
primary: TrenchDarkTokens.colorAccentBase,
onPrimary: TrenchDarkTokens.colorAccentOn,
primaryContainer: TrenchDarkTokens.colorAccentStrong,
onPrimaryContainer: TrenchDarkTokens.colorAccentOnStrong,
secondary: TrenchDarkTokens.colorAccentLight,
onSecondary: TrenchDarkTokens.colorAccentOn,
tertiary: TrenchDarkTokens.colorStatusInfoBase,
background: TrenchDarkTokens.colorBgBase,
onBackground: TrenchDarkTokens.colorTextPrimary,
surface: TrenchDarkTokens.colorBgRaised,
onSurface: TrenchDarkTokens.colorTextPrimary,
onSurfaceVariant: TrenchDarkTokens.colorTextSecondary,
outline: TrenchDarkTokens.colorLineStrong,
outlineVariant: TrenchDarkTokens.colorLineBase,
error: TrenchDarkTokens.colorStatusBadBase,
onError: TrenchDarkTokens.colorAccentOnStrong,
);
/// Trench in the sun: clear teal water over white sand.
class TrenchLightTokens {
TrenchLightTokens._();
static const colorBgBase = Color(0xFFF0FAFB);
static const colorBgSurface = Color(0xFFE4F4F6);
static const colorBgSubtle = Color(0xFFD5ECEF);
static const colorBgRaised = Color(0xFFF7FCFD);
static const colorBgHover = Color(0xFFDCF0F2);
static const colorBgInput = Color(0xFFEBF7F8);
static const colorTextPrimary = Color(0xFF0C2226);
static const colorTextSecondary = Color(0xFF3A5458);
static const colorTextMuted = Color(0xFF516B70);
static const colorAccentBase = Color(0xFF007384);
static const colorAccentLight = Color(0xFF00737F);
static const colorAccentDark = Color(0xFF005662);
static const colorAccentStrong = Color(0xFF007384);
static const colorAccentOn = Color(0xFFFFFFFF);
static const colorAccentOnStrong = Color(0xFFFFFFFF);
static const colorAccentGlow = Color(0x59007384);
static const colorLineBase = Color(0xFFC9E3E7);
static const colorLineStrong = Color(0xFFB4D6DB);
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(0xFFBA3535);
static const colorStatusInfoBase = Color(0xFF38BDF8);
static const colorStatusInfoText = Color(0xFF206E90);
static const colorStatusLiveBase = Color(0xFFEF4444);
static const colorStatusLiveText = Color(0xFFBA3535);
}
const trenchLightScheme = ColorScheme(
brightness: Brightness.light,
primary: TrenchLightTokens.colorAccentBase,
onPrimary: TrenchLightTokens.colorAccentOn,
primaryContainer: TrenchLightTokens.colorAccentStrong,
onPrimaryContainer: TrenchLightTokens.colorAccentOnStrong,
secondary: TrenchLightTokens.colorAccentLight,
onSecondary: TrenchLightTokens.colorAccentOn,
tertiary: TrenchLightTokens.colorStatusInfoBase,
background: TrenchLightTokens.colorBgBase,
onBackground: TrenchLightTokens.colorTextPrimary,
surface: TrenchLightTokens.colorBgRaised,
onSurface: TrenchLightTokens.colorTextPrimary,
onSurfaceVariant: TrenchLightTokens.colorTextSecondary,
outline: TrenchLightTokens.colorLineStrong,
outlineVariant: TrenchLightTokens.colorLineBase,
error: TrenchLightTokens.colorStatusBadBase,
onError: TrenchLightTokens.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#0a1215#f0fafbThe page behind everythingcolor.bg.surface#0f1a1f#e4f4f6Bands and side panelscolor.bg.subtle#162228#d5ecefWells, tracks and quiet fillscolor.bg.raised#121c22#f7fcfdCards, rows and sheetscolor.bg.hover#1a2a32#dcf0f2A control under the pointer or fingercolor.bg.input#0c1418#ebf7f8Text fieldscolor.text.primary#d0e8ef#0c2226Body text and titlescolor.text.secondary#7aa8ba#3a5458Supporting textcolor.text.muted#7494a1#516b70Hints and meta linescolor.accent.base#00bcd4#007384Links, icons, focus ringscolor.accent.light#4dd0e1#00737fThe accent a step lightercolor.accent.dark#0097a7#005662The accent a step darkercolor.accent.strong#00bcd4#007384Filled buttonscolor.accent.on#0b0d10#ffffffText on the accentcolor.accent.onStrong#0b0d10#ffffffText on a filled buttoncolor.accent.glowrgba(0,188,212,0.35)rgba(0,115,132,0.35)Glows and haloscolor.line.base#1a3040#c9e3e7Dividers and outlinescolor.line.strong#2a4050#b4d6dbOutlines 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#8e5c06Warning text on any surfacecolor.status.bad.base#ef4444#ef4444Danger fillscolor.status.bad.text#f15e5e#ba3535Danger text on any surfacecolor.status.info.base#38bdf8#38bdf8Information fillscolor.status.info.text#38bdf8#206e90Information text on any surfacecolor.status.live.base#ef4444#ef4444LIVE badgescolor.status.live.text#f15e5e#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.