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.
- AmberDark
- PaperLight
Flutter
Download AmberTheme.dartMaterialApp(theme: ThemeData(colorScheme: paperLightScheme), darkTheme: ThemeData(colorScheme: paperDarkScheme)). The raw values are on PaperDarkTokens and PaperLightTokens.
// Amber (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "hacker". Regenerate instead of editing.
import 'package:flutter/material.dart';
/// Amber phosphor on black.
class AmberDarkTokens {
AmberDarkTokens._();
static const colorBgBase = Color(0xFF000000);
static const colorBgSurface = Color(0xFF0A0800);
static const colorBgSubtle = Color(0xFF141000);
static const colorBgRaised = Color(0xFF0E0C00);
static const colorBgHover = Color(0xFF1C1800);
static const colorBgInput = Color(0xFF060400);
static const colorTextPrimary = Color(0xFFFFB000);
static const colorTextSecondary = Color(0xFFCC8D00);
static const colorTextMuted = Color(0xFFA97A0F);
static const colorAccentBase = Color(0xFFFFB000);
static const colorAccentLight = Color(0xFFFFD050);
static const colorAccentDark = Color(0xFFCC8D00);
static const colorAccentStrong = Color(0xFFFFB000);
static const colorAccentOn = Color(0xFF0B0D10);
static const colorAccentOnStrong = Color(0xFF0B0D10);
static const colorAccentGlow = Color(0x59FFB000);
static const colorLineBase = Color(0xFF1A1400);
static const colorLineStrong = Color(0xFF2A2200);
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(0xFFEF4444);
static const colorStatusInfoBase = Color(0xFF38BDF8);
static const colorStatusInfoText = Color(0xFF38BDF8);
static const colorStatusLiveBase = Color(0xFFEF4444);
static const colorStatusLiveText = Color(0xFFEF4444);
}
const amberDarkScheme = ColorScheme(
brightness: Brightness.dark,
primary: AmberDarkTokens.colorAccentBase,
onPrimary: AmberDarkTokens.colorAccentOn,
primaryContainer: AmberDarkTokens.colorAccentStrong,
onPrimaryContainer: AmberDarkTokens.colorAccentOnStrong,
secondary: AmberDarkTokens.colorAccentLight,
onSecondary: AmberDarkTokens.colorAccentOn,
tertiary: AmberDarkTokens.colorStatusInfoBase,
background: AmberDarkTokens.colorBgBase,
onBackground: AmberDarkTokens.colorTextPrimary,
surface: AmberDarkTokens.colorBgRaised,
onSurface: AmberDarkTokens.colorTextPrimary,
onSurfaceVariant: AmberDarkTokens.colorTextSecondary,
outline: AmberDarkTokens.colorLineStrong,
outlineVariant: AmberDarkTokens.colorLineBase,
error: AmberDarkTokens.colorStatusBadBase,
onError: AmberDarkTokens.colorAccentOnStrong,
);
/// Aged paper and ink.
class AmberLightTokens {
AmberLightTokens._();
static const colorBgBase = Color(0xFFFAF8F5);
static const colorBgSurface = Color(0xFFF0ECE6);
static const colorBgSubtle = Color(0xFFE8E2D8);
static const colorBgRaised = Color(0xFFFAF8F5);
static const colorBgHover = Color(0xFFF0ECE6);
static const colorBgInput = Color(0xFFF5F2ED);
static const colorTextPrimary = Color(0xFF2C2416);
static const colorTextSecondary = Color(0xFF5A4E3E);
static const colorTextMuted = Color(0xFF6C6355);
static const colorAccentBase = Color(0xFF7D5F12);
static const colorAccentLight = Color(0xFF7B6122);
static const colorAccentDark = Color(0xFF6A5010);
static const colorAccentStrong = Color(0xFF7D5F12);
static const colorAccentOn = Color(0xFFFFFFFF);
static const colorAccentOnStrong = Color(0xFFFFFFFF);
static const colorAccentGlow = Color(0x597D5F12);
static const colorLineBase = Color(0xFFDDD6C8);
static const colorLineStrong = Color(0xFFCCC4B0);
static const colorStatusOkBase = Color(0xFF22C55E);
static const colorStatusOkText = Color(0xFF147237);
static const colorStatusWarnBase = Color(0xFFF59E0B);
static const colorStatusWarnText = Color(0xFF895806);
static const colorStatusBadBase = Color(0xFFEF4444);
static const colorStatusBadText = Color(0xFFB63434);
static const colorStatusInfoBase = Color(0xFF38BDF8);
static const colorStatusInfoText = Color(0xFF1F6A8B);
static const colorStatusLiveBase = Color(0xFFEF4444);
static const colorStatusLiveText = Color(0xFFB63434);
}
const amberLightScheme = ColorScheme(
brightness: Brightness.light,
primary: AmberLightTokens.colorAccentBase,
onPrimary: AmberLightTokens.colorAccentOn,
primaryContainer: AmberLightTokens.colorAccentStrong,
onPrimaryContainer: AmberLightTokens.colorAccentOnStrong,
secondary: AmberLightTokens.colorAccentLight,
onSecondary: AmberLightTokens.colorAccentOn,
tertiary: AmberLightTokens.colorStatusInfoBase,
background: AmberLightTokens.colorBgBase,
onBackground: AmberLightTokens.colorTextPrimary,
surface: AmberLightTokens.colorBgRaised,
onSurface: AmberLightTokens.colorTextPrimary,
onSurfaceVariant: AmberLightTokens.colorTextSecondary,
outline: AmberLightTokens.colorLineStrong,
outlineVariant: AmberLightTokens.colorLineBase,
error: AmberLightTokens.colorStatusBadBase,
onError: AmberLightTokens.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#000000#faf8f5The page behind everythingcolor.bg.surface#0a0800#f0ece6Bands and side panelscolor.bg.subtle#141000#e8e2d8Wells, tracks and quiet fillscolor.bg.raised#0e0c00#faf8f5Cards, rows and sheetscolor.bg.hover#1c1800#f0ece6A control under the pointer or fingercolor.bg.input#060400#f5f2edText fieldscolor.text.primary#ffb000#2c2416Body text and titlescolor.text.secondary#cc8d00#5a4e3eSupporting textcolor.text.muted#a97a0f#6c6355Hints and meta linescolor.accent.base#ffb000#7d5f12Links, icons, focus ringscolor.accent.light#ffd050#7b6122The accent a step lightercolor.accent.dark#cc8d00#6a5010The accent a step darkercolor.accent.strong#ffb000#7d5f12Filled buttonscolor.accent.on#0b0d10#ffffffText on the accentcolor.accent.onStrong#0b0d10#ffffffText on a filled buttoncolor.accent.glowrgba(255,176,0,0.35)rgba(125,95,18,0.35)Glows and haloscolor.line.base#1a1400#ddd6c8Dividers and outlinescolor.line.strong#2a2200#ccc4b0Outlines that must showcolor.status.ok.base#22c55e#22c55eSuccess fillscolor.status.ok.text#22c55e#147237Success 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#ef4444#b63434Danger 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#ef4444#b63434LIVE 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.