remove dark mode support for now

This commit is contained in:
sloane 2024-02-24 10:34:46 -05:00
parent c5892fa6fe
commit 764290698f
5 changed files with 5 additions and 14 deletions

View file

@ -1,12 +1,3 @@
@import "tailwindcss/base"; @import "tailwindcss/base";
@import "tailwindcss/components"; @import "tailwindcss/components";
@import "tailwindcss/utilities"; @import "tailwindcss/utilities";
@media (perfers-color-scheme: dark) {
--pagefind-ui-primary: #eeeeee;
--pagefind-ui-text: #eeeeee;
--pagefind-ui-background: #152028;
--pagefind-ui-border: #152028;
--pagefind-ui-tag: #152028;
}

View file

@ -31,7 +31,7 @@ defmodule SloaneSH.Build do
path = Path.join(ctx.config.pages_dir, page) path = Path.join(ctx.config.pages_dir, page)
with {:ok, data} <- File.read(path), with {:ok, data} <- File.read(path),
{:ok, md} <- Markdown.transform(ctx, data), {:ok, md} <- Markdown.transform(ctx, data),
contents = Layouts.page_layout(ctx, md.attrs, md.html), contents = Layouts.page_layout(ctx, md.attrs, md.html),
html = Layouts.root_layout(ctx, md.attrs, contents), html = Layouts.root_layout(ctx, md.attrs, contents),
:ok <- Write.page(ctx, page, html) do :ok <- Write.page(ctx, page, html) do
@ -45,7 +45,7 @@ defmodule SloaneSH.Build do
path = Path.join(ctx.config.posts_dir, post) path = Path.join(ctx.config.posts_dir, post)
with {:ok, data} <- File.read(path), with {:ok, data} <- File.read(path),
{:ok, md} <- Markdown.transform(ctx, data), {:ok, md} <- Markdown.transform(ctx, data),
contents = Layouts.post_layout(ctx, md.attrs, md.html), contents = Layouts.post_layout(ctx, md.attrs, md.html),
html = Layouts.root_layout(ctx, md.attrs, contents), html = Layouts.root_layout(ctx, md.attrs, contents),
:ok <- Write.post(ctx, post, html) do :ok <- Write.post(ctx, post, html) do

View file

@ -1,4 +1,4 @@
<%= header(ctx, attrs) %> <%= header(ctx, attrs) %>
<main class="prose-neutral prose prose-xl dark:prose-invert" data-pagefind-body> <main class="prose-neutral prose prose-xl" data-pagefind-body>
<%= inner_content %> <%= inner_content %>
</main> </main>

View file

@ -1,5 +1,5 @@
<%= header(ctx, attrs) %> <%= header(ctx, attrs) %>
<article class="prose-neutral prose prose-xl dark:prose-invert" data-pagefind-body> <article class="prose-neutral prose prose-xl" data-pagefind-body>
<%= inner_content %> <%= inner_content %>
</article> </article>

View file

@ -7,7 +7,7 @@
<title><%= prefix_title("sloane.sh", attrs[:page_title]) %></title> <title><%= prefix_title("sloane.sh", attrs[:page_title]) %></title>
<link rel="stylesheet" href="/assets/css/app.css" /> <link rel="stylesheet" href="/assets/css/app.css" />
</head> </head>
<body class="w-full max-w-3xl bg-white text-neutral-900 dark:bg-neutral-800 dark:text-neutral-100 dark"> <body class="w-full max-w-3xl bg-white text-neutral-900">
<%= inner_content %> <%= inner_content %>
<script defer src="/assets/js/app.js"></script> <script defer src="/assets/js/app.js"></script>
</body> </body>