remove dark mode support for now
This commit is contained in:
parent
c5892fa6fe
commit
764290698f
5 changed files with 5 additions and 14 deletions
|
@ -1,12 +1,3 @@
|
|||
@import "tailwindcss/base";
|
||||
@import "tailwindcss/components";
|
||||
@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;
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ defmodule SloaneSH.Build do
|
|||
path = Path.join(ctx.config.pages_dir, page)
|
||||
|
||||
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),
|
||||
html = Layouts.root_layout(ctx, md.attrs, contents),
|
||||
:ok <- Write.page(ctx, page, html) do
|
||||
|
@ -45,7 +45,7 @@ defmodule SloaneSH.Build do
|
|||
path = Path.join(ctx.config.posts_dir, post)
|
||||
|
||||
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),
|
||||
html = Layouts.root_layout(ctx, md.attrs, contents),
|
||||
:ok <- Write.post(ctx, post, html) do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<%= 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 %>
|
||||
</main>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<%= 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 %>
|
||||
</article>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<title><%= prefix_title("sloane.sh", attrs[:page_title]) %></title>
|
||||
<link rel="stylesheet" href="/assets/css/app.css" />
|
||||
</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 %>
|
||||
<script defer src="/assets/js/app.js"></script>
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue