mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
chore(client): default new users to Nostalgia and teal
Give users without stored appearance choices the Nostalgia style and teal accent while preserving saved selections and BookOrbit styling on standalone pages.
This commit is contained in:
@@ -114,7 +114,7 @@ export const GLOW_REACH_DEFAULT = 50;
|
||||
* mode, accent, radius and background, which keep their values when the style changes. */
|
||||
export const STYLE_IDS = ["bookorbit", "nostalgia"] as const;
|
||||
export type Style = (typeof STYLE_IDS)[number];
|
||||
export const DEFAULT_STYLE: Style = "bookorbit";
|
||||
export const DEFAULT_STYLE: Style = "nostalgia";
|
||||
|
||||
/** Neutral ground palettes. Only styles that declare a surface palette control read them. */
|
||||
export const SURFACE_PALETTE_IDS = [
|
||||
@@ -149,7 +149,7 @@ export interface ThemePreferences {
|
||||
brightness: number;
|
||||
/** Optional so a client that sends it stays valid against a server that predates it. */
|
||||
surfaceOpacity?: number;
|
||||
/** Optional for the same reason; absent means the BookOrbit style. */
|
||||
/** Optional for the same reason; absent keeps the client's local or default style. */
|
||||
style?: Style;
|
||||
/** Optional for the same reason; absent means steel. */
|
||||
surfacePalette?: SurfacePalette;
|
||||
|
||||
Reference in New Issue
Block a user