tahta

Design system for Slidev decks: tokens, 30 layouts and 13 variants

Image 1 of 4: Title slide of the gallery deck in the editorial variant

A three-tier token layer, components such as Stat, Plot and Callout, and 30 layouts filled from frontmatter fields, with the layout and variant contract shipped as JSON and AGENTS.md generated from it; 13 variants swap type, shape, texture, density and motion.

Trade-offs

  • Components read only semantic tokens, so a variant is a remap of one layer, and a test fails any hardcoded value.
  • A brand color sets only the hue: lightness and chroma normalize into the variant's envelope, so any brand stays legible and on style, though not at its exact hex.
  • The contract ships as data (layouts.json, variants.json) and AGENTS.md is generated from it, so a slide is fields to fill rather than CSS to write.

Q&A4

npm test gates the token contract (no hardcoded values) and WCAG AA contrast for every variant, and CI renders every layout in every variant.

Reviews

Loading reviews

    More in Design systems

    See all 5 →
    • ng-brutalismNeo-brutalist UI primitives and a layout grammar for Angular
    • melta UIDesign contracts for AI coding agents, with the linters that enforce them
    • SakaniUIToken-driven React design system built one to one from its Figma source
    • AsimonimDesign tokens parser, validator and language server in Go
    • Ely GPUI ComponentComponent library for GPUI, Zed's Rust UI framework, in light and dark

    More in JavaScript

    See all 33 →
    • HashCortxLocal-first desktop workspace for chat, coding agents and agent teams
    • PaperVaultOffline paper vaults for secrets, unlocked by M-of-N printed key shares
    • Let's SealOpen standard and free network for proving a file is unaltered, dated and issued
    • Rigby2DOpen-source 2D skeletal animation editor for games and film
    • LoomFlowSelf-hosted visual ETL on Polars and React Flow
    • Procedural TerrainsGPU-driven terrain studio for the browser: boards, endless worlds, planets