Engineering Tokens

Engineering Tokens

Deep-space liquid glass

Pages

12

Modes

Desktop + Mobile

Build

Token-driven

Engineering tokens

Structured constants that can power any VibeIRL surface.

The token file is the canonical source of truth for color, gradient, blur, shadow, stroke, typography, spacing, and radii. Use these values directly in components or transform them into package-level design tokens later.

Theme source

/lib/tokens/theme.ts

Categories

8 token groups

Runtime hook

CSS variables injected globally

Theme architecture

One source of truth, two consumption paths.

The app consumes the same theme through both TypeScript imports and runtime CSS variables. That gives engineers ergonomic access in component logic while still allowing semantic Tailwind classes to point at the exact same values.

TypeScript access

Import `vibeTokens` anywhere you need typed values or token-driven component recipes.

CSS variable access

Runtime variables make the same values available inside Tailwind extensions and raw CSS.

Theme usage example
import { vibeTokens } from '@/lib/tokens/theme';

export function getPanelRecipe() {
  return {
    radius: vibeTokens.radii.lg,
    fill: vibeTokens.colors.glass.surface,
    border: vibeTokens.stroke.standard,
    shadow: vibeTokens.shadows.panel,
    glow: vibeTokens.gradients.neonBeam
  };
}

Colors

4 entries
TokenValueUsage
background.base#040713Primary cosmic canvas
glass.surfacergba(11, 16, 33, 0.46)Default panel fill
accent.magenta#ff4fd8Hot-path glow
status.success#20d68fPositive state

Gradients

3 entries
TokenValueUsage
gradients.auroraAurora spectrumPrimary hero gradient
gradients.prismCool spectrumCharts and secondary cards
gradients.neonBeamAction beamButtons and pills

Spacing / Radii

4 entries
TokenValueUsage
spacing.md1remDefault internal spacing
spacing.xl2remSection padding
radii.md20pxInputs and row elements
radii.lg28pxCards and widgets

Blur / Shadows / Stroke

4 entries
TokenValueUsage
blur.md20pxStandard glass blur
shadows.panelPanel shadow recipeDepth + top specular
shadows.neonNeon shadow recipeAction glow
stroke.standard1px solid rgba(185, 214, 255, 0.22)Main glass outline