Skip to content

Commit d47aaac

Browse files
committed
feat: add dark theme support
1 parent 93d2f8d commit d47aaac

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

pkg/app/template.templ

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ templ (app *Server) Template(body templ.Component) {
2323
/>
2424
@dev.Header
2525
</head>
26-
<body class="mx-auto max-w-xl lg:max-w-4xl flex flex-col gap-8 py-4 px-4" hx-ext="preload" hx-boost="true">
26+
<body
27+
class="mx-auto max-w-xl lg:max-w-4xl flex flex-col gap-8 py-4 px-4 dark:bg-gray-800 dark:text-white"
28+
hx-ext="preload"
29+
hx-boost="true"
30+
>
2731
<header class="flex flex-wrap gap-2">
2832
<a href="/">~</a>
2933
<a href="/blog">blog</a>

static/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ ul {
5858
}
5959

6060
#article p > code {
61-
@apply bg-gray-200 px-1
61+
@apply bg-gray-200 px-1 dark:text-gray-800
6262
}
6363

6464
#article blockquote > p {

0 commit comments

Comments
 (0)