The blueprint theme, from neiam-htmx b2a84a7

e4557c2 · gmorell · 2026-12-03 05:27

16 files +44 -3
Message
{commit_body(@commit)}

Files changed

modified android/app/src/main/java/org/neiam/recourse/app/ui/theme/AppTheme.kt
+5 −0
@@ -202,6 +202,11 @@ val ALL_THEMES: List<AppTheme> = listOf(
202 202 hexTheme("Sky", "sky", 0x082F49, 0x38BDF8, 0xFEF3C7),
203 203 hexTheme("Clays", "clays", 0x451A03, 0xD97706, 0xFEF3C7),
204 204 hexTheme("Stones", "stones", 0x292524, 0x6B7280, 0xFEF3C7),
205 + // Blueprint is the web's daisyUI theme of the same name, token for token
206 + // like light and dark: bg/cardBg/content/primary are base-100, base-200,
207 + // base-content and primary, and dim is content at 60% over bg (as
208 + // movie_monster's). Selectable only; the default stays System.
209 + oklchTheme("Blueprint", "blueprint", 0.28f, 0.120f, 252f, 0.24f, 0.110f, 252f, 0.91f, 0.050f, 235f, 0.68f, 0.180f, 248f, 0.66f, 0.068f, 240f),
205 210 // daisyUI's own lofi and black, which the web also offers.
206 211 hexTheme("Lofi", "lofi", 0xFFFFFF, 0x0D0D0D, 0x1A1A1A, base200 = 0xF2F2F2, content = 0x000000, isLight = true),
207 212 hexTheme("Black", "black", 0x000000, 0x373737, 0x373737, base200 = 0x141414, content = 0xD6D6D6),
modified assets/tailwind.config.js
+38 −2
@@ -45,10 +45,46 @@ module.exports = {
45 45 "neutral": "#57534e", "base-100": "#292524",
46 46 "info": "#7dd3fc", "success": "#a7f3d0", "warning": "#fef08a", "error": "#fca5a5",
47 47 },
48 + // "blueprint": navy and cyan -- the same definition gitgud, waxx and
49 + // movie_monster carry (party-slut has the hex form of it, which is
50 + // this clipped to sRGB). The accent is the yellow the neiam themes
51 + // share, so callouts stand out against the deep paper-blue the way
52 + // annotations do on a real blueprint. Written in oklch, with every
53 + // -content colour spelled out, so it renders the same as the v5
54 + // definition rather than daisyUI's generated contents.
55 + blueprint: {
56 + "color-scheme": "dark",
57 + "primary": "oklch(68% 0.18 248)",
58 + "primary-content": "oklch(15% 0.05 248)",
59 + "secondary": "oklch(82% 0.10 240)",
60 + "secondary-content": "oklch(15% 0.05 240)",
61 + "accent": "oklch(96% 0.058 96)",
62 + "accent-content": "oklch(10% 0.010 96)",
63 + "neutral": "oklch(40% 0.16 253)",
64 + "neutral-content": "oklch(91% 0.05 235)",
65 + "base-100": "oklch(28% 0.12 252)",
66 + "base-200": "oklch(24% 0.11 252)",
67 + "base-300": "oklch(20% 0.10 252)",
68 + "base-content": "oklch(91% 0.05 235)",
69 + "info": "oklch(83% 0.101 230)",
70 + "info-content": "oklch(15% 0.05 230)",
71 + "success": "oklch(90% 0.089 164)",
72 + "success-content": "oklch(15% 0.05 164)",
73 + "warning": "oklch(95% 0.124 102)",
74 + "warning-content": "oklch(15% 0.05 102)",
75 + "error": "oklch(81% 0.103 20)",
76 + "error-content": "oklch(15% 0.05 20)",
77 + // v5's --radius-box / -field / -selector and --border. Its
78 + // --size-*, --depth and --noise have no v4 counterpart.
79 + "--rounded-box": "0.5rem",
80 + "--rounded-btn": "0.25rem",
81 + "--rounded-badge": "1rem",
82 + "--border-btn": "1px",
83 + },
48 84 // The light/dark pair, shared with bigtrippr and dms so the family
49 85 // looks the same across apps. These two are what "system" resolves
50 − // to, and the only ones declaring a `color-scheme`, so the browser
51 − // renders form controls and scrollbars to match. Kept after the
86 + // to, and (with blueprint) the ones declaring a `color-scheme`, so the
87 + // browser renders form controls and scrollbars to match. Kept after the
52 88 // custom themes so the array's first entry -- the one daisyUI puts on
53 89 // :root -- is unchanged.
54 90 light: {
modified templates/_theme_toggle.html
+1 −1
@@ -5,7 +5,7 @@
5 5 </div>
6 6 <ul tabindex="0" class="dropdown-content menu bg-base-200 border border-base-300 rounded-box z-10 mt-1 w-44 p-1 shadow-lg">
7 7 <li><button type="button" onclick="window.appSetTheme('system')"><i class="fas fa-display fa-fw"></i> System</button></li>
8 − {% for theme in ["light", "dark", "her", "afterdark", "forest", "sky", "clays", "stones", "lofi", "black"] %}
8 + {% for theme in ["light", "dark", "her", "afterdark", "forest", "sky", "clays", "stones", "blueprint", "lofi", "black"] %}
9 9 <li>
10 10 <button type="button" onclick="window.appSetTheme('{{ theme }}')" class="flex items-center justify-between">
11 11 <span class="capitalize">{{ theme }}</span>

Parents: 59d9458