generated from visoftsolutions/ksox-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vanilla extract setup & basic layout components
- Loading branch information
Showing
12 changed files
with
105 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
import { vars } from "~/theme.css"; | ||
|
||
export const header = style({ | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { component$ } from "@builder.io/qwik"; | ||
import { header } from "./header.css"; | ||
|
||
export const Header = component$(() => { | ||
return <div class={header}></div>; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
import { vars } from "~/theme.css"; | ||
|
||
export const sidenav = style({ | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { component$ } from "@builder.io/qwik"; | ||
import { sidenav } from "./sidenav.css"; | ||
|
||
export const SideNav = component$(() => { | ||
return <div class={sidenav}></div>; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
import { vars } from "~/theme.css"; | ||
|
||
export const header = style({ | ||
backgroundColor: vars.color.background | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
import { vars } from "~/theme.css"; | ||
|
||
export const main = style({ | ||
backgroundColor: vars.color.background | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { style } from "@vanilla-extract/css"; | ||
import { vars } from "~/theme.css"; | ||
|
||
export const nav = style({ | ||
backgroundColor: vars.color.background | ||
}) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
}, | ||
}); |