MCPcopy Create free account
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 ⚖ MIT 17 documented · 1% updated 21d agov1.3.0 · 2026-08-07★ 6134 open issues

Browse by type

Functions 1,576 Types & classes 291
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

Compile your design system into an Agent Plugin. Extract an identity from any reference, emit SKILL.md + tokens.css, lint what bypasses your tokens.

A coding agent writes on-brand UI when it can read your tokens as an API and your composition rules as instructions. Tinte compiles both from one identity config into a single installable artifact.

Quick Start

bunx tinte from --emit-script       # print the extraction script for a live page
bunx tinte from --normalize <json>  # turn captured styles into a draft identity
bunx tinte build --plugin           # compile the identity into an Agent Plugin
bunx tinte lint <paths>             # exit 1 on any color that bypasses the tokens

Extraction, compilation, and enforcement all read the same tinte.config.json. Nothing is restated by hand.

tinte build --plugin emits:

acme-plugin/
├── plugin.json
└── skills/
    └── acme-design/
        ├── SKILL.md
        └── references/
            └── tokens.css

SKILL.md carries the type scale, the voice, and the composition law. tokens.css is the token file the agent reads as an API.

This site serves its own design context

tinte.dev is styled by the plugin Tinte compiles from its own config, and both artifacts are fetchable at their real paths:

An agent can install this design system the same way it would install yours.

Theme builder

The classic workbench is still here: start from a reference, convert to any provider, install it.

bunx tinte <theme-slug>             # install into VS Code, Cursor, or Zed
npx shadcn@latest add https://tinte.dev/api/preset/one-hunter

13 semantic OKLCH tokens compile to shadcn/ui presets, VS Code themes, terminal configs (Alacritty, Kitty, Warp, Windows Terminal), and 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 Compile design systems into Agent Plugins 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 - Agent Plugin compiler (from, build, lint) and theme installer

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

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

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

Ask about this repo answers extend the page