mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 06:56:20 +00:00
8097344561
Runtime-loaded visual re-skin system (no client rebuild, real themes never hit git). A theme = a folder on the server (theme.base.url) with a manifest + CSS "pieces"; each piece is toggled from Settings > Themes (checkboxes). A broken/404 piece auto-falls back to the default (per piece). Hotel-wide default via ui-config theme.default (+ theme.default.pieces), per-user override in localStorage (same pattern as the catalog style toggle). - api/theme/ThemeManager: fetch index/manifest + inject/remove <link> + fallback - hooks/theme/useThemes: state + persist + default-from-config + live apply - components/theme/ThemeApplier: applies on boot (mounted in MainView) - UserSettings: General/Themes tabs with theme selector + per-piece checkboxes - custom-themes/: reference template (demo theme "Neon Viola" + README) - .gitignore: public/custom-themes/ (real themes are never committed)
13 lines
383 B
CSS
13 lines
383 B
CSS
/* Tema Neon Viola — pezzo "chat".
|
|
Accento viola sulla bubble di default (bubble-0) e sull'input chat.
|
|
(Le bubble custom hanno la loro grafica; qui tocchiamo solo l'accento base.) */
|
|
|
|
.chat-bubble.bubble-0 {
|
|
filter: drop-shadow(0 0 5px rgba(168, 85, 247, .8));
|
|
}
|
|
|
|
.nitro-chat-input-container,
|
|
.chat-input-container {
|
|
box-shadow: inset 0 0 0 1px #7c3aed !important;
|
|
}
|