diff --git a/src/components/header/header.css.ts b/src/components/header/header.css.ts
new file mode 100644
index 0000000..bbbc56a
--- /dev/null
+++ b/src/components/header/header.css.ts
@@ -0,0 +1,6 @@
+import { style } from "@vanilla-extract/css";
+import { vars } from "~/theme.css";
+
+export const header = style({
+
+})
\ No newline at end of file
diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx
new file mode 100644
index 0000000..0f5c0a9
--- /dev/null
+++ b/src/components/header/header.tsx
@@ -0,0 +1,6 @@
+import { component$ } from "@builder.io/qwik";
+import { header } from "./header.css";
+
+export const Header = component$(() => {
+ return
;
+});
diff --git a/src/components/sidenav/sidenav.css.ts b/src/components/sidenav/sidenav.css.ts
new file mode 100644
index 0000000..f6c841f
--- /dev/null
+++ b/src/components/sidenav/sidenav.css.ts
@@ -0,0 +1,6 @@
+import { style } from "@vanilla-extract/css";
+import { vars } from "~/theme.css";
+
+export const sidenav = style({
+
+})
\ No newline at end of file
diff --git a/src/components/sidenav/sidenav.tsx b/src/components/sidenav/sidenav.tsx
new file mode 100644
index 0000000..01e0214
--- /dev/null
+++ b/src/components/sidenav/sidenav.tsx
@@ -0,0 +1,6 @@
+import { component$ } from "@builder.io/qwik";
+import { sidenav } from "./sidenav.css";
+
+export const SideNav = component$(() => {
+ return ;
+});
diff --git a/src/root.tsx b/src/root.tsx
index 65ad337..cd36445 100644
--- a/src/root.tsx
+++ b/src/root.tsx
@@ -7,6 +7,7 @@ import {
import { RouterHead } from "./components/router-head/router-head";
import "./global.css";
+import { darkTheme, lightTheme } from "./theme.css";
export default component$(() => {
/**
@@ -24,7 +25,7 @@ export default component$(() => {
-
+
diff --git a/src/routes/header.css.ts b/src/routes/header.css.ts
new file mode 100644
index 0000000..5b22e9a
--- /dev/null
+++ b/src/routes/header.css.ts
@@ -0,0 +1,6 @@
+import { style } from "@vanilla-extract/css";
+import { vars } from "~/theme.css";
+
+export const header = style({
+ backgroundColor: vars.color.background
+})
\ No newline at end of file
diff --git a/src/routes/layout.css.ts b/src/routes/layout.css.ts
new file mode 100644
index 0000000..4ffa9a8
--- /dev/null
+++ b/src/routes/layout.css.ts
@@ -0,0 +1,18 @@
+import { style } from "@vanilla-extract/css";
+import { vars } from "~/theme.css";
+
+export const layoutRow = style({
+ width: "100vw",
+ height: "100vh",
+ display: "grid",
+ gridTemplateRows: "36px 1fr",
+ backgroundColor: vars.color.backgroundHighlight,
+ gap: "1px",
+})
+
+export const layoutColumn = style({
+ display: "grid",
+ gridTemplateColumns: "36px 1fr",
+ gap: "1px",
+ backgroundColor: vars.color.backgroundHighlight,
+})
\ No newline at end of file
diff --git a/src/routes/layout.tsx b/src/routes/layout.tsx
index 870f310..92d73c4 100644
--- a/src/routes/layout.tsx
+++ b/src/routes/layout.tsx
@@ -2,7 +2,12 @@ import { component$, Slot, useStyles$ } from "@builder.io/qwik";
import { routeLoader$ } from "@builder.io/qwik-city";
import type { RequestHandler } from "@builder.io/qwik-city";
-import styles from "./styles.css?inline";
+import { layoutColumn, layoutRow } from "./layout.css";
+import { SideNav } from "~/components/sidenav/sidenav";
+import { Header } from "~/components/header/header";
+import { header } from "./header.css";
+import { nav } from "./nav.css";
+import { main } from "./main.css";
export const onGet: RequestHandler = async ({ cacheControl }) => {
// Control caching for this request for best performance and to reduce hosting costs:
@@ -22,14 +27,16 @@ export const useServerTimeLoader = routeLoader$(() => {
});
export default component$(() => {
- useStyles$(styles);
+ // useStyles$(styles);
return (
- <>
- {/* */}
-
-
-
- {/* */}
- >
+
);
});
diff --git a/src/routes/main.css.ts b/src/routes/main.css.ts
new file mode 100644
index 0000000..564e5c1
--- /dev/null
+++ b/src/routes/main.css.ts
@@ -0,0 +1,6 @@
+import { style } from "@vanilla-extract/css";
+import { vars } from "~/theme.css";
+
+export const main = style({
+ backgroundColor: vars.color.background
+})
\ No newline at end of file
diff --git a/src/routes/nav.css.ts b/src/routes/nav.css.ts
new file mode 100644
index 0000000..a8adf36
--- /dev/null
+++ b/src/routes/nav.css.ts
@@ -0,0 +1,6 @@
+import { style } from "@vanilla-extract/css";
+import { vars } from "~/theme.css";
+
+export const nav = style({
+ backgroundColor: vars.color.background
+})
\ No newline at end of file
diff --git a/src/routes/styles.css b/src/routes/styles.css
deleted file mode 100644
index e69de29..0000000
diff --git a/src/theme.css.ts b/src/theme.css.ts
new file mode 100644
index 0000000..2a2d182
--- /dev/null
+++ b/src/theme.css.ts
@@ -0,0 +1,27 @@
+import { createTheme } from "@vanilla-extract/css";
+
+export const [darkTheme, vars] = createTheme({
+ color: {
+ background: '#2b2f3a', // Background (Dark Grayish Bluish)
+ backgroundHighlight: '#3c3f4a', // Background Highlighted (Dark Grayish Bluish)
+ red: '#d43f4a', // Muted Red
+ green: '#3d8e5d', // Muted Green
+ blue: '#2f6d99', // Muted Blue
+ text: '#e0e0e0', // Text (For light text against dark backgrounds)
+ subtext: '#a0a0a0', // Subtext (For lesser important text)
+ divider: '#42465b', // Border/Divider Color
+ },
+});
+
+export const lightTheme = createTheme(vars, {
+ color: {
+ background: '#e6eaf0', // Background (Light Grayish Bluish)
+ backgroundHighlight: '#d5d8e0', // Background Highlighted (Dark Grayish Bluish)
+ red: '#e05a67', // Muted Red
+ green: '#59a883', // Muted Green
+ blue: '#508db3', // Muted Blue
+ text: '#2c2f3b', // Text (For dark text against light backgrounds)
+ subtext: '#6c6f7f', // Subtext (For lesser important text)
+ divider: '#b2b5c3', // Border/Divider Color
+ },
+});