diff --git a/src/lib/components/events/event-item.svelte b/src/lib/components/events/event-item.svelte index f65fd093a..ed68d7dbf 100644 --- a/src/lib/components/events/event-item.svelte +++ b/src/lib/components/events/event-item.svelte @@ -293,6 +293,7 @@ .action-item { --size: 40px; + color: var(--highlights); width: var(--size); height: var(--size); padding: calc(var(--size) * 0.15); diff --git a/src/lib/components/index/acm-paths.svelte b/src/lib/components/index/acm-paths.svelte index ee8dcf43a..1b446fb45 100644 --- a/src/lib/components/index/acm-paths.svelte +++ b/src/lib/components/index/acm-paths.svelte @@ -17,7 +17,7 @@ {#each pinnedPaths as { title, slug, picture, color } (slug)} {`${slug}-logo`} -

+

acm {title} diff --git a/src/lib/components/sections/navbar.svelte b/src/lib/components/sections/navbar.svelte index cf324e439..e759475a3 100644 --- a/src/lib/components/sections/navbar.svelte +++ b/src/lib/components/sections/navbar.svelte @@ -92,12 +92,14 @@ nav .full-logomark .logo-text { font-size: 24px; padding-left: 8px; + color: var(--acm-dark); } nav .pages a { font-size: 18px; margin-left: 64px; transition: color 0.25s ease-in-out; + color: var(--acm-dark); } nav .page-about:hover, diff --git a/src/lib/stores/theme.ts b/src/lib/stores/theme.ts index 9044f2a95..defd09ff2 100644 --- a/src/lib/stores/theme.ts +++ b/src/lib/stores/theme.ts @@ -20,10 +20,12 @@ function save(value: AcmTheme) { switch (value) { case AcmTheme.Dark: { document.body.classList.add(AcmTheme.Dark); + document.body.classList.remove(AcmTheme.Light); return; } default: { document.body.classList.remove(AcmTheme.Dark); + document.body.classList.add(AcmTheme.Light); return; } } diff --git a/src/routes/about/index.svelte b/src/routes/about/index.svelte index 6630ace2d..84be5825c 100644 --- a/src/routes/about/index.svelte +++ b/src/routes/about/index.svelte @@ -23,7 +23,12 @@

Who are we?

acmCSUF is a student chapter of the - + Association for Computing Machinery, an international organization based in New York that advocates for the advancement of computer science as a science and profession. Our chapter based in California State University, diff --git a/static/global.css b/static/global.css index bfcaaa8c3..3a74303e3 100644 --- a/static/global.css +++ b/static/global.css @@ -9,28 +9,17 @@ body { html, body, #svelte { - color: var(--acm-dark); font-family: 'Poppins', sans-serif; padding: 0; margin: 0; } +html, body { + color: var(--acm-dark); background: var(--acm-light); } -.dark { - --acm-dark: #dddddd; - --acm-light: #101315; - --navbar-bg: var(--acm-gray); - --footer-bg: var(--acm-gray); -} - -.info-screen { - display: block; - height: 100vh; -} - :root { --acm-blue: #2c91c6; --acm-bluer: #1e6cff; @@ -39,37 +28,12 @@ body { --acm-red: #d41153; --acm-sky: #38b6ff; --acm-gray: #292c2f; - --acm-dark: #101315; - --acm-light: #f8f8f8; --acm-general-rgb: 44, 145, 198; --acm-algo-rgb: 157, 53, 231; --acm-create-rgb: 255, 67, 101; --acm-dev-rgb: 30, 108, 255; - --desktop-breakpoint: 768px; - --navbar-height: 82px; - --navbar-bg: var(--acm-light); - --footer-bg: var(--acm-dark); - - /* Fluid font size is the magical numbers for fluid font sizing. It should be - * put into parent containers. */ - --fluid-font-size: clamp(1vw, 0.7em, 3vw); - - --p-font-size: 2em; - --h-font-size-med: 3em; - - --min-p-font-size: 18px; - --max-p-font-size: 36px; - --min-h-font-size: 22px; - --max-h-font-size: 86px; - --max-h-font-size-med: 64px; - - --heading-font-size: 48px; - --subheading-font-size: 24px; - --body-font-size: 18px; - --margin-text-font-size: 12px; - --size-xs: 16px; --size-sm: 18px; --size-md: 24px; @@ -163,3 +127,35 @@ body { .brand-sky { color: var(--acm-sky); } + +.light { + --acm-dark: #101315; + --acm-light: #f8f8f8; + --navbar-bg: var(--acm-light); + --footer-bg: var(--acm-dark); +} + +.dark { + --acm-dark: #dddddd; + --acm-light: #101315; + --navbar-bg: var(--acm-gray); + --footer-bg: var(--acm-gray); +} + +@media (prefers-color-scheme: light) { + body:not(.dark) { + --acm-dark: #101315; + --acm-light: #f8f8f8; + --navbar-bg: var(--acm-light); + --footer-bg: var(--acm-dark); + } +} + +@media (prefers-color-scheme: dark) { + body:not(.light) { + --acm-dark: #dddddd; + --acm-light: #101315; + --navbar-bg: var(--acm-gray); + --footer-bg: var(--acm-gray); + } +}