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
Save it as tailwind.config.js beside the CSS file. Classes like bg-bg-raised and text-accent-base read the variables, so light and dark need no rebuild.
// Solarized Dark (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "solarized-dark". Regenerate instead of editing.
// Pair it with the CSS export (the variables), so a light/dark switch needs no rebuild.
module.exports = {
"theme": {
"extend": {
"colors": {
"bg": {
"base": "var(--ov-color-bg-base)",
"surface": "var(--ov-color-bg-surface)",
"subtle": "var(--ov-color-bg-subtle)",
"raised": "var(--ov-color-bg-raised)",
"hover": "var(--ov-color-bg-hover)",
"input": "var(--ov-color-bg-input)"
},
"text": {
"primary": "var(--ov-color-text-primary)",
"secondary": "var(--ov-color-text-secondary)",
"muted": "var(--ov-color-text-muted)"
},
"accent": {
"base": "var(--ov-color-accent-base)",
"light": "var(--ov-color-accent-light)",
"dark": "var(--ov-color-accent-dark)",
"strong": "var(--ov-color-accent-strong)",
"on": "var(--ov-color-accent-on)",
"onStrong": "var(--ov-color-accent-on-strong)",
"glow": "var(--ov-color-accent-glow)"
},
"line": {
"base": "var(--ov-color-line-base)",
"strong": "var(--ov-color-line-strong)"
},
"status": {
"ok": {
"base": "var(--ov-color-status-ok-base)",
"text": "var(--ov-color-status-ok-text)"
},
"warn": {
"base": "var(--ov-color-status-warn-base)",
"text": "var(--ov-color-status-warn-text)"
},
"bad": {
"base": "var(--ov-color-status-bad-base)",
"text": "var(--ov-color-status-bad-text)"
},
"info": {
"base": "var(--ov-color-status-info-base)",
"text": "var(--ov-color-status-info-text)"
},
"live": {
"base": "var(--ov-color-status-live-base)",
"text": "var(--ov-color-status-live-text)"
}
}
},
"borderRadius": {
"sm": "var(--ov-radius-sm)",
"md": "var(--ov-radius-md)",
"lg": "var(--ov-radius-lg)",
"pill": "var(--ov-radius-pill)"
},
"spacing": {
"xs": "var(--ov-space-xs)",
"sm": "var(--ov-space-sm)",
"md": "var(--ov-space-md)",
"lg": "var(--ov-space-lg)",
"xl": "var(--ov-space-xl)",
"xxl": "var(--ov-space-xxl)"
},
"boxShadow": {
"DEFAULT": "var(--ov-shadow-base)",
"lg": "var(--ov-shadow-large)"
}
}
}
};
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.