Changeset c9c70cc in Klonkt for src/services/ThemeService.js


Ignore:
Timestamp:
06/24/2026 05:07:53 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
34076d7
Parents:
19fbe03
Message:

Palettes overhaul: neutral 'Klonkt' default + 7 real-colour themes

  • Default is now the clean neutral (white/black + gold accent), renamed 'Klonkt' (the old navy Klonkt is gone; former 'Paper' merged into it).
  • 7 real-colour palettes (tinted like forest/lilac, not navy-with-accent): Forest, Ocean (blue), Teal, Lilac, Sunset, Candy (red), Amber.
  • Dropped Sand/cream + Paper from the picker. style.css?v=46.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/services/ThemeService.js

    r19fbe03 rc9c70cc  
    22 * ThemeService — Palette and theme management
    33 *
    4  * 8 Built-in Palettes (curated, no near-duplicates):
    5  * - Klonkt (default, navy + gold brand)
    6  * - Paper (minimalist white)
    7  * - Forest (greens)
    8  * - Sunset (pink)
    9  * - Sand (warm paper, clay accent — key 'cream')
    10  * - Lilac (purple)
    11  * - Ocean (klonkt navy + blue accent)
    12  * - Candy (klonkt navy + candy-red accent)
     4 * 8 Built-in Palettes — 1 neutral default + 7 real colours:
     5 * - Klonkt (DEFAULT, clean white/black neutral + gold accent; was 'Paper')
     6 * - Forest (green) · Ocean (blue) · Teal · Lilac (purple)
     7 * - Sunset (pink) · Candy (red) · Amber (warm)
     8 * Colour palettes are tinted (like forest/lilac), not navy-with-accent.
    139 *
    1410 * Dark/Light mode toggle stored per user
     
    1915  // is ACTUALLY applied); the accent dot is a representative color per palette.
    2016  static PALETTES = {
    21     // Brand default — matches klonkt.com (dark blue + gold).
     17    // DEFAULT — clean neutral (formerly 'Paper'), renamed to the brand 'Klonkt'.
     18    // White → near-black, with the brand gold as accent. The old navy 'Klonkt' is gone.
    2219    klonkt: {
    2320      name: 'Klonkt',
    24       light: { paper: '#f3f1ea', ink: '#11141c', accent: '#c98a2a' },
    25       dark: { paper: '#0b0d12', ink: '#f3f1ea', accent: '#e8b04b' }
    26     },
    27     paper: {
    28       name: 'Paper',
    29       light: { paper: '#ffffff', ink: '#09090b', accent: '#000000' },
    30       dark: { paper: '#0a0a0a', ink: '#fafafa', accent: '#ffffff' }
    31     },
     21      light: { paper: '#ffffff', ink: '#09090b', accent: '#c98a2a' },
     22      dark: { paper: '#0a0a0a', ink: '#fafafa', accent: '#e8b04b' }
     23    },
     24    // 7 real-colour palettes (tinted paper, like forest/lilac — NOT navy-with-accent).
    3225    forest: {
    3326      name: 'Forest',
     
    3528      dark: { paper: '#0d1f12', ink: '#dcf2d0', accent: '#6fae3f' }
    3629    },
     30    ocean: {
     31      name: 'Ocean',
     32      light: { paper: '#eef4fb', ink: '#0f2942', accent: '#1d6fe0' },
     33      dark: { paper: '#081726', ink: '#d6e8fb', accent: '#5ba0f5' }
     34    },
     35    teal: {
     36      name: 'Teal',
     37      light: { paper: '#ecf7f5', ink: '#0c2e2a', accent: '#0d9488' },
     38      dark: { paper: '#06201d', ink: '#d4f2ec', accent: '#2dd4bf' }
     39    },
     40    lilac: {
     41      name: 'Lilac',
     42      light: { paper: '#faf4fb', ink: '#2a1830', accent: '#a855f7' },
     43      dark: { paper: '#170a1c', ink: '#f3e2f7', accent: '#c084fc' }
     44    },
    3745    sunset: {
    3846      name: 'Sunset',
     
    4048      dark: { paper: '#1f0a14', ink: '#fce7f3', accent: '#f06fa3' }
    4149    },
    42     // Warm paper — soft off-white + clay accent (deliberately NOT bright yellow).
    43     // key stays 'cream' (DB-safe).
    44     cream: {
    45       name: 'Sand',
    46       light: { paper: '#f7f3ec', ink: '#232019', accent: '#bf6a45' },
    47       dark: { paper: '#14120d', ink: '#efe9dd', accent: '#d6845f' }
    48     },
    49     // Ocean & Candy = the klonkt palette (navy + off-white) with a different accent.
    50     ocean: {
    51       name: 'Ocean',
    52       light: { paper: '#f3f1ea', ink: '#11141c', accent: '#1d6fe0' },
    53       dark: { paper: '#0b0d12', ink: '#f3f1ea', accent: '#4f9bff' }
    54     },
    5550    candy: {
    5651      name: 'Candy',
    57       light: { paper: '#f3f1ea', ink: '#11141c', accent: '#e11d48' },
    58       dark: { paper: '#0b0d12', ink: '#f3f1ea', accent: '#fb5c7d' }
    59     },
    60     lilac: {
    61       name: 'Lilac',
    62       light: { paper: '#faf4fb', ink: '#2a1830', accent: '#a855f7' },
    63       dark: { paper: '#170a1c', ink: '#f3e2f7', accent: '#c084fc' }
     52      light: { paper: '#fdf1f3', ink: '#3a1018', accent: '#e11d48' },
     53      dark: { paper: '#220810', ink: '#fde0e6', accent: '#fb6f8b' }
     54    },
     55    amber: {
     56      name: 'Amber',
     57      light: { paper: '#fdf6e9', ink: '#3a2a0c', accent: '#d97706' },
     58      dark: { paper: '#221a08', ink: '#fdeecb', accent: '#f0a93a' }
    6459    }
    6560  };
Note: See TracChangeset for help on using the changeset viewer.