diff --git a/src/app.css b/src/app.css index 9da7a29..bf5a56a 100644 --- a/src/app.css +++ b/src/app.css @@ -2,8 +2,49 @@ @tailwind components; @tailwind utilities; -.window { - @apply bg-gray-900 text-slate-200; +:root { + --c0: #274f21; + --c1: #448939; + --c2: #73bf67; + + --c3: #193815; +} + +body { + @apply bg-main text-main; +} + +.common-window { @apply p-3 gap-3 w-screen h-screen; @apply grid grid-cols-8; } + +.main-window { + @apply col-span-6 flex flex-col gap-3; +} + +.browser-window { + @apply grow shadow-inner; +} + +.window-controls { + @apply flex justify-start; +} + +.button { + @apply p-1 rounded-lg; + @apply ease-out duration-150; + + @apply hover:bg-main; + @apply hover:px-2 hover:mx-1 hover:scale-125 hover:cursor-pointer; + + @apply active:bg-dark; +} + +.block { + @apply p-3 rounded-xl bg-block; +} + +.sidebar { + @apply col-span-2; +} diff --git a/src/lib/components/Block.svelte b/src/lib/components/Block.svelte index 27b5f34..46ee525 100644 --- a/src/lib/components/Block.svelte +++ b/src/lib/components/Block.svelte @@ -2,6 +2,6 @@ export let className = ""; -
+
diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte index afa5da8..e30a2fc 100644 --- a/src/lib/components/Button.svelte +++ b/src/lib/components/Button.svelte @@ -2,9 +2,6 @@ export let onClick = () => {}; - diff --git a/src/lib/components/WindowControls.svelte b/src/lib/components/WindowControls.svelte index 4ce83c5..3bb08bc 100644 --- a/src/lib/components/WindowControls.svelte +++ b/src/lib/components/WindowControls.svelte @@ -7,7 +7,7 @@ import { appWindow } from "@tauri-apps/api/window"; -
+
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index ce934d8..28433ab 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -4,9 +4,13 @@ import "../app.css"; -
- +
+ - Browser window +
+ Top bar + + Browser window +
diff --git a/tailwind.config.js b/tailwind.config.js index 13207cc..a8d4053 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,9 +1,18 @@ /** @type {import('tailwindcss').Config} */ export default { - content: ['./src/**/*.{html,js,svelte,ts}'], + content: ["./src/**/*.{html,js,svelte,ts}"], theme: { - extend: {}, + extend: { + colors: { + main: "var(--c0)", + block: "var(--c1)", + light: "var(--c2)", + dark: "var(--c3)", + }, + textColor: { + main: "var(--c2)", + }, + }, }, plugins: [], -} - +};