Skip to content

Commit

Permalink
lint fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Oct 14, 2023
1 parent b6cc529 commit fa40057
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 47 deletions.
5 changes: 1 addition & 4 deletions src/components/header/header.css.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { style } from "@vanilla-extract/css";
import { vars } from "~/theme.css";

export const header = style({

})
export const header = style({});
5 changes: 1 addition & 4 deletions src/components/sidenav/sidenav.css.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { style } from "@vanilla-extract/css";
import { vars } from "~/theme.css";

export const sidenav = style({

})
export const sidenav = style({});
2 changes: 1 addition & 1 deletion src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { RouterHead } from "./components/router-head/router-head";

import "./global.css";
import { darkTheme, lightTheme } from "./theme.css";
import { darkTheme } from "./theme.css";

export default component$(() => {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/routes/header.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { style } from "@vanilla-extract/css";
import { vars } from "~/theme.css";

export const header = style({
backgroundColor: vars.color.background
})
backgroundColor: vars.color.background,
});
24 changes: 12 additions & 12 deletions src/routes/layout.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ 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",
})
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,
})
display: "grid",
gridTemplateColumns: "36px 1fr",
gap: "1px",
backgroundColor: vars.color.backgroundHighlight,
});
11 changes: 7 additions & 4 deletions src/routes/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { component$, Slot, useStyles$ } from "@builder.io/qwik";
import { component$, Slot } from "@builder.io/qwik";
import { routeLoader$ } from "@builder.io/qwik-city";
import type { RequestHandler } from "@builder.io/qwik-city";

Expand Down Expand Up @@ -27,12 +27,15 @@ export const useServerTimeLoader = routeLoader$(() => {
});

export default component$(() => {
// useStyles$(styles);
return (
<div class={layoutRow}>
<header class={header}><Header></Header></header>
<header class={header}>
<Header></Header>
</header>
<div class={layoutColumn}>
<nav class={nav}><SideNav></SideNav></nav>
<nav class={nav}>
<SideNav></SideNav>
</nav>
<main class={main}>
<Slot />
</main>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/main.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { style } from "@vanilla-extract/css";
import { vars } from "~/theme.css";

export const main = style({
backgroundColor: vars.color.background
})
backgroundColor: vars.color.background,
});
4 changes: 2 additions & 2 deletions src/routes/nav.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { style } from "@vanilla-extract/css";
import { vars } from "~/theme.css";

export const nav = style({
backgroundColor: vars.color.background
})
backgroundColor: vars.color.background,
});
32 changes: 16 additions & 16 deletions src/theme.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ 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
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
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
},
});

0 comments on commit fa40057

Please sign in to comment.