From 630aa275b5a403cad9b5e5211d69dd746cec8d0d Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sun, 21 Jun 2026 18:02:48 -0600 Subject: [PATCH 01/17] Partial mobile pagination and footer fixes. --- src/components/Footer.astro | 3 ++- src/styles/global.css | 15 +++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index b07b725..a236df0 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -3,7 +3,8 @@ import "../styles/global.css"; --- \ No newline at end of file diff --git a/src/styles/global.css b/src/styles/global.css index 0506b53..060d04e 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -25,17 +25,20 @@ header { } footer { - @apply justify-center flex mt-4 p-8 text-gray-500 text-sm; + @apply bg-sunday-theme mt-4 p-8 text-gray-500 text-sm; a { border-bottom: 5px; border-style: solid; @apply border-cyan-100 transition duration-500 ease-in-out hover:border-cyan-900 hover:text-gray-700; } - ul > li { - @apply inline pr-2; + ul { + @apply grid grid-cols-1 mx-auto max-w-4xl sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 gap-4 text-gray-400; } - ul > li:last-child { - @apply pr-0; + ul > li { + @apply flex flex-col pr-2; + } + ul > li > a { + @apply inline border-gray-600 hover:border-blue-600 hover:text-gray-200; } } @@ -189,7 +192,7 @@ nav#pagination { @apply inline; } li a { - @apply bg-gray-100 font-bold p-4 rounded-md text-cyan-900 text-sm hover:bg-gray-200 hover:text-black; + @apply bg-gray-100 font-bold mb-2 p-4 rounded-md text-cyan-900 text-sm hover:bg-gray-200 hover:text-black inline; } li a.disabled { @apply text-gray-400 bg-gray-50 hover:bg-gray-50; From cbe380b0f9feed0829a2be02b4bbfccd374228f7 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sun, 21 Jun 2026 18:28:22 -0600 Subject: [PATCH 02/17] Dark mode WIP. --- src/styles/global.css | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/styles/global.css b/src/styles/global.css index 060d04e..7d9d0bf 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -20,6 +20,10 @@ --color-devotional: #b8c9d6; } +body { + @apply dark:bg-gray-900; +} + header { @apply bg-sunday-theme p-4 text-white flex items-center justify-center text-3xl lg:text-4xl; } @@ -52,12 +56,14 @@ footer { #notes-list > ul > li { @apply flex flex-col rounded-xl bg-gray-100 p-2 hover:bg-gray-200; + @apply dark:text-gray-300 dark:bg-gray-800 hover:bg-gray-700; } #notes-list ul > li h2 a { border-bottom: 5px; border-style: solid; @apply border-cyan-300 transition duration-500 ease-in-out hover:border-cyan-900 hover:text-cyan-900; + @apply dark:border-cyan-600 hover:border-cyan-500 hover:text-cyan-500; } #notes-list ul > li > hgroup { @@ -89,6 +95,7 @@ footer { article#notes-page { @apply pt-4 text-xl; + @apply dark:text-gray-200; hgroup h1 { @apply font-bold mt-8 mb-8 text-3xl lg:text-6xl; } @@ -97,33 +104,41 @@ article#notes-page { } .header { @apply bg-gray-100 rounded-md p-6 bg-linear-to-b from-gray-100 to-gray-200; + @apply dark:bg-gray-800 dark:from-gray-700 dark:to-gray-800; } #content { a { border-bottom: 5px; border-style: solid; @apply border-cyan-300 transition duration-500 ease-in-out hover:border-cyan-900 hover:text-cyan-600; + @apply dark:border-blue-500 dark:hover:border-blue-300 dark:hover:text-blue-300; } a.scripture { @apply border-green-400 hover:border-green-700 hover:text-green-800; + @apply dark:border-emerald-600 dark:hover:border-emerald-400 dark:hover:text-emerald-400; } a.scripture.cite { @apply font-bold bg-purple-50 border-purple-100 text-gray-800 hover:text-black; + @apply dark:bg-purple-950 dark:border-purple-900 dark:text-gray-300 dark:hover:text-gray-300; } a.scripture.cite[href]:not([href=""]) { @apply border-purple-400 hover:border-purple-900 hover:text-purple-900; + @apply dark:border-purple-950 dark:hover:border-purple-900 dark:hover:text-gray-300; } a.scripture.quote { @apply font-bold text-rose-900; } a.scripture.quote:not([href]) { @apply border-none text-rose-900 hover:text-rose-900; + @apply dark:text-rose-400 dark:hover:text-rose-400; } a.scripture.quote[href]:not([href=""]) { @apply border-rose-900 hover:text-rose-800 hover:border-rose-800; + @apply dark:border-rose-400 dark:hover:text-rose-500 dark:hover:border-rose-500; } a.scripture.quote, a.scripture.quote.cite { @apply border-rose-900 text-rose-900; + @apply dark:border-rose-400 dark:text-rose-400; } h1, h2, h3, h4, h5, h6 { @apply font-bold mb-6 mt-6; @@ -163,6 +178,7 @@ article#notes-page { } section#meta { @apply text-gray-600 mb-2 text-lg; + @apply dark:text-gray-300; time { @apply inline; } @@ -193,19 +209,23 @@ nav#pagination { } li a { @apply bg-gray-100 font-bold mb-2 p-4 rounded-md text-cyan-900 text-sm hover:bg-gray-200 hover:text-black inline; + @apply dark:bg-gray-700 dark:text-blue-300 dark:hover:text-gray-300 dark:hover:bg-gray-600; } li a.disabled { @apply text-gray-400 bg-gray-50 hover:bg-gray-50; + @apply dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-800; } } article blockquote { - @apply border-l-4 border-l-green-200 text-gray-600 ml-6 pl-4; + @apply border-l-4 border-l-green-200 text-gray-600 ml-2 md:ml-6 lg:ml-6 xl:ml-6 pl-4; + @apply dark:border-l-emerald-600 dark:text-gray-400; } article blockquote.scripture { /*@apply italic;*/ @apply bg-gray-50 pt-1 pb-1 pl-4 pr-2; + @apply dark:bg-gray-700; } article blockquote.cite { @@ -214,4 +234,5 @@ article blockquote.cite { article#notes-page #content blockquote.scripture > p > a { @apply border-b-green-200 text-lg text-gray-400 not-italic transition duration-500 ease-in-out hover:border-b-green-800 hover:text-gray-800; + @apply dark:border-b-emerald-600 dark:hover:text-emerald-300 dark:hover:border-b-emerald-500; } From b26b25d2941903c4f14e8516db370a5430c9b4c8 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sun, 21 Jun 2026 19:09:17 -0600 Subject: [PATCH 03/17] Fixed light mode default broken by dark mode addition. --- src/styles/global.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/global.css b/src/styles/global.css index 7d9d0bf..6ab4a66 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -56,7 +56,7 @@ footer { #notes-list > ul > li { @apply flex flex-col rounded-xl bg-gray-100 p-2 hover:bg-gray-200; - @apply dark:text-gray-300 dark:bg-gray-800 hover:bg-gray-700; + @apply dark:text-gray-300 dark:bg-gray-800 dark:hover:bg-gray-700; } #notes-list ul > li h2 a { From 2a509b1ec37f2d92bba58305cf2f17b06f87ef0e Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sun, 21 Jun 2026 19:17:53 -0600 Subject: [PATCH 04/17] 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; } From 53a10ca25e1bf861758e7ff555f0372c8184118f Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sun, 21 Jun 2026 18:28:22 -0600 Subject: [PATCH 05/17] Dark mode WIP. --- src/styles/global.css | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/styles/global.css b/src/styles/global.css index e112d30..fd9bb70 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -48,6 +48,9 @@ li.devotional { @apply bg-devotional text-gray-800 text-shadow-none; } + +body { + @apply dark:bg-gray-900; } header { @@ -82,12 +85,14 @@ footer { #notes-list > ul > li { @apply flex flex-col rounded-xl bg-gray-100 p-2 hover:bg-gray-200; + @apply dark:text-gray-300 dark:bg-gray-800 hover:bg-gray-700; } #notes-list ul > li h2 a { border-bottom: 5px; border-style: solid; @apply border-cyan-300 transition duration-500 ease-in-out hover:border-cyan-900 hover:text-cyan-900; + @apply dark:border-cyan-600 hover:border-cyan-500 hover:text-cyan-500; } #notes-list ul > li > hgroup { @@ -119,6 +124,7 @@ footer { article#notes-page { @apply pt-4 text-xl; + @apply dark:text-gray-200; hgroup h1 { @apply font-bold mt-8 mb-8 text-3xl lg:text-6xl; } @@ -127,33 +133,41 @@ article#notes-page { } .header { @apply bg-gray-100 rounded-md p-6 bg-linear-to-b from-gray-100 to-gray-200; + @apply dark:bg-gray-800 dark:from-gray-700 dark:to-gray-800; } #content { a { border-bottom: 5px; border-style: solid; @apply border-cyan-300 transition duration-500 ease-in-out hover:border-cyan-900 hover:text-cyan-600; + @apply dark:border-blue-500 dark:hover:border-blue-300 dark:hover:text-blue-300; } a.scripture { @apply border-green-400 hover:border-green-700 hover:text-green-800; + @apply dark:border-emerald-600 dark:hover:border-emerald-400 dark:hover:text-emerald-400; } a.scripture.cite { @apply font-bold bg-purple-50 border-purple-100 text-gray-800 hover:text-black; + @apply dark:bg-purple-950 dark:border-purple-900 dark:text-gray-300 dark:hover:text-gray-300; } a.scripture.cite[href]:not([href=""]) { @apply border-purple-400 hover:border-purple-900 hover:text-purple-900; + @apply dark:border-purple-950 dark:hover:border-purple-900 dark:hover:text-gray-300; } a.scripture.quote { @apply font-bold text-rose-900; } a.scripture.quote:not([href]) { @apply border-none text-rose-900 hover:text-rose-900; + @apply dark:text-rose-400 dark:hover:text-rose-400; } a.scripture.quote[href]:not([href=""]) { @apply border-rose-900 hover:text-rose-800 hover:border-rose-800; + @apply dark:border-rose-400 dark:hover:text-rose-500 dark:hover:border-rose-500; } a.scripture.quote, a.scripture.quote.cite { @apply border-rose-900 text-rose-900; + @apply dark:border-rose-400 dark:text-rose-400; } h1, h2, h3, h4, h5, h6 { @apply font-bold mb-6 mt-6; @@ -193,6 +207,7 @@ article#notes-page { } section#meta { @apply text-gray-600 mb-2 text-lg; + @apply dark:text-gray-300; time { @apply inline; } @@ -223,19 +238,23 @@ nav#pagination { } li a { @apply bg-gray-100 font-bold mb-2 p-4 rounded-md text-cyan-900 text-sm hover:bg-gray-200 hover:text-black inline; + @apply dark:bg-gray-700 dark:text-blue-300 dark:hover:text-gray-300 dark:hover:bg-gray-600; } li a.disabled { @apply text-gray-400 bg-gray-50 hover:bg-gray-50; + @apply dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-800; } } article blockquote { - @apply border-l-4 border-l-green-200 text-gray-600 ml-6 pl-4; + @apply border-l-4 border-l-green-200 text-gray-600 ml-2 md:ml-6 lg:ml-6 xl:ml-6 pl-4; + @apply dark:border-l-emerald-600 dark:text-gray-400; } article blockquote.scripture { /*@apply italic;*/ @apply bg-gray-50 pt-1 pb-1 pl-4 pr-2; + @apply dark:bg-gray-700; } article blockquote.cite { @@ -244,4 +263,5 @@ article blockquote.cite { article#notes-page #content blockquote.scripture > p > a { @apply border-b-green-200 text-lg text-gray-400 not-italic transition duration-500 ease-in-out hover:border-b-green-800 hover:text-gray-800; + @apply dark:border-b-emerald-600 dark:hover:text-emerald-300 dark:hover:border-b-emerald-500; } From ac5bb9693ca03d09d9affbfbca6e4bdc79e60a06 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sun, 21 Jun 2026 19:09:17 -0600 Subject: [PATCH 06/17] Fixed light mode default broken by dark mode addition. --- src/styles/global.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/global.css b/src/styles/global.css index fd9bb70..967c6dc 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -85,7 +85,7 @@ footer { #notes-list > ul > li { @apply flex flex-col rounded-xl bg-gray-100 p-2 hover:bg-gray-200; - @apply dark:text-gray-300 dark:bg-gray-800 hover:bg-gray-700; + @apply dark:text-gray-300 dark:bg-gray-800 dark:hover:bg-gray-700; } #notes-list ul > li h2 a { From 89c4e8b82152cf54e19ea527cd00f0b86aab96a6 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sun, 21 Jun 2026 19:19:29 -0600 Subject: [PATCH 07/17] Deleted closing } --- src/styles/global.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/styles/global.css b/src/styles/global.css index 967c6dc..459b446 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -48,6 +48,7 @@ li.devotional { @apply bg-devotional text-gray-800 text-shadow-none; } +} body { @apply dark:bg-gray-900; From 6cbeaaaebb2e3dbc76e908d7462be2cbb53e89d2 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Sun, 21 Jun 2026 19:23:08 -0600 Subject: [PATCH 08/17] Fixed dark mode tag for devotionals. --- src/styles/global.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/styles/global.css b/src/styles/global.css index 459b446..e1ea8e0 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -18,6 +18,7 @@ --color-revelation: #7c0808; --color-devotional: #b8c9d6; + --color-devotional-dark: #6b757d; } #notes-list ul.tags { @@ -47,6 +48,7 @@ } li.devotional { @apply bg-devotional text-gray-800 text-shadow-none; + @apply dark:bg-devotional-dark dark:text-white dark:text-shadow-md dark:text-shadow-gray-800; } } From 15cb3a35c412753954e89f70104e29eb32faa1da Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 22 Jun 2026 15:03:17 -0600 Subject: [PATCH 09/17] Added SVG icon for dark/light mode. --- src/assets/circle-half.svg | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/assets/circle-half.svg diff --git a/src/assets/circle-half.svg b/src/assets/circle-half.svg new file mode 100644 index 0000000..edd4fd8 --- /dev/null +++ b/src/assets/circle-half.svg @@ -0,0 +1,3 @@ + + + From 41c1a901adf3fff45849f2c13c0cba330d4e8801 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 22 Jun 2026 15:03:42 -0600 Subject: [PATCH 10/17] Revised footer. Again. --- src/components/Footer.astro | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index a236df0..7dc055b 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,10 +1,12 @@ --- import "../styles/global.css"; +import Icon from '../assets/circle-half.svg'; --- \ No newline at end of file From 00e5d779ae65b8ff0bec84bc2affc18d5515868f Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 22 Jun 2026 15:03:55 -0600 Subject: [PATCH 11/17] Added script for handling dark/light mode transition. --- src/layouts/Layout.astro | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 6d84c4e..293529b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -18,6 +18,28 @@ const base = import.meta.env.BASE_URL; {title} +
From ddc614c12b409b90d26afdaaa82a44498ccdc497 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 22 Jun 2026 15:04:11 -0600 Subject: [PATCH 12/17] Updated footer for dark/light mode. --- src/styles/global.css | 49 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/src/styles/global.css b/src/styles/global.css index 6bd8bab..0e9f3b4 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -2,6 +2,8 @@ @source "../layouts/**/*.astro"; @source "../pages/**/*.astro"; +@custom-variant dark (&:where(.dark, .dark *)); + @theme { --color-sunday-theme: #28303c; @@ -65,6 +67,51 @@ header { } footer { + @apply bg-sunday-theme font-mono mt-4 p-8 text-gray-500 text-sm; + @apply dark:bg-neutral-950; + + ul li { + @apply block mb-4; + } + + ul li a { + @apply border-b-2 border-gray-500 hover:text-gray-300 hover:border-gray-300; + } + + button { + @apply border-gray-500 rounded-md p-4 font-mono hover:bg-gray-700 hover:border-gray-400 hover:text-gray-400; + border-style: solid; + border-width: 1px; + } + + button[data-toggle-theme] svg { + @apply text-amber-500 inline mr-4 transition-transform duration-500; + transform: rotate(90deg); + filter: drop-shadow(0px 0px 4px var(--color-amber-500)); + } + + button[data-toggle-theme]:first-child:after { + content: "light"; + @apply align-middle; + } +} + +.dark footer { + button { + @apply border-gray-700 hover:bg-gray-900; + } + + button[data-toggle-theme]:first-child:after { + content: "dark"; + } + button[data-toggle-theme] svg { + @apply text-neutral-300; + transform: rotate(270deg); + filter: drop-shadow(0px 0px 4px var(--color-neutral-300)); + } +} + +/*footer { @apply bg-sunday-theme mt-4 p-8 text-gray-500 text-sm; a { border-bottom: 5px; @@ -80,7 +127,7 @@ footer { ul > li > a { @apply inline border-gray-600 hover:border-blue-600 hover:text-gray-200; } -} +}*/ #notes-list { @apply mx-auto lg:max-w-7xl xl:max-w-7xl 2xl:max-w-7xl; From b3b87d34a1c0149f80b9ea016ccbd51985deaa40 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 22 Jun 2026 15:09:48 -0600 Subject: [PATCH 13/17] =?UTF-8?q?Moved=20section=20(=C2=A7).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Footer.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 7dc055b..7df8c43 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -6,7 +6,7 @@ import Icon from '../assets/circle-half.svg'; \ No newline at end of file From 60212fa9c74a775c5ba42b18b72b2dfed380357e Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 22 Jun 2026 15:44:01 -0600 Subject: [PATCH 14/17] Remove old footer styling. --- src/styles/global.css | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/styles/global.css b/src/styles/global.css index 0e9f3b4..77fe2d6 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -111,24 +111,6 @@ footer { } } -/*footer { - @apply bg-sunday-theme mt-4 p-8 text-gray-500 text-sm; - a { - border-bottom: 5px; - border-style: solid; - @apply border-cyan-100 transition duration-500 ease-in-out hover:border-cyan-900 hover:text-gray-700; - } - ul { - @apply grid grid-cols-1 mx-auto max-w-4xl sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 gap-4 text-gray-400; - } - ul > li { - @apply flex flex-col pr-2; - } - ul > li > a { - @apply inline border-gray-600 hover:border-blue-600 hover:text-gray-200; - } -}*/ - #notes-list { @apply mx-auto lg:max-w-7xl xl:max-w-7xl 2xl:max-w-7xl; } From 01aaf432297397130e998244c15117e55a128a1b Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Mon, 22 Jun 2026 23:55:36 -0600 Subject: [PATCH 15/17] Added 3-way toggle with system default. --- src/layouts/Layout.astro | 108 ++++++++++++++++++++++++++++++++------- src/styles/global.css | 20 ++++---- 2 files changed, 100 insertions(+), 28 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 293529b..34343b2 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -19,26 +19,96 @@ const base = import.meta.env.BASE_URL; {title} diff --git a/src/styles/global.css b/src/styles/global.css index 77fe2d6..3dbc369 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -89,26 +89,28 @@ footer { transform: rotate(90deg); filter: drop-shadow(0px 0px 4px var(--color-amber-500)); } - button[data-toggle-theme]:first-child:after { content: "light"; @apply align-middle; } -} -.dark footer { - button { - @apply border-gray-700 hover:bg-gray-900; - } - - button[data-toggle-theme]:first-child:after { + button[data-toggle-theme="dark"]:first-child:after { content: "dark"; } - button[data-toggle-theme] svg { + button[data-toggle-theme="dark"] svg { @apply text-neutral-300; transform: rotate(270deg); filter: drop-shadow(0px 0px 4px var(--color-neutral-300)); } + + button[data-toggle-theme="system"]:first-child:after { + content: "system"; + } + button[data-toggle-theme="system"] svg { + @apply text-purple-700; + transform: rotate(180deg); + filter: drop-shadow(0px 0px 4px var(--color-purple-700)); + } } #notes-list { From 0d81d9a63dd414db6898c9ef7d3353d7bc1dab1c Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Tue, 23 Jun 2026 16:58:57 -0600 Subject: [PATCH 16/17] Cleanup/set "system" theme preference if localStorage is unset. --- src/layouts/Layout.astro | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 34343b2..1cd0a8a 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -20,30 +20,16 @@ const base = import.meta.env.BASE_URL; {title}