diff --git a/public/brush-stroke.jpg b/public/brush-stroke.jpg deleted file mode 100644 index 25616b9..0000000 Binary files a/public/brush-stroke.jpg and /dev/null differ diff --git a/src/App.tsx b/src/App.tsx index c3ece3e..0d6f536 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,5 @@ import { createSignal, onMount } from 'solid-js' -import './App.css' +import './assets/App.css' import parts from './parts.json' import PWABadge from './PWABadge' diff --git a/src/App.css b/src/assets/App.css similarity index 75% rename from src/App.css rename to src/assets/App.css index e04909e..421c86b 100644 --- a/src/App.css +++ b/src/assets/App.css @@ -5,7 +5,7 @@ @font-face { font-family: 'helsinkiregular'; - src: url('../helsinki-webfont.woff') format('woff'); + src: url('helsinki-webfont.woff') format('woff'); font-weight: normal; font-style: normal; } @@ -24,8 +24,8 @@ inset: 0; margin: auto; height: min(100vh, 50rem); - background-color: #FFF; - mask-image: url('../brush-stroke.png'); + background-color: var(--color-bg); + mask-image: url('brush-stroke.png'); mask-size: cover; mask-repeat: no-repeat; mask-position: center; @@ -33,7 +33,7 @@ .prompt { font-size: min(3rem, 10vmin); - text-shadow: 0 0 0.1em white, 0 0 0.25em white, 0 0 0.5em white, 0 0 1em white; + text-shadow: 0 0 0.1em var(--color-bg), 0 0 0.25em var(--color-bg), 0 0 0.5em var(--color-bg), 0 0 1em var(--color-bg); width: min(80vmax, calc(100vw - 2rem)); margin: 0 auto; } @@ -42,4 +42,4 @@ position: fixed; bottom: 1rem; left: 1rem; -} \ No newline at end of file +} diff --git a/public/brush-stroke.png b/src/assets/brush-stroke.png similarity index 100% rename from public/brush-stroke.png rename to src/assets/brush-stroke.png diff --git a/public/helsinki-webfont.woff b/src/assets/helsinki-webfont.woff similarity index 100% rename from public/helsinki-webfont.woff rename to src/assets/helsinki-webfont.woff diff --git a/src/index.css b/src/assets/index.css similarity index 84% rename from src/index.css rename to src/assets/index.css index 6119ad9..a80ba9a 100644 --- a/src/index.css +++ b/src/assets/index.css @@ -4,8 +4,10 @@ font-weight: 400; color-scheme: light dark; - color: rgba(255, 255, 255, 0.87); - background-color: #242424; + --color-fg: rgba(255, 255, 255, 0.87); + --color-bg: #242424; + color: var(--color-fg); + background-color: var(--color-bg); font-synthesis: none; text-rendering: optimizeLegibility; @@ -56,8 +58,8 @@ button:focus-visible { @media (prefers-color-scheme: light) { :root { - color: #213547; - background-color: #ffffff; + --color-bg: rgba(255, 255, 255, 0.87); + --color-fg: #242424; } a:hover { color: #747bff; diff --git a/src/assets/solid.svg b/src/assets/solid.svg deleted file mode 100644 index 025aa30..0000000 --- a/src/assets/solid.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/index.tsx b/src/index.tsx index f67cd20..8394a9d 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,6 +1,6 @@ /* @refresh reload */ import { render } from 'solid-js/web' -import './index.css' +import './assets/index.css' import App from './App.tsx' const root = document.getElementById('root')