Changeset dd7e2a2 in Klonkt for src/middleware/site.js


Ignore:
Timestamp:
06/22/2026 02:52:43 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
b20460e
Parents:
5eff581
Message:

feat(theme): default = Klonkt brand (dark navy + yellow, matches klonkt.com)

New 'klonkt' palette (navy #0b0d12 / off-white #f3f1ea) + accent Klonkt yellow
#e8b04b, set as default for new sites + all fallbacks (ThemeService,
admin-sites, site.js, render, auth, server theme_color). site.js palette list
was stale (8) -> now complete (13). style.css [data-palette=klonkt] + buster v31.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/middleware/site.js

    r5eff581 rdd7e2a2  
    103103 */
    104104export function loadTheme(req, res, next) {
    105   const PALETTES = ['sage','paper','ocean','forest','stone','midnight','sunset','cream'];
     105  const PALETTES = ['klonkt','sage','paper','ocean','forest','stone','midnight','sunset','cream','rose','slate','mint','lilac'];
    106106 
    107107  const user = req.session?.user;
     
    111111  const palette = (user && PALETTES.includes(user.palette) ? user.palette : null)
    112112                || (site && PALETTES.includes(site.palette) ? site.palette : null)
    113                 || 'sage';
     113                || 'klonkt';
    114114 
    115115  res.locals.palette = palette;
Note: See TracChangeset for help on using the changeset viewer.