From 37c5cd01ed787d99267a8b09eb1f942649df09b8 Mon Sep 17 00:00:00 2001
From: Anthony Geourjon <anthony.geourjon@tetras-libre.fr>
Date: Tue, 14 Jan 2025 16:37:09 +0100
Subject: [PATCH] Change background color

---
 assets/_defaults.scss      | 19 +++++++++++++++++++
 assets/themes/_tetras.scss | 10 ++++++++++
 2 files changed, 29 insertions(+)
 create mode 100644 assets/themes/_tetras.scss

diff --git a/assets/_defaults.scss b/assets/_defaults.scss
index 4c86697..f404758 100644
--- a/assets/_defaults.scss
+++ b/assets/_defaults.scss
@@ -64,3 +64,22 @@ $hint-colors: (
   --hint-color-warning: #fd6;
   --hint-color-danger: #f66;
 }
+
+@mixin theme-tetras {
+  // Custom variable for Tetras theme
+  --gray-100: rgba(255, 255, 255, 0.1);
+  --gray-200: rgba(255, 255, 255, 0.2);
+  --gray-500: rgba(255, 255, 255, 0.5);
+
+  --color-link: #0000ff;
+  --color-visited-link: #7d36fc;
+
+  --body-background: #fdf6e3;
+  --body-font-color: black;
+
+  --icon-filter: black;
+
+  --hint-color-info: #6bf;
+  --hint-color-warning: #fd6;
+  --hint-color-danger: #f66;
+}
diff --git a/assets/themes/_tetras.scss b/assets/themes/_tetras.scss
new file mode 100644
index 0000000..d137436
--- /dev/null
+++ b/assets/themes/_tetras.scss
@@ -0,0 +1,10 @@
+:root {
+  @include theme-tetras;
+}
+
+// Auto dark theme disabled until all new Macao elements are adapted for it
+//@media (prefers-color-scheme: dark) {
+//  :root {
+//    @include theme-dark;
+//  }
+//}
-- 
GitLab