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.

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.

// Violet Hour (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "violet-hour". 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#0d0d0f#ffffffThe page behind everything
  • color.bg.surface#16161a#f7f7f8Bands and side panels
  • color.bg.subtle#1e1e24#eeeef0Wells, tracks and quiet fills
  • color.bg.raised#1a1a20#ffffffCards, rows and sheets
  • color.bg.hover#242430#f0f0f2A control under the pointer or finger
  • color.bg.input#12121a#f5f5f7Text fields
  • color.text.primary#e8e6e3#1a1a2eBody text and titles
  • color.text.secondary#9a9a9a#4a4a6aSupporting text
  • color.text.muted#8d8c8c#68687bHints and meta lines
  • color.accent.base#8b5cf6#7a4ddbLinks, icons, focus rings
  • color.accent.light#a78bfa#725faaThe accent a step lighter
  • color.accent.dark#6d28d9#6d28d9The accent a step darker
  • color.accent.strong#8558ec#7a4ddbFilled buttons
  • color.accent.on#ffffff#ffffffText on the accent
  • color.accent.onStrong#ffffff#ffffffText on a filled button
  • color.accent.glowrgba(139,92,246,0.35)rgba(122,77,219,0.35)Glows and halos
  • color.line.base#2a2a32#e0e0e6Dividers and outlines
  • color.line.strong#3a3a44#d0d0d8Outlines that must show
  • color.status.ok.base#2ecc71#22c55eSuccess fills
  • color.status.ok.text#2ecc71#157a3aSuccess text on any surface
  • color.status.warn.base#f39c12#f59e0bWarning fills
  • color.status.warn.text#f39c12#935f07Warning text on any surface
  • color.status.bad.base#e74c3c#ef4444Danger fills
  • color.status.bad.text#e95e50#c43838Danger text on any surface
  • color.status.info.base#3498db#38bdf8Information fills
  • color.status.info.text#3498db#227195Information text on any surface
  • color.status.live.base#e74c3c#ef4444LIVE badges
  • color.status.live.text#e95e50#c43838LIVE 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.

Change this theme in the studio The tokens API