Skip to content
Open sourceTokens, React, landing and docs kits

One design system for every peleda page

A handful of options become a full light and dark theme with checked contrast. The same tokens drive the app kit, the landing kit and the docs theme, in every script and in both directions.

MIT OR Apache-2.0React 19 · Tailwind 4 · VitePressWCAG 2.2 AA

Playground

Make a theme, watch the kit follow

Every control feeds createTheme. The preview is a scoped container running the real components, and the CSS you copy is what themeToCss writes for :root.

Theme options

Sans font
Radius
Corners
Density
Contrast
Scheme
Inbox settings
Changes apply to every device signed in to this account.
View
NewSyncedQuota 92%Bounced
Mira OkaforTomas LindqvistAna Ribeiro+1
Archive export64%
SearchCommand K
theme.tsts
import { applyTheme } from '@peleda-app/tokens/theme'applyTheme({  accent: '#4f46e5',})
Contrast of the generated theme
PairLightDark
Body text16.1:1AAA15.6:1AAA
Muted text7.56:1AAA10.6:1AAA
Accent on surface6.29:1AA6.41:1AA
Text on accent6.29:1AA6.92:1AA
Accent on subtle8.60:1AAA8.96:1AAA

Packages

Five packages, one set of tokens

Packages ship TypeScript source and are bundled by the app that uses them. Register all five with one command in a checkout of this repository, then depend on them from another repository through link:.

bun run link:all

@peleda-app/tokens

CSS variables, the Tailwind 4 theme, fonts for every script, site identities and the theme engine.

Entry points
../theme./index.css./fonts-all.css./identities
Dependency
"@peleda-app/tokens": "link:@peleda-app/tokens"
theme.tsts
import { applyTheme, setColorScheme } from '@peleda-app/tokens/theme'applyTheme({ accent: '#0f766e', corners: 'smooth', density: 'compact' })setColorScheme('system')
Read the guide: @peleda-app/tokens

@peleda-app/ui

The React kit: Radix-based primitives and generic components, from fields and menus to tables and dialogs.

Entry points
../styles.css
Dependency
"@peleda-app/ui": "link:@peleda-app/ui"
settings.tsxtsx
import { Badge, Button, Switch } from '@peleda-app/ui'export function SyncRow() {  return (    <>      <Badge variant="success">Synced</Badge>      <Switch aria-label="Sync on battery" />      <Button variant="primary">Save</Button>    </>  )}
Read the guide: @peleda-app/ui

@peleda-app/landing

Landing page sections, frames and the family header and footer, themed per site identity.

Entry points
../styles.css
Dependency
"@peleda-app/landing": "link:@peleda-app/landing"
home.tsxtsx
import { Hero, HeroContent, HeroTitle, Site } from '@peleda-app/landing'import { identity } from '@peleda-app/tokens/identities'export const Home = () => (  <Site identity={identity('pellet')}>    <Hero>      <HeroContent>        <HeroTitle>Spam filtering for small machines</HeroTitle>      </HeroContent>    </Hero>  </Site>)
Read the guide: @peleda-app/landing

@peleda-app/docs

A VitePress theme and Vue components for documentation sites, coloured by identity.

Entry points
../config./theme./styles.css
Dependency
"@peleda-app/docs": "link:@peleda-app/docs"
docs/.vitepress/config.tsts
import { defineDocsConfig } from '@peleda-app/docs/config'import { identity } from '@peleda-app/tokens/identities'export default defineDocsConfig({  identity: identity('skein'),  base: '/docs/',})
Read the guide: @peleda-app/docs

@peleda-app/site

Static sites from React pages: a Vite build, prerendered HTML, sitemap, robots.txt and optional docs.

Entry points
../client./build./docs./vite
Dependency
"@peleda-app/site": "link:@peleda-app/site"
scripts/build.tsts
import { buildSite } from '@peleda-app/site/build'await buildSite({  root: new URL('..', import.meta.url).pathname,  docs: 'docs',})
Read the guide: @peleda-app/site

Accessibility and scripts

Readable by more people, in more languages

Fonts, line heights and spacing adapt to the language of the text. Components follow the WAI-ARIA patterns and keep working in right-to-left layouts.

Checked contrast

Accent, status and tone colours are fitted to 4.5:1, or 7:1 with high contrast.

Every script

Noto fallbacks for Greek, Cyrillic, Arabic, Hebrew, Indic, Thai and CJK, with taller lines where a script needs them.

Right to left

Logical spacing and borders only, flipped directional icons and isolated user text.

Readable fonts

Atkinson Hyperlegible Next, Lexend and OpenDyslexic, plus relaxed spacing.

Keyboard first

Radix primitives with roving focus, a visible 3px focus ring and named controls.

Calm motion

Durations drop to zero for reduced motion, and only transform and opacity animate.

  • Went through v3 this morning, the story is much tighter now.
    LatinEnglishen
  • Посмотрела третью версию утром, история стала гораздо стройнее.
    CyrillicРусскийru
  • Διάβασα την τρίτη έκδοση σήμερα το πρωί, η ιστορία είναι πολύ πιο σφιχτή.
    GreekΕλληνικάel
  • راجعت النسخة الثالثة هذا الصباح، وأصبحت القصة أكثر تماسكًا بكثير.
    Arabicالعربيةar · rtl
  • עברתי על הגרסה השלישית הבוקר, הסיפור הרבה יותר הדוק עכשיו.
    Hebrewעבריתhe · rtl
  • आज सुबह तीसरा संस्करण देखा, कहानी अब कहीं ज़्यादा कसी हुई है।
    Devanagariहिन्दीhi
  • আজ সকালে তৃতীয় সংস্করণটি দেখলাম, গল্পটা এখন অনেক বেশি গোছানো।
    Bengaliবাংলাbn
  • இன்று காலை மூன்றாவது பதிப்பைப் பார்த்தேன், கதை இப்போது மிகவும் இறுக்கமாக உள்ளது.
    Tamilதமிழ்ta
  • เช้านี้ได้ดูเวอร์ชันที่สามแล้ว เรื่องราวกระชับขึ้นมาก
    Thaiไทยth
  • 今天早上看了第三版,整体叙事紧凑多了。
    Han中文zh
  • 今朝バージョン3を確認しました。ストーリーがずっと引き締まりました。
    Kana and kanji日本語ja
  • 오늘 아침에 세 번째 버전을 봤는데 이야기가 훨씬 탄탄해졌어요.
    Hangul한국어ko
  • Order K7QX2M שולם ב־€1 234,56 🎉 Ελέγχθηκε 09:41
    Mixed and bidiMixed and bidien

Browse every component

Storybook has each part with its states, a locale switcher with right-to-left and CJK samples, and an accessibility check on every story.