-
} />
-
} />
-
} />
-
} />
-
} />
+
+
+ } />
+ } />
+ } />
+ } />
+
+
+
);
}
@@ -43,3 +49,94 @@ function NavRailButton(props: {
return anchorEl;
}
+
+function ColorSelector() {
+ const [showSelector, setShowSelector] = createSignal(false);
+ const colors: Array<{name: string, color: string}> = [
+ {
+ name: "Verde",
+ color: "green",
+ },
+ {
+ name: "Azul",
+ color: "blue",
+ },
+ {
+ name: "Amarillo",
+ color: "yellow",
+ },
+ {
+ name: "Rosado",
+ color: "pink",
+ },
+ {
+ name: "Naranja",
+ color: "orange",
+ },
+ {
+ name: "Rojo",
+ color: "red",
+ },
+ ];
+
+ const showColorSelector = () => {
+ setShowSelector(true);
+ };
+
+ return (
+ <>
+
+
+
+
+
+
+ >
+ );
+}
+
+function ColorButton(props: {name: string, color: string}) {
+ const select = () => {
+ applyColors(props.color);
+ };
+
+ return (
+
+ );
+}
diff --git a/frontend/src/index.css b/frontend/src/index.css
index 3d99ddd..3ac7b8f 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -1,46 +1,20 @@
:root {
- --c-primary: #b6c4ff;
- --c-on-primary: #00287d;
- --c-primary-container: #003baf;
- --c-on-primary-container: #dce1ff;
--c-error: #ffb4ab;
--c-on-error: #690005;
--c-error-container: #93000a;
--c-on-error-container: #ffdad6;
- --c-background: #1b1b1f;
- --c-on-background: #e4e1e6;
- --c-surface: #1b1b1f;
- --c-on-surface: #e4e1e6;
- --c-outline: #8f909a;
+
--c-outline-50: rgba(143, 144, 154, 0.5);
- --c-surface-variant: #45464f;
- --c-on-surface-variant: #c6c6d0;
-
- --c-success: #78da9f;
- --c-on-success: #00391f;
}
@media (prefers-color-scheme: light) {
:root {
- --c-primary: #2a55cb;
- --c-on-primary: #ffffff;
- --c-primary-container: #dce1ff;
- --c-on-primary-container: #00164f;
--c-error: #ba1a1a;
--c-on-error: #ffffff;
--c-error-container: #ffdad6;
--c-on-error-container: #410002;
- --c-background: #fefbff;
- --c-on-background: #1b1b1f;
- --c-surface: #fefbff;
- --c-on-surface: #1b1b1f;
- --c-outline: #767680;
- --c-outline-50: rgba(118, 118, 128, 0.5);
- --c-surface-variant: #e2e1ec;
- --c-on-surface-variant: #45464f;
- --c-success: #006d40;
- --c-on-success: #ffffff;
+ --c-outline-50: rgba(118, 118, 128, 0.5);
}
}
diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx
index 01a235b..fdd1252 100644
--- a/frontend/src/index.tsx
+++ b/frontend/src/index.tsx
@@ -2,8 +2,10 @@
import { render } from "solid-js/web";
import { Router } from "@solidjs/router";
+import "./colors.css";
import "./index.css";
import App from "./App";
+import "./colorManager";
const root = document.getElementById("root");