Skip to content

Commit

Permalink
Color pallettes and hide header mode
Browse files Browse the repository at this point in the history
Former-commit-id: 6c716b4
Former-commit-id: 76447cacdb8d46618da8e23f51b54a5a217e74fe
  • Loading branch information
tomfran committed Jun 29, 2024
1 parent b4dbf9b commit f181df8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
15 changes: 15 additions & 0 deletions assets/css/colors/eink.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
:root {
--content-primary: rgb(0, 0, 0);
--content-secondary: rgb(0, 0, 0);
--background: rgb(255, 255, 255);
--code-background: rgb(255, 255, 255);
--code-border: rgb(0, 0, 0);
}

.dark {
--content-primary: rgb(255, 255, 255);
--content-secondary: rgb(255, 255, 255);
--background: rgb(0, 0, 0);
--code-background: rgb(0, 0, 0);
--code-border: rgb(255, 255, 255);
}
15 changes: 15 additions & 0 deletions assets/css/colors/gruvebox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
:root {
--content-primary: rgb(60, 56, 54);
--content-secondary: rgb(148, 133, 112);
--background: rgb(251, 241, 199);
--code-background: rgb(241, 231, 189);
--code-border: rgb(178, 163, 142);
}

.dark {
--content-primary: rgb(235, 219, 178);
--content-secondary: rgb(132, 122, 114);
--background: rgb(40, 40, 40);
--code-background: rgb(50, 50, 50);
--code-border: rgb(112, 102, 94);
}
5 changes: 5 additions & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{{/* Header */}}

<div class="header">

{{ if or (not (.Param "hideHeader")) .IsHome }}

<h1 class="header-title">{{ site.Title }}</h1>

<div class="flex">
Expand All @@ -17,4 +20,6 @@ <h1 class="header-title">{{ site.Title }}</h1>
{{ end }}
</div>

{{ end }}

</div>

0 comments on commit f181df8

Please sign in to comment.