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.
- VibeDark
- Vibe LightLight
Android (Jetpack Compose)
Download VibeTheme.ktAdd it to your app module and wrap your UI in MaterialTheme(colorScheme = if (isSystemInDarkTheme()) VibeLightDarkColorScheme else VibeLightLightColorScheme) { … }. Every colour is on VibeLightDarkTokens too, and the spacing, radii, type and motion are on OvScale, the same in every theme.
// Vibe (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "vibe". Regenerate instead of editing.
package network.openvibe.theme
import androidx.compose.material3.ColorScheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
/** OpenVibe's default: deep blue night with an electric-blue glow. */
object VibeDarkTokens {
val ColorBgBase = Color(0xFF0A0F1C)
val ColorBgSurface = Color(0xFF101828)
val ColorBgSubtle = Color(0xFF172238)
val ColorBgRaised = Color(0xFF131C2E)
val ColorBgHover = Color(0xFF1C2A44)
val ColorBgInput = Color(0xFF0D1424)
val ColorTextPrimary = Color(0xFFE6EDF7)
val ColorTextSecondary = Color(0xFF96A7C2)
val ColorTextMuted = Color(0xFF8192AC)
val ColorAccentBase = Color(0xFF3B82F6)
val ColorAccentLight = Color(0xFF60A5FA)
val ColorAccentDark = Color(0xFF1D4ED8)
val ColorAccentStrong = Color(0xFF3472D8)
val ColorAccentOn = Color(0xFFFFFFFF)
val ColorAccentOnStrong = Color(0xFFFFFFFF)
val ColorAccentGlow = Color(0x593B82F6)
val ColorLineBase = Color(0xFF1F2D47)
val ColorLineStrong = Color(0xFF2C3D5C)
val ColorStatusOkBase = Color(0xFF22C55E)
val ColorStatusOkText = Color(0xFF22C55E)
val ColorStatusWarnBase = Color(0xFFF59E0B)
val ColorStatusWarnText = Color(0xFFF59E0B)
val ColorStatusBadBase = Color(0xFFEF4444)
val ColorStatusBadText = Color(0xFFF26262)
val ColorStatusInfoBase = Color(0xFF38BDF8)
val ColorStatusInfoText = Color(0xFF38BDF8)
val ColorStatusLiveBase = Color(0xFFEF4444)
val ColorStatusLiveText = Color(0xFFF26262)
}
/** Material 3 roles: MaterialTheme(colorScheme = VibeDarkColorScheme) { … } */
val VibeDarkColorScheme: ColorScheme = darkColorScheme(
primary = VibeDarkTokens.ColorAccentBase,
onPrimary = VibeDarkTokens.ColorAccentOn,
primaryContainer = VibeDarkTokens.ColorAccentStrong,
onPrimaryContainer = VibeDarkTokens.ColorAccentOnStrong,
secondary = VibeDarkTokens.ColorAccentLight,
onSecondary = VibeDarkTokens.ColorAccentOn,
tertiary = VibeDarkTokens.ColorStatusInfoBase,
background = VibeDarkTokens.ColorBgBase,
onBackground = VibeDarkTokens.ColorTextPrimary,
surface = VibeDarkTokens.ColorBgRaised,
onSurface = VibeDarkTokens.ColorTextPrimary,
surfaceVariant = VibeDarkTokens.ColorBgSurface,
onSurfaceVariant = VibeDarkTokens.ColorTextSecondary,
outline = VibeDarkTokens.ColorLineStrong,
outlineVariant = VibeDarkTokens.ColorLineBase,
error = VibeDarkTokens.ColorStatusBadBase,
onError = VibeDarkTokens.ColorAccentOnStrong,
surfaceContainerLowest = VibeDarkTokens.ColorBgBase,
surfaceContainerLow = VibeDarkTokens.ColorBgRaised,
surfaceContainer = VibeDarkTokens.ColorBgRaised,
surfaceContainerHigh = VibeDarkTokens.ColorBgSurface,
surfaceContainerHighest = VibeDarkTokens.ColorBgSubtle,
surfaceBright = VibeDarkTokens.ColorBgHover,
surfaceDim = VibeDarkTokens.ColorBgBase,
surfaceTint = VibeDarkTokens.ColorBgRaised,
secondaryContainer = VibeDarkTokens.ColorBgHover,
onSecondaryContainer = VibeDarkTokens.ColorAccentLight,
inverseSurface = VibeDarkTokens.ColorTextPrimary,
inverseOnSurface = VibeDarkTokens.ColorBgBase,
)
/** OpenVibe's default in daylight: airy blue-white with the same blue. */
object VibeLightTokens {
val ColorBgBase = Color(0xFFF0F5FF)
val ColorBgSurface = Color(0xFFE8EEF8)
val ColorBgSubtle = Color(0xFFDDE5F0)
val ColorBgRaised = Color(0xFFF5F8FF)
val ColorBgHover = Color(0xFFE4ECF8)
val ColorBgInput = Color(0xFFEDF2FA)
val ColorTextPrimary = Color(0xFF1A2040)
val ColorTextSecondary = Color(0xFF4A5070)
val ColorTextMuted = Color(0xFF5E637B)
val ColorAccentBase = Color(0xFF245DD5)
val ColorAccentLight = Color(0xFF3C669B)
val ColorAccentDark = Color(0xFF2563EB)
val ColorAccentStrong = Color(0xFF245DD5)
val ColorAccentOn = Color(0xFFFFFFFF)
val ColorAccentOnStrong = Color(0xFFFFFFFF)
val ColorAccentGlow = Color(0x59245DD5)
val ColorLineBase = Color(0xFFD0D8EA)
val ColorLineStrong = Color(0xFFBCC8E0)
val ColorStatusOkBase = Color(0xFF22C55E)
val ColorStatusOkText = Color(0xFF147237)
val ColorStatusWarnBase = Color(0xFFF59E0B)
val ColorStatusWarnText = Color(0xFF895806)
val ColorStatusBadBase = Color(0xFFEF4444)
val ColorStatusBadText = Color(0xFFBA3535)
val ColorStatusInfoBase = Color(0xFF38BDF8)
val ColorStatusInfoText = Color(0xFF1F6A8B)
val ColorStatusLiveBase = Color(0xFFEF4444)
val ColorStatusLiveText = Color(0xFFBA3535)
}
/** Material 3 roles: MaterialTheme(colorScheme = VibeLightColorScheme) { … } */
val VibeLightColorScheme: ColorScheme = lightColorScheme(
primary = VibeLightTokens.ColorAccentBase,
onPrimary = VibeLightTokens.ColorAccentOn,
primaryContainer = VibeLightTokens.ColorAccentStrong,
onPrimaryContainer = VibeLightTokens.ColorAccentOnStrong,
secondary = VibeLightTokens.ColorAccentLight,
onSecondary = VibeLightTokens.ColorAccentOn,
tertiary = VibeLightTokens.ColorStatusInfoBase,
background = VibeLightTokens.ColorBgBase,
onBackground = VibeLightTokens.ColorTextPrimary,
surface = VibeLightTokens.ColorBgRaised,
onSurface = VibeLightTokens.ColorTextPrimary,
surfaceVariant = VibeLightTokens.ColorBgSurface,
onSurfaceVariant = VibeLightTokens.ColorTextSecondary,
outline = VibeLightTokens.ColorLineStrong,
outlineVariant = VibeLightTokens.ColorLineBase,
error = VibeLightTokens.ColorStatusBadBase,
onError = VibeLightTokens.ColorAccentOnStrong,
surfaceContainerLowest = VibeLightTokens.ColorBgBase,
surfaceContainerLow = VibeLightTokens.ColorBgRaised,
surfaceContainer = VibeLightTokens.ColorBgRaised,
surfaceContainerHigh = VibeLightTokens.ColorBgSurface,
surfaceContainerHighest = VibeLightTokens.ColorBgSubtle,
surfaceBright = VibeLightTokens.ColorBgHover,
surfaceDim = VibeLightTokens.ColorBgBase,
surfaceTint = VibeLightTokens.ColorBgRaised,
secondaryContainer = VibeLightTokens.ColorBgHover,
onSecondaryContainer = VibeLightTokens.ColorAccentLight,
inverseSurface = VibeLightTokens.ColorTextPrimary,
inverseOnSurface = VibeLightTokens.ColorBgBase,
)
/** The OpenVibe kit's radius, space, size, type and motion scales: the same in every theme. */
object OvScale {
val RadiusSm = 10.dp
val RadiusMd = 14.dp
val RadiusLg = 20.dp
val RadiusPill = 999.dp
val SpaceXs = 4.dp
val SpaceSm = 8.dp
val SpaceMd = 12.dp
val SpaceLg = 16.dp
val SpaceXl = 24.dp
val SpaceXxl = 32.dp
val SizeTap = 44.dp
val SizeIcon = 20.dp
val SizeAvatar = 34.dp
val TypeSizeCaption = 12.sp
val TypeSizeMeta = 13.sp
val TypeSizeBody = 15.sp
val TypeSizeLead = 17.sp
val TypeSizeTitle = 20.sp
val TypeSizeHeadline = 24.sp
val TypeSizeDisplay = 34.sp
const val TypeWeightRegular = 400
const val TypeWeightMedium = 600
const val TypeWeightBold = 700
const val TypeWeightHeavy = 800
const val MotionDurationFast = 180
const val MotionDurationBase = 260
const val MotionDurationSlow = 360
const val MotionDurationReduced = 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#0a0f1c#f0f5ffThe page behind everythingcolor.bg.surface#101828#e8eef8Bands and side panelscolor.bg.subtle#172238#dde5f0Wells, tracks and quiet fillscolor.bg.raised#131c2e#f5f8ffCards, rows and sheetscolor.bg.hover#1c2a44#e4ecf8A control under the pointer or fingercolor.bg.input#0d1424#edf2faText fieldscolor.text.primary#e6edf7#1a2040Body text and titlescolor.text.secondary#96a7c2#4a5070Supporting textcolor.text.muted#8192ac#5e637bHints and meta linescolor.accent.base#3b82f6#245dd5Links, icons, focus ringscolor.accent.light#60a5fa#3c669bThe accent a step lightercolor.accent.dark#1d4ed8#2563ebThe accent a step darkercolor.accent.strong#3472d8#245dd5Filled buttonscolor.accent.on#ffffff#ffffffText on the accentcolor.accent.onStrong#ffffff#ffffffText on a filled buttoncolor.accent.glowrgba(59,130,246,0.35)rgba(36,93,213,0.35)Glows and haloscolor.line.base#1f2d47#d0d8eaDividers and outlinescolor.line.strong#2c3d5c#bcc8e0Outlines that must showcolor.status.ok.base#22c55e#22c55eSuccess fillscolor.status.ok.text#22c55e#147237Success text on any surfacecolor.status.warn.base#f59e0b#f59e0bWarning fillscolor.status.warn.text#f59e0b#895806Warning text on any surfacecolor.status.bad.base#ef4444#ef4444Danger fillscolor.status.bad.text#f26262#ba3535Danger text on any surfacecolor.status.info.base#38bdf8#38bdf8Information fillscolor.status.info.text#38bdf8#1f6a8bInformation text on any surfacecolor.status.live.base#ef4444#ef4444LIVE badgescolor.status.live.text#f26262#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.