MCPcopy Index your code
hub / github.com/Railly/tinte

github.com/Railly/tinte @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,867 symbols 4,564 edges 632 files 17 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Tinte Logo Tinte Vercel OSS Program GitHub stars   License

Agent-native design system infrastructure. Generate, compile, install, and preview design systems from one source of truth.

Quick Start

Install a Tinte design system into any shadcn/ui project:

npx shadcn@latest add https://tinte.dev/api/preset/one-hunter

Install the Tinte skill for Claude Code, Cursor, or any coding agent:

npx skills add Railly/tinte

How It Works

Tinte maintains a theme graph of 13 semantic OKLCH color tokens that compiles to:

  • shadcn/ui presetsregistry:base + registry:font items, compatible with shadcn/cli v4
  • VS Code themes — Full editor themes with syntax highlighting
  • Terminal configs — Alacritty, Kitty, Warp, Windows Terminal
  • Design tools — GIMP, Slack, design system tokens
  • 19+ formats from the same source of truth

Preset API (shadcn v4)

Every public Tinte theme is installable as a shadcn registry:base item:

npx shadcn@latest add https://tinte.dev/api/preset/{slug}
npx shadcn@latest add https://tinte.dev/api/preset/{slug}/font?variable=sans

Get the full preset pack (base + fonts + install commands):

GET https://tinte.dev/api/preset/{slug}?type=pack

Browse themes:

GET https://tinte.dev/api/themes/public?search=minimal

Ray by Tinte

ray.tinte.dev — code screenshots + theme extraction.

  • 500+ syntax themes, 16 languages, PNG/SVG export
  • Free REST API (60 req/min, no auth)
  • Extract color themes from images: POST ray.tinte.dev/api/v1/extract-theme
  • Screenshot with any Tinte theme: POST ray.tinte.dev/api/v1/screenshot
curl -X POST https://ray.tinte.dev/api/v1/screenshot \
  -H "Content-Type: application/json" \
  -d '{"code": "const x = 42;", "language": "typescript", "theme": "one-hunter"}' \
  --output screenshot.png

Ecosystem

Product Role URL
Tinte Generate and compile design systems tinte.dev
Elements Install via shadcn registry tryelements.dev
Ray Preview and screenshot ray.tinte.dev

Tinte generates the system, Elements installs it, Ray shows it.

Packages

  • @tinte/core — Theme primitives, OKLCH color model, type definitions
  • @tinte/providers — 19+ format converters (shadcn, VS Code, terminals, design tools)
  • @tinte/cli — CLI for theme installation

Development

bun install      # Install dependencies
bun dev          # Start development server
bun build        # Production build

Links

License

MIT License - see LICENSE for details.

Extension points exported contracts — how you extend this code

ThemeProvider (Interface)
(no doc) [1 implementers]
packages/providers/src/providers/types.ts
CodexThemeBlock (Interface)
(no doc)
packages/core/src/types/codex.ts
TinteTheme (Interface)
(no doc)
packages/cli/src/types.ts
ThemeColors (Interface)
(no doc)
packages/remotion/src/types.ts
FigmaRGBA (Interface)
(no doc)
apps/figma/src/code.ts
ExportActionsProps (Interface)
(no doc)
apps/ray/src/components/export-actions.tsx
TinteTheme (Interface)
(no doc)
apps/web/tinte-cli.ts
DownloadVSCodeThemeOptions (Interface)
(no doc)
packages/providers/src/provider-utils/vscode-download.ts

Core symbols most depended-on inside this repo

cn
called by 401
apps/web/src/lib/utils.ts
cn
called by 293
apps/ray/src/lib/utils.ts
get
called by 39
packages/providers/src/providers/registry.ts
ensureAlpha
called by 34
packages/providers/src/providers/zed.ts
ensureAlpha
called by 34
packages/cli/src/lib/providers/zed.ts
useActiveTheme
called by 28
apps/web/src/stores/hooks/use-active-theme.ts
useThemeMode
called by 27
apps/web/src/stores/hooks/use-theme-mode.ts
adjustLuminance
called by 25
packages/providers/src/providers/zed.ts

Shape

Function 1,531
Interface 283
Method 45
Class 8

Languages

TypeScript100%

Modules by API surface

apps/web/src/components/ui/sidebar.tsx25 symbols
apps/ray/src/components/ui/sidebar.tsx25 symbols
packages/providers/src/providers/shadcn.ts24 symbols
apps/web/src/lib/theme/ice-theme.ts19 symbols
packages/providers/src/providers/registry.ts17 symbols
apps/web/src/components/home/prompt-input/prompt-input.tsx17 symbols
apps/web/src/components/ui/menubar.tsx16 symbols
apps/web/src/components/ui/combobox.tsx16 symbols
apps/ray/src/components/ui/menubar.tsx16 symbols
apps/ray/src/components/ui/combobox.tsx16 symbols
packages/providers/src/providers/poline-base.ts15 symbols
apps/web/src/components/ui/dropdown-menu.tsx15 symbols

For agents

$ claude mcp add tinte \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact