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.
- Solarized DarkDark
- Solarized LightLight
iOS (SwiftUI)
Download SolarizedDarkTheme.swiftAdd it to your target and use SolarizedLightDarkTokens.colorAccentBase and the rest for colours, and OvScale.radiusMd, OvScale.spaceLg… for sizes; colorScheme says which half each one is.
// Solarized Dark (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "solarized-dark". Regenerate instead of editing.
import SwiftUI
/// Ethan Schoonover's precision palette, dark.
public enum SolarizedDarkDarkTokens {
public static let colorScheme: ColorScheme = .dark
public static let colorBgBase = Color(.sRGB, red: 0, green: 0.169, blue: 0.212, opacity: 1)
public static let colorBgSurface = Color(.sRGB, red: 0.027, green: 0.212, blue: 0.259, opacity: 1)
public static let colorBgSubtle = Color(.sRGB, red: 0.039, green: 0.247, blue: 0.306, opacity: 1)
public static let colorBgRaised = Color(.sRGB, red: 0.02, green: 0.208, blue: 0.259, opacity: 1)
public static let colorBgHover = Color(.sRGB, red: 0.051, green: 0.29, blue: 0.345, opacity: 1)
public static let colorBgInput = Color(.sRGB, red: 0.004, green: 0.188, blue: 0.239, opacity: 1)
public static let colorTextPrimary = Color(.sRGB, red: 0.992, green: 0.965, blue: 0.89, opacity: 1)
public static let colorTextSecondary = Color(.sRGB, red: 0.651, green: 0.698, blue: 0.698, opacity: 1)
public static let colorTextMuted = Color(.sRGB, red: 0.659, green: 0.698, blue: 0.69, opacity: 1)
public static let colorAccentBase = Color(.sRGB, red: 0.71, green: 0.537, blue: 0, opacity: 1)
public static let colorAccentLight = Color(.sRGB, red: 0.831, green: 0.627, blue: 0.09, opacity: 1)
public static let colorAccentDark = Color(.sRGB, red: 0.541, green: 0.416, blue: 0, opacity: 1)
public static let colorAccentStrong = Color(.sRGB, red: 0.58, green: 0.439, blue: 0, 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.71, green: 0.537, blue: 0, opacity: 0.35)
public static let colorLineBase = Color(.sRGB, red: 0.039, green: 0.251, blue: 0.314, opacity: 1)
public static let colorLineStrong = Color(.sRGB, red: 0.063, green: 0.314, blue: 0.376, opacity: 1)
public static let colorStatusOkBase = Color(.sRGB, red: 0.522, green: 0.6, blue: 0, opacity: 1)
public static let colorStatusOkText = Color(.sRGB, red: 0.667, green: 0.722, blue: 0.302, opacity: 1)
public static let colorStatusWarnBase = Color(.sRGB, red: 0.796, green: 0.294, blue: 0.086, opacity: 1)
public static let colorStatusWarnText = Color(.sRGB, red: 0.894, green: 0.631, blue: 0.525, opacity: 1)
public static let colorStatusBadBase = Color(.sRGB, red: 0.863, green: 0.196, blue: 0.184, opacity: 1)
public static let colorStatusBadText = Color(.sRGB, red: 0.933, green: 0.6, blue: 0.592, opacity: 1)
public static let colorStatusInfoBase = Color(.sRGB, red: 0.149, green: 0.545, blue: 0.824, opacity: 1)
public static let colorStatusInfoText = Color(.sRGB, red: 0.471, green: 0.718, blue: 0.89, 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.965, green: 0.588, blue: 0.588, opacity: 1)
}
/// Ethan Schoonover's precision palette, light.
public enum SolarizedDarkLightTokens {
public static let colorScheme: ColorScheme = .light
public static let colorBgBase = Color(.sRGB, red: 0.992, green: 0.965, blue: 0.89, opacity: 1)
public static let colorBgSurface = Color(.sRGB, red: 0.933, green: 0.91, blue: 0.835, opacity: 1)
public static let colorBgSubtle = Color(.sRGB, red: 0.894, green: 0.867, blue: 0.776, opacity: 1)
public static let colorBgRaised = Color(.sRGB, red: 0.992, green: 0.965, blue: 0.89, opacity: 1)
public static let colorBgHover = Color(.sRGB, red: 0.933, green: 0.91, blue: 0.835, opacity: 1)
public static let colorBgInput = Color(.sRGB, red: 0.961, green: 0.933, blue: 0.859, opacity: 1)
public static let colorTextPrimary = Color(.sRGB, red: 0, green: 0.169, blue: 0.212, opacity: 1)
public static let colorTextSecondary = Color(.sRGB, red: 0.318, green: 0.396, blue: 0.424, opacity: 1)
public static let colorTextMuted = Color(.sRGB, red: 0.306, green: 0.392, blue: 0.404, opacity: 1)
public static let colorAccentBase = Color(.sRGB, red: 0.475, green: 0.365, blue: 0, opacity: 1)
public static let colorAccentLight = Color(.sRGB, red: 0.482, green: 0.365, blue: 0.051, opacity: 1)
public static let colorAccentDark = Color(.sRGB, red: 0.541, green: 0.416, blue: 0, opacity: 1)
public static let colorAccentStrong = Color(.sRGB, red: 0.475, green: 0.365, blue: 0, 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.475, green: 0.365, blue: 0, opacity: 0.35)
public static let colorLineBase = Color(.sRGB, red: 0.839, green: 0.808, blue: 0.71, opacity: 1)
public static let colorLineStrong = Color(.sRGB, red: 0.784, green: 0.753, blue: 0.647, opacity: 1)
public static let colorStatusOkBase = Color(.sRGB, red: 0.522, green: 0.6, blue: 0, opacity: 1)
public static let colorStatusOkText = Color(.sRGB, red: 0.353, green: 0.408, blue: 0, opacity: 1)
public static let colorStatusWarnBase = Color(.sRGB, red: 0.796, green: 0.294, blue: 0.086, opacity: 1)
public static let colorStatusWarnText = Color(.sRGB, red: 0.651, green: 0.243, blue: 0.071, opacity: 1)
public static let colorStatusBadBase = Color(.sRGB, red: 0.863, green: 0.196, blue: 0.184, opacity: 1)
public static let colorStatusBadText = Color(.sRGB, red: 0.725, green: 0.165, blue: 0.153, opacity: 1)
public static let colorStatusInfoBase = Color(.sRGB, red: 0.149, green: 0.545, blue: 0.824, opacity: 1)
public static let colorStatusInfoText = Color(.sRGB, red: 0.106, green: 0.392, blue: 0.592, 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.694, green: 0.196, blue: 0.196, 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#002b36#fdf6e3The page behind everythingcolor.bg.surface#073642#eee8d5Bands and side panelscolor.bg.subtle#0a3f4e#e4ddc6Wells, tracks and quiet fillscolor.bg.raised#053542#fdf6e3Cards, rows and sheetscolor.bg.hover#0d4a58#eee8d5A control under the pointer or fingercolor.bg.input#01303d#f5eedbText fieldscolor.text.primary#fdf6e3#002b36Body text and titlescolor.text.secondary#a6b2b2#51656cSupporting textcolor.text.muted#a8b2b0#4e6467Hints and meta linescolor.accent.base#b58900#795d00Links, icons, focus ringscolor.accent.light#d4a017#7b5d0dThe accent a step lightercolor.accent.dark#8a6a00#8a6a00The accent a step darkercolor.accent.strong#947000#795d00Filled buttonscolor.accent.on#ffffff#ffffffText on the accentcolor.accent.onStrong#ffffff#ffffffText on a filled buttoncolor.accent.glowrgba(181,137,0,0.35)rgba(121,93,0,0.35)Glows and haloscolor.line.base#0a4050#d6ceb5Dividers and outlinescolor.line.strong#105060#c8c0a5Outlines that must showcolor.status.ok.base#859900#859900Success fillscolor.status.ok.text#aab84d#5a6800Success text on any surfacecolor.status.warn.base#cb4b16#cb4b16Warning fillscolor.status.warn.text#e4a186#a63e12Warning text on any surfacecolor.status.bad.base#dc322f#dc322fDanger fillscolor.status.bad.text#ee9997#b92a27Danger text on any surfacecolor.status.info.base#268bd2#268bd2Information fillscolor.status.info.text#78b7e3#1b6497Information text on any surfacecolor.status.live.base#ef4444#ef4444LIVE badgescolor.status.live.text#f69696#b13232LIVE 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.