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.
- Violet HourDark
- DaylightLight
MaterialApp(theme: ThemeData(colorScheme: daylightLightScheme), darkTheme: ThemeData(colorScheme: daylightDarkScheme)). The raw values are on DaylightDarkTokens and DaylightLightTokens.
// Violet Hour (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "violet-hour". Regenerate instead of editing.
import 'package:flutter/material.dart';
/// Charcoal and violet: the colours OpenVibe started with.
class VioletHourDarkTokens {
VioletHourDarkTokens._();
static const colorBgBase = Color(0xFF0D0D0F);
static const colorBgSurface = Color(0xFF16161A);
static const colorBgSubtle = Color(0xFF1E1E24);
static const colorBgRaised = Color(0xFF1A1A20);
static const colorBgHover = Color(0xFF242430);
static const colorBgInput = Color(0xFF12121A);
static const colorTextPrimary = Color(0xFFE8E6E3);
static const colorTextSecondary = Color(0xFF9A9A9A);
static const colorTextMuted = Color(0xFF8D8C8C);
static const colorAccentBase = Color(0xFF8B5CF6);
static const colorAccentLight = Color(0xFFA78BFA);
static const colorAccentDark = Color(0xFF6D28D9);
static const colorAccentStrong = Color(0xFF8558EC);
static const colorAccentOn = Color(0xFFFFFFFF);
static const colorAccentOnStrong = Color(0xFFFFFFFF);
static const colorAccentGlow = Color(0x598B5CF6);
static const colorLineBase = Color(0xFF2A2A32);
static const colorLineStrong = Color(0xFF3A3A44);
static const colorStatusOkBase = Color(0xFF2ECC71);
static const colorStatusOkText = Color(0xFF2ECC71);
static const colorStatusWarnBase = Color(0xFFF39C12);
static const colorStatusWarnText = Color(0xFFF39C12);
static const colorStatusBadBase = Color(0xFFE74C3C);
static const colorStatusBadText = Color(0xFFE95E50);
static const colorStatusInfoBase = Color(0xFF3498DB);
static const colorStatusInfoText = Color(0xFF3498DB);
static const colorStatusLiveBase = Color(0xFFE74C3C);
static const colorStatusLiveText = Color(0xFFE95E50);
}
const violetHourDarkScheme = ColorScheme(
brightness: Brightness.dark,
primary: VioletHourDarkTokens.colorAccentBase,
onPrimary: VioletHourDarkTokens.colorAccentOn,
primaryContainer: VioletHourDarkTokens.colorAccentStrong,
onPrimaryContainer: VioletHourDarkTokens.colorAccentOnStrong,
secondary: VioletHourDarkTokens.colorAccentLight,
onSecondary: VioletHourDarkTokens.colorAccentOn,
tertiary: VioletHourDarkTokens.colorStatusInfoBase,
background: VioletHourDarkTokens.colorBgBase,
onBackground: VioletHourDarkTokens.colorTextPrimary,
surface: VioletHourDarkTokens.colorBgRaised,
onSurface: VioletHourDarkTokens.colorTextPrimary,
onSurfaceVariant: VioletHourDarkTokens.colorTextSecondary,
outline: VioletHourDarkTokens.colorLineStrong,
outlineVariant: VioletHourDarkTokens.colorLineBase,
error: VioletHourDarkTokens.colorStatusBadBase,
onError: VioletHourDarkTokens.colorAccentOnStrong,
);
/// Bright white with warm accents.
class VioletHourLightTokens {
VioletHourLightTokens._();
static const colorBgBase = Color(0xFFFFFFFF);
static const colorBgSurface = Color(0xFFF7F7F8);
static const colorBgSubtle = Color(0xFFEEEEF0);
static const colorBgRaised = Color(0xFFFFFFFF);
static const colorBgHover = Color(0xFFF0F0F2);
static const colorBgInput = Color(0xFFF5F5F7);
static const colorTextPrimary = Color(0xFF1A1A2E);
static const colorTextSecondary = Color(0xFF4A4A6A);
static const colorTextMuted = Color(0xFF68687B);
static const colorAccentBase = Color(0xFF7A4DDB);
static const colorAccentLight = Color(0xFF725FAA);
static const colorAccentDark = Color(0xFF6D28D9);
static const colorAccentStrong = Color(0xFF7A4DDB);
static const colorAccentOn = Color(0xFFFFFFFF);
static const colorAccentOnStrong = Color(0xFFFFFFFF);
static const colorAccentGlow = Color(0x597A4DDB);
static const colorLineBase = Color(0xFFE0E0E6);
static const colorLineStrong = Color(0xFFD0D0D8);
static const colorStatusOkBase = Color(0xFF22C55E);
static const colorStatusOkText = Color(0xFF157A3A);
static const colorStatusWarnBase = Color(0xFFF59E0B);
static const colorStatusWarnText = Color(0xFF935F07);
static const colorStatusBadBase = Color(0xFFEF4444);
static const colorStatusBadText = Color(0xFFC43838);
static const colorStatusInfoBase = Color(0xFF38BDF8);
static const colorStatusInfoText = Color(0xFF227195);
static const colorStatusLiveBase = Color(0xFFEF4444);
static const colorStatusLiveText = Color(0xFFC43838);
}
const violetHourLightScheme = ColorScheme(
brightness: Brightness.light,
primary: VioletHourLightTokens.colorAccentBase,
onPrimary: VioletHourLightTokens.colorAccentOn,
primaryContainer: VioletHourLightTokens.colorAccentStrong,
onPrimaryContainer: VioletHourLightTokens.colorAccentOnStrong,
secondary: VioletHourLightTokens.colorAccentLight,
onSecondary: VioletHourLightTokens.colorAccentOn,
tertiary: VioletHourLightTokens.colorStatusInfoBase,
background: VioletHourLightTokens.colorBgBase,
onBackground: VioletHourLightTokens.colorTextPrimary,
surface: VioletHourLightTokens.colorBgRaised,
onSurface: VioletHourLightTokens.colorTextPrimary,
onSurfaceVariant: VioletHourLightTokens.colorTextSecondary,
outline: VioletHourLightTokens.colorLineStrong,
outlineVariant: VioletHourLightTokens.colorLineBase,
error: VioletHourLightTokens.colorStatusBadBase,
onError: VioletHourLightTokens.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#0d0d0f#ffffffThe page behind everythingcolor.bg.surface#16161a#f7f7f8Bands and side panelscolor.bg.subtle#1e1e24#eeeef0Wells, tracks and quiet fillscolor.bg.raised#1a1a20#ffffffCards, rows and sheetscolor.bg.hover#242430#f0f0f2A control under the pointer or fingercolor.bg.input#12121a#f5f5f7Text fieldscolor.text.primary#e8e6e3#1a1a2eBody text and titlescolor.text.secondary#9a9a9a#4a4a6aSupporting textcolor.text.muted#8d8c8c#68687bHints and meta linescolor.accent.base#8b5cf6#7a4ddbLinks, icons, focus ringscolor.accent.light#a78bfa#725faaThe accent a step lightercolor.accent.dark#6d28d9#6d28d9The accent a step darkercolor.accent.strong#8558ec#7a4ddbFilled buttonscolor.accent.on#ffffff#ffffffText on the accentcolor.accent.onStrong#ffffff#ffffffText on a filled buttoncolor.accent.glowrgba(139,92,246,0.35)rgba(122,77,219,0.35)Glows and haloscolor.line.base#2a2a32#e0e0e6Dividers and outlinescolor.line.strong#3a3a44#d0d0d8Outlines that must showcolor.status.ok.base#2ecc71#22c55eSuccess fillscolor.status.ok.text#2ecc71#157a3aSuccess text on any surfacecolor.status.warn.base#f39c12#f59e0bWarning fillscolor.status.warn.text#f39c12#935f07Warning text on any surfacecolor.status.bad.base#e74c3c#ef4444Danger fillscolor.status.bad.text#e95e50#c43838Danger text on any surfacecolor.status.info.base#3498db#38bdf8Information fillscolor.status.info.text#3498db#227195Information text on any surfacecolor.status.live.base#e74c3c#ef4444LIVE badgescolor.status.live.text#e95e50#c43838LIVE 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.