Files
Juan DenisandClaude Opus 4.8 c20a9f14f2 feat(themes): backend model, API, and registry pipeline (plan 60 Phase 2-3)
Themes are data, not code — so the backend is a simple validated-JSON store,
no zips/checksums/permissions.

- Theme model + migration 078_themes
- theme_tokens.py: server-side mirror of the token whitelist + validators
  (the gate: a malicious/malformed theme never reaches the DB)
- theme_service: bundled-seed loading, import/list/delete, panel default,
  pre-auth public/active
- /api/v1/themes: /installed, /import (admin), DELETE (admin), /default
  get+set (admin), unauthenticated /public/active for login/setup, plus
  /registry + /registry/<slug>/install
- theme_registry_service: offline-tolerant registry fetch (TTL + last-good +
  bundled fallback), mirrors the extension registry pattern
- bundled seed themes synced to app/data/themes + themes_index.json
- 18 proving tests (server-side validation sanitizes url()/;/} smuggling,
  admin gate, panel-default → public/active, offline fallback, install flow)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 00:24:00 -04:00

46 lines
1.3 KiB
JSON

{
"schema_version": 1,
"slug": "paper",
"name": "Paper",
"author": "serverkit",
"version": "1.0.0",
"description": "A clean, bright light theme with crisp white surfaces and a blue accent.",
"base": "light",
"builtin": true,
"tokens": {
"light": {
"--bg-body": "#fbfbfd",
"--bg-sidebar": "#f4f5f8",
"--surface": "#ffffff",
"--surface-2": "#f7f8fa",
"--surface-3": "#eef0f4",
"--surface-hover": "#f0f2f6",
"--border": "#e4e7ee",
"--border-soft": "#eef0f4",
"--border-strong": "#cfd4de",
"--text": "#1a1d24",
"--text-dim": "#545b68",
"--text-faint": "#808896",
"--text-ghost": "#aab0bd",
"--green": "#16a34a",
"--green-bg": "rgba(22,163,74,0.10)",
"--amber": "#d97706",
"--amber-bg": "rgba(217,119,6,0.10)",
"--red": "#dc2626",
"--red-bg": "rgba(220,38,38,0.10)",
"--cyan": "#0891b2",
"--cyan-bg": "rgba(8,145,178,0.10)",
"--violet": "#7c3aed",
"--violet-bg": "rgba(124,58,237,0.10)",
"--scrollbar-track": "#f4f5f8",
"--scrollbar-thumb": "#cfd4de",
"--scrollbar-thumb-hover": "#b3bac6",
"--bg-code": "#f4f5f8",
"--text-code": "#24303f",
"--grid-color": "rgba(37,99,235,0.05)"
}
},
"accent": "#2563eb",
"preview": ["#fbfbfd", "#ffffff", "#2563eb", "#1a1d24"]
}