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
Android (Jetpack Compose)
Download MidnightPumpkinTheme.ktAdd it to your app module and wrap your UI in MaterialTheme(colorScheme = if (isSystemInDarkTheme()) HayrideDarkColorScheme else HayrideLightColorScheme) { … }. Every colour is on HayrideDarkTokens too, and the spacing, radii, type and motion are on OvScale, the same in every theme.
// Midnight Pumpkin (dark) — generated by openvibe-shared/tokens v1 from the OpenVibe theme "halloween". 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
/** Halloween: pumpkin orange on OpenVibe's midnight navy. On by itself through October (Hayride in light). */
object MidnightPumpkinDarkTokens {
val ColorBgBase = Color(0xFF0A0F1C)
val ColorBgSurface = Color(0xFF0F1626)
val ColorBgSubtle = Color(0xFF151E33)
val ColorBgRaised = Color(0xFF111A2B)
val ColorBgHover = Color(0xFF1A2540)
val ColorBgInput = Color(0xFF0C1322)
val ColorTextPrimary = Color(0xFFEEF1F6)
val ColorTextSecondary = Color(0xFFA9B4C8)
val ColorTextMuted = Color(0xFF8C99B0)
val ColorAccentBase = Color(0xFFFF7A1A)
val ColorAccentLight = Color(0xFFFFA14F)
val ColorAccentDark = Color(0xFFD65D00)
val ColorAccentStrong = Color(0xFFFF7A1A)
val ColorAccentOn = Color(0xFF0B0D10)
val ColorAccentOnStrong = Color(0xFF0B0D10)
val ColorAccentGlow = Color(0x59FF7A1A)
val ColorLineBase = Color(0xFF1C2840)
val ColorLineStrong = Color(0xFF2A3858)
val ColorStatusOkBase = Color(0xFF4ADE80)
val ColorStatusOkText = Color(0xFF4ADE80)
val ColorStatusWarnBase = Color(0xFFFBBF24)
val ColorStatusWarnText = Color(0xFFFBBF24)
val ColorStatusBadBase = Color(0xFFF87171)
val ColorStatusBadText = Color(0xFFF87171)
val ColorStatusInfoBase = Color(0xFF60A5FA)
val ColorStatusInfoText = Color(0xFF60A5FA)
val ColorStatusLiveBase = Color(0xFFEF4444)
val ColorStatusLiveText = Color(0xFFF15757)
}
/** Material 3 roles: MaterialTheme(colorScheme = MidnightPumpkinDarkColorScheme) { … } */
val MidnightPumpkinDarkColorScheme: ColorScheme = darkColorScheme(
primary = MidnightPumpkinDarkTokens.ColorAccentBase,
onPrimary = MidnightPumpkinDarkTokens.ColorAccentOn,
primaryContainer = MidnightPumpkinDarkTokens.ColorAccentStrong,
onPrimaryContainer = MidnightPumpkinDarkTokens.ColorAccentOnStrong,
secondary = MidnightPumpkinDarkTokens.ColorAccentLight,
onSecondary = MidnightPumpkinDarkTokens.ColorAccentOn,
tertiary = MidnightPumpkinDarkTokens.ColorStatusInfoBase,
background = MidnightPumpkinDarkTokens.ColorBgBase,
onBackground = MidnightPumpkinDarkTokens.ColorTextPrimary,
surface = MidnightPumpkinDarkTokens.ColorBgRaised,
onSurface = MidnightPumpkinDarkTokens.ColorTextPrimary,
surfaceVariant = MidnightPumpkinDarkTokens.ColorBgSurface,
onSurfaceVariant = MidnightPumpkinDarkTokens.ColorTextSecondary,
outline = MidnightPumpkinDarkTokens.ColorLineStrong,
outlineVariant = MidnightPumpkinDarkTokens.ColorLineBase,
error = MidnightPumpkinDarkTokens.ColorStatusBadBase,
onError = MidnightPumpkinDarkTokens.ColorAccentOnStrong,
surfaceContainerLowest = MidnightPumpkinDarkTokens.ColorBgBase,
surfaceContainerLow = MidnightPumpkinDarkTokens.ColorBgRaised,
surfaceContainer = MidnightPumpkinDarkTokens.ColorBgRaised,
surfaceContainerHigh = MidnightPumpkinDarkTokens.ColorBgSurface,
surfaceContainerHighest = MidnightPumpkinDarkTokens.ColorBgSubtle,
surfaceBright = MidnightPumpkinDarkTokens.ColorBgHover,
surfaceDim = MidnightPumpkinDarkTokens.ColorBgBase,
surfaceTint = MidnightPumpkinDarkTokens.ColorBgRaised,
secondaryContainer = MidnightPumpkinDarkTokens.ColorBgHover,
onSecondaryContainer = MidnightPumpkinDarkTokens.ColorAccentLight,
inverseSurface = MidnightPumpkinDarkTokens.ColorTextPrimary,
inverseOnSurface = MidnightPumpkinDarkTokens.ColorBgBase,
)
/** Halloween in daylight: pumpkin orange on warm hay. Midnight Pumpkin's light half. */
object MidnightPumpkinLightTokens {
val ColorBgBase = Color(0xFFFBF6EE)
val ColorBgSurface = Color(0xFFF6EEE2)
val ColorBgSubtle = Color(0xFFEFE3D1)
val ColorBgRaised = Color(0xFFFFFFFF)
val ColorBgHover = Color(0xFFF3E9DA)
val ColorBgInput = Color(0xFFFFFAF2)
val ColorTextPrimary = Color(0xFF23180F)
val ColorTextSecondary = Color(0xFF5A4838)
val ColorTextMuted = Color(0xFF6B5A4A)
val ColorAccentBase = Color(0xFFB63D0B)
val ColorAccentLight = Color(0xFFAD4109)
val ColorAccentDark = Color(0xFF9A3412)
val ColorAccentStrong = Color(0xFFB63D0B)
val ColorAccentOn = Color(0xFFFFFFFF)
val ColorAccentOnStrong = Color(0xFFFFFFFF)
val ColorAccentGlow = Color(0x59B63D0B)
val ColorLineBase = Color(0xFFEADFCD)
val ColorLineStrong = Color(0xFFE0CFB6)
val ColorStatusOkBase = Color(0xFF22C55E)
val ColorStatusOkText = Color(0xFF147638)
val ColorStatusWarnBase = Color(0xFFF59E0B)
val ColorStatusWarnText = Color(0xFF8E5C06)
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 = MidnightPumpkinLightColorScheme) { … } */
val MidnightPumpkinLightColorScheme: ColorScheme = lightColorScheme(
primary = MidnightPumpkinLightTokens.ColorAccentBase,
onPrimary = MidnightPumpkinLightTokens.ColorAccentOn,
primaryContainer = MidnightPumpkinLightTokens.ColorAccentStrong,
onPrimaryContainer = MidnightPumpkinLightTokens.ColorAccentOnStrong,
secondary = MidnightPumpkinLightTokens.ColorAccentLight,
onSecondary = MidnightPumpkinLightTokens.ColorAccentOn,
tertiary = MidnightPumpkinLightTokens.ColorStatusInfoBase,
background = MidnightPumpkinLightTokens.ColorBgBase,
onBackground = MidnightPumpkinLightTokens.ColorTextPrimary,
surface = MidnightPumpkinLightTokens.ColorBgRaised,
onSurface = MidnightPumpkinLightTokens.ColorTextPrimary,
surfaceVariant = MidnightPumpkinLightTokens.ColorBgSurface,
onSurfaceVariant = MidnightPumpkinLightTokens.ColorTextSecondary,
outline = MidnightPumpkinLightTokens.ColorLineStrong,
outlineVariant = MidnightPumpkinLightTokens.ColorLineBase,
error = MidnightPumpkinLightTokens.ColorStatusBadBase,
onError = MidnightPumpkinLightTokens.ColorAccentOnStrong,
surfaceContainerLowest = MidnightPumpkinLightTokens.ColorBgBase,
surfaceContainerLow = MidnightPumpkinLightTokens.ColorBgRaised,
surfaceContainer = MidnightPumpkinLightTokens.ColorBgRaised,
surfaceContainerHigh = MidnightPumpkinLightTokens.ColorBgSurface,
surfaceContainerHighest = MidnightPumpkinLightTokens.ColorBgSubtle,
surfaceBright = MidnightPumpkinLightTokens.ColorBgHover,
surfaceDim = MidnightPumpkinLightTokens.ColorBgBase,
surfaceTint = MidnightPumpkinLightTokens.ColorBgRaised,
secondaryContainer = MidnightPumpkinLightTokens.ColorBgHover,
onSecondaryContainer = MidnightPumpkinLightTokens.ColorAccentLight,
inverseSurface = MidnightPumpkinLightTokens.ColorTextPrimary,
inverseOnSurface = MidnightPumpkinLightTokens.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#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.