From 2a509b1ec37f2d92bba58305cf2f17b06f87ef0e Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sun, 21 Jun 2026 19:17:53 -0600 Subject: [PATCH] Use classes instead of theme colors for tagging. --- src/components/Notes.astro | 20 ++++++++++---------- src/styles/global.css | 30 ++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 10 deletions(-) diff --git a/src/components/Notes.astro b/src/components/Notes.astro index 2e40c70..f5a5792 100644 --- a/src/components/Notes.astro +++ b/src/components/Notes.astro @@ -8,21 +8,21 @@ import { titleCase } from '../utils/strings'; import { type CollectionEntry } from 'astro:content'; const scriptureStyles: {[index: string]:string} = { - gospels: 'bg-gospels', - pentateuch: 'bg-pentateuch', - historic: 'bg-historic', - acts: 'bg-acts', - wisdom: 'bg-wisdom', - pauline: 'bg-pauline', - prophets: 'bg-prophets', - revelation: 'bg-revelation', - devotional: 'bg-devotional', + gospels: 'gospels', + pentateuch: 'pentateuch', + historic: 'historic', + acts: 'acts', + wisdom: 'wisdom', + pauline: 'pauline', + prophets: 'prophets', + revelation: 'revelation', + devotional: 'devotional', }; const getScriptureStyle = (cat: any): string => { if (cat in scriptureStyles) { return scriptureStyles[cat]; } - return 'bg-gospels'; + return 'gospels'; }; const base = import.meta.env.BASE_URL; diff --git a/src/styles/global.css b/src/styles/global.css index 060d04e..e112d30 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -20,6 +20,36 @@ --color-devotional: #b8c9d6; } +#notes-list ul.tags { + li.gospels { + @apply bg-gospels; + } + li.pentateuch { + @apply bg-pentateuch; + } + li.historic { + @apply bg-historic; + } + li.acts { + @apply bg-acts; + } + li.wisdom { + @apply bg-wisdom; + } + li.pauline { + @apply bg-pauline; + } + li.prophets { + @apply bg-prophets; + } + li.revelation { + @apply bg-revelation; + } + li.devotional { + @apply bg-devotional text-gray-800 text-shadow-none; + } +} + header { @apply bg-sunday-theme p-4 text-white flex items-center justify-center text-3xl lg:text-4xl; }