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
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.
// Midnight Pumpkin (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "halloween". 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#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.