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.
- VibeDark
- Vibe LightLight
Flutter
Download VibeTheme.dartMaterialApp(theme: ThemeData(colorScheme: vibeLightScheme), darkTheme: ThemeData(colorScheme: vibeDarkScheme)). The raw values are on VibeDarkTokens and VibeLightTokens.
// Vibe (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "vibe". Regenerate instead of editing.
import 'package:flutter/material.dart';
/// OpenVibe's default: deep blue night with an electric-blue glow.
class VibeDarkTokens {
VibeDarkTokens._();
static const colorBgBase = Color(0xFF0A0F1C);
static const colorBgSurface = Color(0xFF101828);
static const colorBgSubtle = Color(0xFF172238);
static const colorBgRaised = Color(0xFF131C2E);
static const colorBgHover = Color(0xFF1C2A44);
static const colorBgInput = Color(0xFF0D1424);
static const colorTextPrimary = Color(0xFFE6EDF7);
static const colorTextSecondary = Color(0xFF96A7C2);
static const colorTextMuted = Color(0xFF8192AC);
static const colorAccentBase = Color(0xFF3B82F6);
static const colorAccentLight = Color(0xFF60A5FA);
static const colorAccentDark = Color(0xFF1D4ED8);
static const colorAccentStrong = Color(0xFF3472D8);
static const colorAccentOn = Color(0xFFFFFFFF);
static const colorAccentOnStrong = Color(0xFFFFFFFF);
static const colorAccentGlow = Color(0x593B82F6);
static const colorLineBase = Color(0xFF1F2D47);
static const colorLineStrong = Color(0xFF2C3D5C);
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(0xFFF26262);
static const colorStatusInfoBase = Color(0xFF38BDF8);
static const colorStatusInfoText = Color(0xFF38BDF8);
static const colorStatusLiveBase = Color(0xFFEF4444);
static const colorStatusLiveText = Color(0xFFF26262);
}
const vibeDarkScheme = ColorScheme(
brightness: Brightness.dark,
primary: VibeDarkTokens.colorAccentBase,
onPrimary: VibeDarkTokens.colorAccentOn,
primaryContainer: VibeDarkTokens.colorAccentStrong,
onPrimaryContainer: VibeDarkTokens.colorAccentOnStrong,
secondary: VibeDarkTokens.colorAccentLight,
onSecondary: VibeDarkTokens.colorAccentOn,
tertiary: VibeDarkTokens.colorStatusInfoBase,
background: VibeDarkTokens.colorBgBase,
onBackground: VibeDarkTokens.colorTextPrimary,
surface: VibeDarkTokens.colorBgRaised,
onSurface: VibeDarkTokens.colorTextPrimary,
onSurfaceVariant: VibeDarkTokens.colorTextSecondary,
outline: VibeDarkTokens.colorLineStrong,
outlineVariant: VibeDarkTokens.colorLineBase,
error: VibeDarkTokens.colorStatusBadBase,
onError: VibeDarkTokens.colorAccentOnStrong,
);
/// OpenVibe's default in daylight: airy blue-white with the same blue.
class VibeLightTokens {
VibeLightTokens._();
static const colorBgBase = Color(0xFFF0F5FF);
static const colorBgSurface = Color(0xFFE8EEF8);
static const colorBgSubtle = Color(0xFFDDE5F0);
static const colorBgRaised = Color(0xFFF5F8FF);
static const colorBgHover = Color(0xFFE4ECF8);
static const colorBgInput = Color(0xFFEDF2FA);
static const colorTextPrimary = Color(0xFF1A2040);
static const colorTextSecondary = Color(0xFF4A5070);
static const colorTextMuted = Color(0xFF5E637B);
static const colorAccentBase = Color(0xFF245DD5);
static const colorAccentLight = Color(0xFF3C669B);
static const colorAccentDark = Color(0xFF2563EB);
static const colorAccentStrong = Color(0xFF245DD5);
static const colorAccentOn = Color(0xFFFFFFFF);
static const colorAccentOnStrong = Color(0xFFFFFFFF);
static const colorAccentGlow = Color(0x59245DD5);
static const colorLineBase = Color(0xFFD0D8EA);
static const colorLineStrong = Color(0xFFBCC8E0);
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(0xFFBA3535);
static const colorStatusInfoBase = Color(0xFF38BDF8);
static const colorStatusInfoText = Color(0xFF1F6A8B);
static const colorStatusLiveBase = Color(0xFFEF4444);
static const colorStatusLiveText = Color(0xFFBA3535);
}
const vibeLightScheme = ColorScheme(
brightness: Brightness.light,
primary: VibeLightTokens.colorAccentBase,
onPrimary: VibeLightTokens.colorAccentOn,
primaryContainer: VibeLightTokens.colorAccentStrong,
onPrimaryContainer: VibeLightTokens.colorAccentOnStrong,
secondary: VibeLightTokens.colorAccentLight,
onSecondary: VibeLightTokens.colorAccentOn,
tertiary: VibeLightTokens.colorStatusInfoBase,
background: VibeLightTokens.colorBgBase,
onBackground: VibeLightTokens.colorTextPrimary,
surface: VibeLightTokens.colorBgRaised,
onSurface: VibeLightTokens.colorTextPrimary,
onSurfaceVariant: VibeLightTokens.colorTextSecondary,
outline: VibeLightTokens.colorLineStrong,
outlineVariant: VibeLightTokens.colorLineBase,
error: VibeLightTokens.colorStatusBadBase,
onError: VibeLightTokens.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#0a0f1c#f0f5ffThe page behind everythingcolor.bg.surface#101828#e8eef8Bands and side panelscolor.bg.subtle#172238#dde5f0Wells, tracks and quiet fillscolor.bg.raised#131c2e#f5f8ffCards, rows and sheetscolor.bg.hover#1c2a44#e4ecf8A control under the pointer or fingercolor.bg.input#0d1424#edf2faText fieldscolor.text.primary#e6edf7#1a2040Body text and titlescolor.text.secondary#96a7c2#4a5070Supporting textcolor.text.muted#8192ac#5e637bHints and meta linescolor.accent.base#3b82f6#245dd5Links, icons, focus ringscolor.accent.light#60a5fa#3c669bThe accent a step lightercolor.accent.dark#1d4ed8#2563ebThe accent a step darkercolor.accent.strong#3472d8#245dd5Filled buttonscolor.accent.on#ffffff#ffffffText on the accentcolor.accent.onStrong#ffffff#ffffffText on a filled buttoncolor.accent.glowrgba(59,130,246,0.35)rgba(36,93,213,0.35)Glows and haloscolor.line.base#1f2d47#d0d8eaDividers and outlinescolor.line.strong#2c3d5c#bcc8e0Outlines 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#f26262#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#f26262#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.