Skip to content

Commit

Permalink
refactor: use whiskers@v2 (#4)
Browse files Browse the repository at this point in the history
refactor: update to whiskers v2
fix: don't always use mocha blue
  • Loading branch information
uncenter authored Aug 31, 2024
1 parent 5d462d1 commit 7651123
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 49 deletions.
11 changes: 0 additions & 11 deletions Makefile

This file was deleted.

5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_default:
@just --list

build:
whiskers theme.park.tera
34 changes: 0 additions & 34 deletions template/style.css

This file was deleted.

46 changes: 46 additions & 0 deletions theme.park.tera
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
whiskers:
version: "2.3.0"
matrix:
- flavor
filename: "themes/{{ flavor.identifier }}.css"
---

{%- macro rgb(color) -%}
{{ color.rgb.r }}, {{ color.rgb.g }}, {{ color.rgb.b }}
{%- endmacro -%}

:root {
--main-bg-color: #{{ base.hex }};

--modal-bg-color: #{{ mantle.hex }};
--modal-header-color: #{{ crust.hex }};
--modal-footer-color: #{{ crust.hex }};

--drop-down-menu-bg: #{{ surface0.hex }};

--button-color: #{{ surface0.hex }};
--button-color-hover: #{{ surface1.hex }};
--button-text: var(--text);
--button-text-hover: var(--text-hover);

--accent-color: {{ self::rgb(color=blue) }};
--accent-color-hover: rgb(var(--accent-color), 0.8);
--link-color: var(--text);
--link-color-hover: #{{ blue.hex }};
--label-text-color: #fff; /* have to break convention here */

--text: #{{ text.hex }};
--text-hover: var(--text);
--text-muted: {{ subtext0.hex }};

/* Specials */
--arr-queue-color: #{{ green.hex }}; /* Servarr apps + Bazarr */
--plex-poster-unwatched: #{{ peach.hex }};
--petio-spinner: invert(66%) sepia(15%) saturate(1451%) hue-rotate(185deg) brightness(105%) contrast(96%); /* Made with https://codepen.io/jsm91/embed/ZEEawyZ */ /* Blue */
--gitea-color-primary-dark-4: var(--accent-color);
--overseerr-gradient: linear-gradient(
var(--main-bg-color),
var(--main-bg-color)
); /* Make sure this is compatible with whatever takes in the gradient */
}
2 changes: 1 addition & 1 deletion flavors/frappe.css → themes/frappe.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
--button-text: var(--text);
--button-text-hover: var(--text-hover);

--accent-color: 137, 180, 250; /* Mocha Blue */
--accent-color: 140, 170, 238;
--accent-color-hover: rgb(var(--accent-color), 0.8);
--link-color: var(--text);
--link-color-hover: #8caaee;
Expand Down
2 changes: 1 addition & 1 deletion flavors/latte.css → themes/latte.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
--button-text: var(--text);
--button-text-hover: var(--text-hover);

--accent-color: 137, 180, 250; /* Mocha Blue */
--accent-color: 30, 102, 245;
--accent-color-hover: rgb(var(--accent-color), 0.8);
--link-color: var(--text);
--link-color-hover: #1e66f5;
Expand Down
2 changes: 1 addition & 1 deletion flavors/macchiato.css → themes/macchiato.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
--button-text: var(--text);
--button-text-hover: var(--text-hover);

--accent-color: 137, 180, 250; /* Mocha Blue */
--accent-color: 138, 173, 244;
--accent-color-hover: rgb(var(--accent-color), 0.8);
--link-color: var(--text);
--link-color-hover: #8aadf4;
Expand Down
2 changes: 1 addition & 1 deletion flavors/mocha.css → themes/mocha.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
--button-text: var(--text);
--button-text-hover: var(--text-hover);

--accent-color: 137, 180, 250; /* Mocha Blue */
--accent-color: 137, 180, 250;
--accent-color-hover: rgb(var(--accent-color), 0.8);
--link-color: var(--text);
--link-color-hover: #89b4fa;
Expand Down

0 comments on commit 7651123

Please sign in to comment.