feat: koloreak aldatzen ditu

This commit is contained in:
2025-11-03 18:17:07 +01:00
parent 26bd3fba39
commit 35c032972e
2 changed files with 16 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
<script is:inline> <script is:inline>
let colors = ["#24d05a", "#eb4888", "#10a2f5", "#e9bc3f"]; let colors = ["var(--green)", "var(--pink)", "var(--blue)", "var(--yellow)"];
function getRandomColor() { function getRandomColor() {
return colors[Math.floor(Math.random() * colors.length)]; return colors[Math.floor(Math.random() * colors.length)];

View File

@@ -4,21 +4,23 @@
License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md
*/ */
:root { :root {
--white: #efefef; --white: #f8f5f9;
--transwhite: rgba(239, 239, 239, 0.7); --transwhite: rgba(248, 245, 249, 0.7);
--moretranswhite: rgba(239, 239, 239, 0.1); --moretranswhite: rgba(248, 245, 249, 0.1);
--black: #252525; --black: #30252b;
--transblack: rgba(37, 37, 37, 0.7); --transblack: rgba(48, 37, 43, 0.7);
--moretransblack: rgba(37, 37, 37, 0.1); --moretransblack: rgba(48, 37, 43, 0.1);
--gray: #6b6b6b; --gray: #6d5a6d;
--highlight: #e5ffc3;
--red: #e4002b; --highlight: #f1dcff;
--green: #24d05a; --red: #f6a7a3;
--pink: #eb4888; --green: #c5e5c0;
--blue: #10a2f5; --pink: #e7b0e8;
--yellow: #e9bc3f; --blue: #c3b5f7;
--yellow: #fbe4b2;
} }
::selection { ::selection {
background-color: var(--highlight); background-color: var(--highlight);
color: var(--black); color: var(--black);