Add tweakcn custom theme import

Adds a browser-local custom tweakcn theme slot while preserving the existing built-in themes.

Includes:
- tweakcn share-link import, validation, persistence, and custom theme rendering
- Custom option in Appearance and Quick Settings
- responsive/config toolbar and chat tool-card polish from follow-up review
- security hardening for bounded fetches, CSS token validation, redirect handling, and fail-closed unreadable payloads

Verification:
- OPENCLAW_LOCAL_CHECK=0 pnpm check:changed
- GitHub CI clean on 6ff13a1b33
This commit is contained in:
Val Alexander
2026-04-24 20:36:45 -05:00
committed by GitHub
parent 835c4e053c
commit ead8be96fd
23 changed files with 2199 additions and 55 deletions

View File

@@ -188,13 +188,13 @@
}
/* Scrollbar - visible on light backgrounds */
:root[data-theme="light"]::-webkit-scrollbar-thumb,
:root[data-theme="light"] ::-webkit-scrollbar-thumb {
:root[data-theme-mode="light"]::-webkit-scrollbar-thumb,
:root[data-theme-mode="light"] ::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.15);
}
:root[data-theme="light"]::-webkit-scrollbar-thumb:hover,
:root[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
:root[data-theme-mode="light"]::-webkit-scrollbar-thumb:hover,
:root[data-theme-mode="light"] ::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.25);
}