mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-02 10:07:29 +09:00
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>
47 lines
1.4 KiB
JSON
47 lines
1.4 KiB
JSON
{
|
|
"schema_version": 1,
|
|
"slug": "phosphor",
|
|
"name": "Phosphor",
|
|
"author": "serverkit",
|
|
"version": "1.0.0",
|
|
"description": "A near-black OLED theme with glowing terminal-green text.",
|
|
"base": "dark",
|
|
"builtin": true,
|
|
"tokens": {
|
|
"dark": {
|
|
"--bg-body": "#000000",
|
|
"--bg-sidebar": "#030503",
|
|
"--surface": "#0a0f0a",
|
|
"--surface-2": "#0f150f",
|
|
"--surface-3": "#142014",
|
|
"--surface-hover": "#111a11",
|
|
"--border": "#1a241a",
|
|
"--border-soft": "#101810",
|
|
"--border-strong": "#294029",
|
|
"--text": "#c8f7c8",
|
|
"--text-dim": "#7fcf7f",
|
|
"--text-faint": "#4f8f4f",
|
|
"--text-ghost": "#2f5f2f",
|
|
"--green": "#33ff66",
|
|
"--green-bg": "rgba(51,255,102,0.12)",
|
|
"--amber": "#ffcc33",
|
|
"--amber-bg": "rgba(255,204,51,0.12)",
|
|
"--red": "#ff5555",
|
|
"--red-bg": "rgba(255,85,85,0.12)",
|
|
"--cyan": "#33ffff",
|
|
"--cyan-bg": "rgba(51,255,255,0.12)",
|
|
"--violet": "#cc99ff",
|
|
"--violet-bg": "rgba(204,153,255,0.12)",
|
|
"--scrollbar-track": "#050805",
|
|
"--scrollbar-thumb": "#1a301a",
|
|
"--scrollbar-thumb-hover": "#294029",
|
|
"--bg-code": "#000000",
|
|
"--text-code": "#33ff66",
|
|
"--grid-color": "rgba(51,255,102,0.04)",
|
|
"--mono": "\"IBM Plex Mono\", ui-monospace, \"SF Mono\", Menlo, monospace"
|
|
}
|
|
},
|
|
"accent": "#33ff66",
|
|
"preview": ["#000000", "#0a0f0a", "#33ff66", "#c8f7c8"]
|
|
}
|