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.
- EmberDark
- AshLight
iOS (SwiftUI)
Download EmberTheme.swiftAdd it to your target and use AshDarkTokens.colorAccentBase and the rest for colours, and OvScale.radiusMd, OvScale.spaceLg… for sizes; colorScheme says which half each one is.
// Ember (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "ember". Regenerate instead of editing.
import SwiftUI
/// Smouldering red on warm charcoal.
public enum EmberDarkTokens {
public static let colorScheme: ColorScheme = .dark
public static let colorBgBase = Color(.sRGB, red: 0.071, green: 0.031, blue: 0.031, opacity: 1)
public static let colorBgSurface = Color(.sRGB, red: 0.102, green: 0.055, blue: 0.055, opacity: 1)
public static let colorBgSubtle = Color(.sRGB, red: 0.141, green: 0.078, blue: 0.078, opacity: 1)
public static let colorBgRaised = Color(.sRGB, red: 0.118, green: 0.063, blue: 0.063, opacity: 1)
public static let colorBgHover = Color(.sRGB, red: 0.18, green: 0.094, blue: 0.094, opacity: 1)
public static let colorBgInput = Color(.sRGB, red: 0.078, green: 0.039, blue: 0.039, opacity: 1)
public static let colorTextPrimary = Color(.sRGB, red: 0.941, green: 0.855, blue: 0.855, opacity: 1)
public static let colorTextSecondary = Color(.sRGB, red: 0.69, green: 0.502, blue: 0.541, opacity: 1)
public static let colorTextMuted = Color(.sRGB, red: 0.608, green: 0.502, blue: 0.518, opacity: 1)
public static let colorAccentBase = Color(.sRGB, red: 0.937, green: 0.267, blue: 0.267, opacity: 1)
public static let colorAccentLight = Color(.sRGB, red: 0.973, green: 0.443, blue: 0.443, opacity: 1)
public static let colorAccentDark = Color(.sRGB, red: 0.725, green: 0.11, blue: 0.11, opacity: 1)
public static let colorAccentStrong = Color(.sRGB, red: 0.843, green: 0.239, blue: 0.239, opacity: 1)
public static let colorAccentOn = Color(.sRGB, red: 1, green: 1, blue: 1, opacity: 1)
public static let colorAccentOnStrong = Color(.sRGB, red: 1, green: 1, blue: 1, opacity: 1)
public static let colorAccentGlow = Color(.sRGB, red: 0.937, green: 0.267, blue: 0.267, opacity: 0.35)
public static let colorLineBase = Color(.sRGB, red: 0.227, green: 0.102, blue: 0.125, opacity: 1)
public static let colorLineStrong = Color(.sRGB, red: 0.29, green: 0.165, blue: 0.188, opacity: 1)
public static let colorStatusOkBase = Color(.sRGB, red: 0.133, green: 0.773, blue: 0.369, opacity: 1)
public static let colorStatusOkText = Color(.sRGB, red: 0.133, green: 0.773, blue: 0.369, opacity: 1)
public static let colorStatusWarnBase = Color(.sRGB, red: 0.961, green: 0.62, blue: 0.043, opacity: 1)
public static let colorStatusWarnText = Color(.sRGB, red: 0.961, green: 0.62, blue: 0.043, opacity: 1)
public static let colorStatusBadBase = Color(.sRGB, red: 0.937, green: 0.267, blue: 0.267, opacity: 1)
public static let colorStatusBadText = Color(.sRGB, red: 0.937, green: 0.282, blue: 0.282, opacity: 1)
public static let colorStatusInfoBase = Color(.sRGB, red: 0.22, green: 0.741, blue: 0.973, opacity: 1)
public static let colorStatusInfoText = Color(.sRGB, red: 0.22, green: 0.741, blue: 0.973, opacity: 1)
public static let colorStatusLiveBase = Color(.sRGB, red: 0.937, green: 0.267, blue: 0.267, opacity: 1)
public static let colorStatusLiveText = Color(.sRGB, red: 0.937, green: 0.282, blue: 0.282, opacity: 1)
}
/// Ember cooled to ash: warm greys with a red glow.
public enum EmberLightTokens {
public static let colorScheme: ColorScheme = .light
public static let colorBgBase = Color(.sRGB, red: 0.98, green: 0.969, blue: 0.965, opacity: 1)
public static let colorBgSurface = Color(.sRGB, red: 0.953, green: 0.933, blue: 0.925, opacity: 1)
public static let colorBgSubtle = Color(.sRGB, red: 0.918, green: 0.886, blue: 0.875, opacity: 1)
public static let colorBgRaised = Color(.sRGB, red: 0.992, green: 0.984, blue: 0.98, opacity: 1)
public static let colorBgHover = Color(.sRGB, red: 0.937, green: 0.906, blue: 0.894, opacity: 1)
public static let colorBgInput = Color(.sRGB, red: 0.969, green: 0.953, blue: 0.945, opacity: 1)
public static let colorTextPrimary = Color(.sRGB, red: 0.137, green: 0.09, blue: 0.086, opacity: 1)
public static let colorTextSecondary = Color(.sRGB, red: 0.329, green: 0.251, blue: 0.239, opacity: 1)
public static let colorTextMuted = Color(.sRGB, red: 0.447, green: 0.357, blue: 0.341, opacity: 1)
public static let colorAccentBase = Color(.sRGB, red: 0.761, green: 0.153, blue: 0.153, opacity: 1)
public static let colorAccentLight = Color(.sRGB, red: 0.737, green: 0.184, blue: 0.169, opacity: 1)
public static let colorAccentDark = Color(.sRGB, red: 0.557, green: 0.106, blue: 0.106, opacity: 1)
public static let colorAccentStrong = Color(.sRGB, red: 0.761, green: 0.153, blue: 0.153, opacity: 1)
public static let colorAccentOn = Color(.sRGB, red: 1, green: 1, blue: 1, opacity: 1)
public static let colorAccentOnStrong = Color(.sRGB, red: 1, green: 1, blue: 1, opacity: 1)
public static let colorAccentGlow = Color(.sRGB, red: 0.761, green: 0.153, blue: 0.153, opacity: 0.35)
public static let colorLineBase = Color(.sRGB, red: 0.886, green: 0.839, blue: 0.824, opacity: 1)
public static let colorLineStrong = Color(.sRGB, red: 0.831, green: 0.769, blue: 0.749, opacity: 1)
public static let colorStatusOkBase = Color(.sRGB, red: 0.133, green: 0.773, blue: 0.369, opacity: 1)
public static let colorStatusOkText = Color(.sRGB, red: 0.078, green: 0.447, blue: 0.216, opacity: 1)
public static let colorStatusWarnBase = Color(.sRGB, red: 0.961, green: 0.62, blue: 0.043, opacity: 1)
public static let colorStatusWarnText = Color(.sRGB, red: 0.537, green: 0.345, blue: 0.024, opacity: 1)
public static let colorStatusBadBase = Color(.sRGB, red: 0.937, green: 0.267, blue: 0.267, opacity: 1)
public static let colorStatusBadText = Color(.sRGB, red: 0.729, green: 0.208, blue: 0.208, opacity: 1)
public static let colorStatusInfoBase = Color(.sRGB, red: 0.22, green: 0.741, blue: 0.973, opacity: 1)
public static let colorStatusInfoText = Color(.sRGB, red: 0.122, green: 0.416, blue: 0.545, opacity: 1)
public static let colorStatusLiveBase = Color(.sRGB, red: 0.937, green: 0.267, blue: 0.267, opacity: 1)
public static let colorStatusLiveText = Color(.sRGB, red: 0.729, green: 0.208, blue: 0.208, opacity: 1)
}
/// The OpenVibe kit's radius, space, size, type and motion scales: the same in every theme.
public enum OvScale {
public static let radiusSm: CGFloat = 10
public static let radiusMd: CGFloat = 14
public static let radiusLg: CGFloat = 20
public static let radiusPill: CGFloat = 999
public static let spaceXs: CGFloat = 4
public static let spaceSm: CGFloat = 8
public static let spaceMd: CGFloat = 12
public static let spaceLg: CGFloat = 16
public static let spaceXl: CGFloat = 24
public static let spaceXxl: CGFloat = 32
public static let sizeTap: CGFloat = 44
public static let sizeIcon: CGFloat = 20
public static let sizeAvatar: CGFloat = 34
public static let typeSizeCaption: CGFloat = 12
public static let typeSizeMeta: CGFloat = 13
public static let typeSizeBody: CGFloat = 15
public static let typeSizeLead: CGFloat = 17
public static let typeSizeTitle: CGFloat = 20
public static let typeSizeHeadline: CGFloat = 24
public static let typeSizeDisplay: CGFloat = 34
public static let motionDurationFast: Double = 0.18
public static let motionDurationBase: Double = 0.26
public static let motionDurationSlow: Double = 0.36
public static let motionDurationReduced: Double = 0
}
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#120808#faf7f6The page behind everythingcolor.bg.surface#1a0e0e#f3eeecBands and side panelscolor.bg.subtle#241414#eae2dfWells, tracks and quiet fillscolor.bg.raised#1e1010#fdfbfaCards, rows and sheetscolor.bg.hover#2e1818#efe7e4A control under the pointer or fingercolor.bg.input#140a0a#f7f3f1Text fieldscolor.text.primary#f0dada#231716Body text and titlescolor.text.secondary#b0808a#54403dSupporting textcolor.text.muted#9b8084#725b57Hints and meta linescolor.accent.base#ef4444#c22727Links, icons, focus ringscolor.accent.light#f87171#bc2f2bThe accent a step lightercolor.accent.dark#b91c1c#8e1b1bThe accent a step darkercolor.accent.strong#d73d3d#c22727Filled buttonscolor.accent.on#ffffff#ffffffText on the accentcolor.accent.onStrong#ffffff#ffffffText on a filled buttoncolor.accent.glowrgba(239,68,68,0.35)rgba(194,39,39,0.35)Glows and haloscolor.line.base#3a1a20#e2d6d2Dividers and outlinescolor.line.strong#4a2a30#d4c4bfOutlines 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#ef4848#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#ef4848#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.