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.
- ArcticDark
- SnowLight
iOS (SwiftUI)
Download ArcticTheme.swiftAdd it to your target and use SnowDarkTokens.colorAccentBase and the rest for colours, and OvScale.radiusMd, OvScale.spaceLg… for sizes; colorScheme says which half each one is.
// Arctic (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "arctic". Regenerate instead of editing.
import SwiftUI
/// Frost surfaces, cyan light, crisp white text.
public enum ArcticDarkTokens {
public static let colorScheme: ColorScheme = .dark
public static let colorBgBase = Color(.sRGB, red: 0.043, green: 0.086, blue: 0.125, opacity: 1)
public static let colorBgSurface = Color(.sRGB, red: 0.059, green: 0.118, blue: 0.169, opacity: 1)
public static let colorBgSubtle = Color(.sRGB, red: 0.086, green: 0.188, blue: 0.251, opacity: 1)
public static let colorBgRaised = Color(.sRGB, red: 0.071, green: 0.145, blue: 0.204, opacity: 1)
public static let colorBgHover = Color(.sRGB, red: 0.102, green: 0.227, blue: 0.298, opacity: 1)
public static let colorBgInput = Color(.sRGB, red: 0.047, green: 0.102, blue: 0.149, opacity: 1)
public static let colorTextPrimary = Color(.sRGB, red: 0.918, green: 0.965, blue: 1, opacity: 1)
public static let colorTextSecondary = Color(.sRGB, red: 0.62, green: 0.765, blue: 0.847, opacity: 1)
public static let colorTextMuted = Color(.sRGB, red: 0.506, green: 0.647, blue: 0.733, opacity: 1)
public static let colorAccentBase = Color(.sRGB, red: 0.133, green: 0.827, blue: 0.933, opacity: 1)
public static let colorAccentLight = Color(.sRGB, red: 0.647, green: 0.953, blue: 0.988, opacity: 1)
public static let colorAccentDark = Color(.sRGB, red: 0.031, green: 0.569, blue: 0.698, opacity: 1)
public static let colorAccentStrong = Color(.sRGB, red: 0.133, green: 0.827, blue: 0.933, opacity: 1)
public static let colorAccentOn = Color(.sRGB, red: 0.043, green: 0.051, blue: 0.063, opacity: 1)
public static let colorAccentOnStrong = Color(.sRGB, red: 0.043, green: 0.051, blue: 0.063, opacity: 1)
public static let colorAccentGlow = Color(.sRGB, red: 0.133, green: 0.827, blue: 0.933, opacity: 0.35)
public static let colorLineBase = Color(.sRGB, red: 0.118, green: 0.247, blue: 0.322, opacity: 1)
public static let colorLineStrong = Color(.sRGB, red: 0.165, green: 0.322, blue: 0.408, opacity: 1)
public static let colorStatusOkBase = Color(.sRGB, red: 0.204, green: 0.827, blue: 0.6, opacity: 1)
public static let colorStatusOkText = Color(.sRGB, red: 0.204, green: 0.827, blue: 0.6, 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.957, green: 0.486, blue: 0.486, opacity: 1)
public static let colorStatusInfoBase = Color(.sRGB, red: 0.49, green: 0.827, blue: 0.988, opacity: 1)
public static let colorStatusInfoText = Color(.sRGB, red: 0.49, green: 0.827, blue: 0.988, 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.957, green: 0.486, blue: 0.486, opacity: 1)
}
/// Pure white with icy blue.
public enum ArcticLightTokens {
public static let colorScheme: ColorScheme = .light
public static let colorBgBase = Color(.sRGB, red: 1, green: 1, blue: 1, opacity: 1)
public static let colorBgSurface = Color(.sRGB, red: 0.973, green: 0.98, blue: 0.988, opacity: 1)
public static let colorBgSubtle = Color(.sRGB, red: 0.945, green: 0.961, blue: 0.976, opacity: 1)
public static let colorBgRaised = Color(.sRGB, red: 1, green: 1, blue: 1, opacity: 1)
public static let colorBgHover = Color(.sRGB, red: 0.945, green: 0.961, blue: 0.976, opacity: 1)
public static let colorBgInput = Color(.sRGB, red: 0.973, green: 0.98, blue: 0.988, opacity: 1)
public static let colorTextPrimary = Color(.sRGB, red: 0.059, green: 0.09, blue: 0.165, opacity: 1)
public static let colorTextSecondary = Color(.sRGB, red: 0.2, green: 0.255, blue: 0.333, opacity: 1)
public static let colorTextMuted = Color(.sRGB, red: 0.396, green: 0.443, blue: 0.522, opacity: 1)
public static let colorAccentBase = Color(.sRGB, red: 0.008, green: 0.459, blue: 0.69, opacity: 1)
public static let colorAccentLight = Color(.sRGB, red: 0.137, green: 0.459, blue: 0.604, opacity: 1)
public static let colorAccentDark = Color(.sRGB, red: 0.008, green: 0.518, blue: 0.78, opacity: 1)
public static let colorAccentStrong = Color(.sRGB, red: 0.008, green: 0.459, blue: 0.69, 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.008, green: 0.459, blue: 0.69, opacity: 0.35)
public static let colorLineBase = Color(.sRGB, red: 0.886, green: 0.91, blue: 0.941, opacity: 1)
public static let colorLineStrong = Color(.sRGB, red: 0.796, green: 0.835, blue: 0.882, 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.086, green: 0.494, blue: 0.235, 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.596, green: 0.384, blue: 0.027, 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.788, green: 0.224, blue: 0.224, 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.137, green: 0.459, blue: 0.604, 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.788, green: 0.224, blue: 0.224, 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#0b1620#ffffffThe page behind everythingcolor.bg.surface#0f1e2b#f8fafcBands and side panelscolor.bg.subtle#163040#f1f5f9Wells, tracks and quiet fillscolor.bg.raised#122534#ffffffCards, rows and sheetscolor.bg.hover#1a3a4c#f1f5f9A control under the pointer or fingercolor.bg.input#0c1a26#f8fafcText fieldscolor.text.primary#eaf6ff#0f172aBody text and titlescolor.text.secondary#9ec3d8#334155Supporting textcolor.text.muted#81a5bb#657185Hints and meta linescolor.accent.base#22d3ee#0275b0Links, icons, focus ringscolor.accent.light#a5f3fc#23759aThe accent a step lightercolor.accent.dark#0891b2#0284c7The accent a step darkercolor.accent.strong#22d3ee#0275b0Filled buttonscolor.accent.on#0b0d10#ffffffText on the accentcolor.accent.onStrong#0b0d10#ffffffText on a filled buttoncolor.accent.glowrgba(34,211,238,0.35)rgba(2,117,176,0.35)Glows and haloscolor.line.base#1e3f52#e2e8f0Dividers and outlinescolor.line.strong#2a5268#cbd5e1Outlines that must showcolor.status.ok.base#34d399#22c55eSuccess fillscolor.status.ok.text#34d399#167e3cSuccess text on any surfacecolor.status.warn.base#f59e0b#f59e0bWarning fillscolor.status.warn.text#f59e0b#986207Warning text on any surfacecolor.status.bad.base#ef4444#ef4444Danger fillscolor.status.bad.text#f47c7c#c93939Danger text on any surfacecolor.status.info.base#7dd3fc#38bdf8Information fillscolor.status.info.text#7dd3fc#23759aInformation text on any surfacecolor.status.live.base#ef4444#ef4444LIVE badgescolor.status.live.text#f47c7c#c93939LIVE 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.