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.
- Midnight PumpkinDark
- HayrideLight
MaterialApp(theme: ThemeData(colorScheme: midnightPumpkinLightScheme), darkTheme: ThemeData(colorScheme: midnightPumpkinDarkScheme)). The raw values are on MidnightPumpkinDarkTokens and MidnightPumpkinLightTokens.
// Midnight Pumpkin (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "halloween". Regenerate instead of editing.
import 'package:flutter/material.dart';
/// Halloween: pumpkin orange on OpenVibe's midnight navy. On by itself through October (Hayride in light).
class MidnightPumpkinDarkTokens {
MidnightPumpkinDarkTokens._();
static const colorBgBase = Color(0xFF0A0F1C);
static const colorBgSurface = Color(0xFF0F1626);
static const colorBgSubtle = Color(0xFF151E33);
static const colorBgRaised = Color(0xFF111A2B);
static const colorBgHover = Color(0xFF1A2540);
static const colorBgInput = Color(0xFF0C1322);
static const colorTextPrimary = Color(0xFFEEF1F6);
static const colorTextSecondary = Color(0xFFA9B4C8);
static const colorTextMuted = Color(0xFF8C99B0);
static const colorAccentBase = Color(0xFFFF7A1A);
static const colorAccentLight = Color(0xFFFFA14F);
static const colorAccentDark = Color(0xFFD65D00);
static const colorAccentStrong = Color(0xFFFF7A1A);
static const colorAccentOn = Color(0xFF0B0D10);
static const colorAccentOnStrong = Color(0xFF0B0D10);
static const colorAccentGlow = Color(0x59FF7A1A);
static const colorLineBase = Color(0xFF1C2840);
static const colorLineStrong = Color(0xFF2A3858);
static const colorStatusOkBase = Color(0xFF4ADE80);
static const colorStatusOkText = Color(0xFF4ADE80);
static const colorStatusWarnBase = Color(0xFFFBBF24);
static const colorStatusWarnText = Color(0xFFFBBF24);
static const colorStatusBadBase = Color(0xFFF87171);
static const colorStatusBadText = Color(0xFFF87171);
static const colorStatusInfoBase = Color(0xFF60A5FA);
static const colorStatusInfoText = Color(0xFF60A5FA);
static const colorStatusLiveBase = Color(0xFFEF4444);
static const colorStatusLiveText = Color(0xFFF15757);
}
const midnightPumpkinDarkScheme = ColorScheme(
brightness: Brightness.dark,
primary: MidnightPumpkinDarkTokens.colorAccentBase,
onPrimary: MidnightPumpkinDarkTokens.colorAccentOn,
primaryContainer: MidnightPumpkinDarkTokens.colorAccentStrong,
onPrimaryContainer: MidnightPumpkinDarkTokens.colorAccentOnStrong,
secondary: MidnightPumpkinDarkTokens.colorAccentLight,
onSecondary: MidnightPumpkinDarkTokens.colorAccentOn,
tertiary: MidnightPumpkinDarkTokens.colorStatusInfoBase,
background: MidnightPumpkinDarkTokens.colorBgBase,
onBackground: MidnightPumpkinDarkTokens.colorTextPrimary,
surface: MidnightPumpkinDarkTokens.colorBgRaised,
onSurface: MidnightPumpkinDarkTokens.colorTextPrimary,
onSurfaceVariant: MidnightPumpkinDarkTokens.colorTextSecondary,
outline: MidnightPumpkinDarkTokens.colorLineStrong,
outlineVariant: MidnightPumpkinDarkTokens.colorLineBase,
error: MidnightPumpkinDarkTokens.colorStatusBadBase,
onError: MidnightPumpkinDarkTokens.colorAccentOnStrong,
);
/// Halloween in daylight: pumpkin orange on warm hay. Midnight Pumpkin's light half.
class MidnightPumpkinLightTokens {
MidnightPumpkinLightTokens._();
static const colorBgBase = Color(0xFFFBF6EE);
static const colorBgSurface = Color(0xFFF6EEE2);
static const colorBgSubtle = Color(0xFFEFE3D1);
static const colorBgRaised = Color(0xFFFFFFFF);
static const colorBgHover = Color(0xFFF3E9DA);
static const colorBgInput = Color(0xFFFFFAF2);
static const colorTextPrimary = Color(0xFF23180F);
static const colorTextSecondary = Color(0xFF5A4838);
static const colorTextMuted = Color(0xFF6B5A4A);
static const colorAccentBase = Color(0xFFB63D0B);
static const colorAccentLight = Color(0xFFAD4109);
static const colorAccentDark = Color(0xFF9A3412);
static const colorAccentStrong = Color(0xFFB63D0B);
static const colorAccentOn = Color(0xFFFFFFFF);
static const colorAccentOnStrong = Color(0xFFFFFFFF);
static const colorAccentGlow = Color(0x59B63D0B);
static const colorLineBase = Color(0xFFEADFCD);
static const colorLineStrong = Color(0xFFE0CFB6);
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(0xFF1F6A8B);
static const colorStatusLiveBase = Color(0xFFEF4444);
static const colorStatusLiveText = Color(0xFFBA3535);
}
const midnightPumpkinLightScheme = ColorScheme(
brightness: Brightness.light,
primary: MidnightPumpkinLightTokens.colorAccentBase,
onPrimary: MidnightPumpkinLightTokens.colorAccentOn,
primaryContainer: MidnightPumpkinLightTokens.colorAccentStrong,
onPrimaryContainer: MidnightPumpkinLightTokens.colorAccentOnStrong,
secondary: MidnightPumpkinLightTokens.colorAccentLight,
onSecondary: MidnightPumpkinLightTokens.colorAccentOn,
tertiary: MidnightPumpkinLightTokens.colorStatusInfoBase,
background: MidnightPumpkinLightTokens.colorBgBase,
onBackground: MidnightPumpkinLightTokens.colorTextPrimary,
surface: MidnightPumpkinLightTokens.colorBgRaised,
onSurface: MidnightPumpkinLightTokens.colorTextPrimary,
onSurfaceVariant: MidnightPumpkinLightTokens.colorTextSecondary,
outline: MidnightPumpkinLightTokens.colorLineStrong,
outlineVariant: MidnightPumpkinLightTokens.colorLineBase,
error: MidnightPumpkinLightTokens.colorStatusBadBase,
onError: MidnightPumpkinLightTokens.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#fbf6eeThe page behind everythingcolor.bg.surface#0f1626#f6eee2Bands and side panelscolor.bg.subtle#151e33#efe3d1Wells, tracks and quiet fillscolor.bg.raised#111a2b#ffffffCards, rows and sheetscolor.bg.hover#1a2540#f3e9daA control under the pointer or fingercolor.bg.input#0c1322#fffaf2Text fieldscolor.text.primary#eef1f6#23180fBody text and titlescolor.text.secondary#a9b4c8#5a4838Supporting textcolor.text.muted#8c99b0#6b5a4aHints and meta linescolor.accent.base#ff7a1a#b63d0bLinks, icons, focus ringscolor.accent.light#ffa14f#ad4109The accent a step lightercolor.accent.dark#d65d00#9a3412The accent a step darkercolor.accent.strong#ff7a1a#b63d0bFilled buttonscolor.accent.on#0b0d10#ffffffText on the accentcolor.accent.onStrong#0b0d10#ffffffText on a filled buttoncolor.accent.glowrgba(255,122,26,0.35)rgba(182,61,11,0.35)Glows and haloscolor.line.base#1c2840#eadfcdDividers and outlinescolor.line.strong#2a3858#e0cfb6Outlines that must showcolor.status.ok.base#4ade80#22c55eSuccess fillscolor.status.ok.text#4ade80#147638Success text on any surfacecolor.status.warn.base#fbbf24#f59e0bWarning fillscolor.status.warn.text#fbbf24#8e5c06Warning text on any surfacecolor.status.bad.base#f87171#ef4444Danger fillscolor.status.bad.text#f87171#ba3535Danger text on any surfacecolor.status.info.base#60a5fa#38bdf8Information fillscolor.status.info.text#60a5fa#1f6a8bInformation text on any surfacecolor.status.live.base#ef4444#ef4444LIVE badgescolor.status.live.text#f15757#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.