From bbd70455d75382302aba2bae85ae0266662f7168 Mon Sep 17 00:00:00 2001 From: leomcelroy Date: Sat, 14 Oct 2023 12:22:23 -0400 Subject: [PATCH] removed theme css --- astro/src/css/global.css | 44 ++++++++++++++++++ astro/src/css/theme.css | 89 ------------------------------------ astro/src/pages/editor.astro | 2 - 3 files changed, 44 insertions(+), 91 deletions(-) delete mode 100644 astro/src/css/theme.css diff --git a/astro/src/css/global.css b/astro/src/css/global.css index 6afe2d6fc..2bd078bfa 100644 --- a/astro/src/css/global.css +++ b/astro/src/css/global.css @@ -30,6 +30,50 @@ --font-7: 6rem; } +h1, +h2, +h3, +h4, +h5, +h6, +p, +pre { + margin: 0; + font-family: var(--font-sans); +} + +h1 { + font-size: var(--font-4); +} + +h2 { + font-size: var(--font-3); +} + +h3 { + font-size: var(--font-2); +} + +h4 { + font-size: var(--font-1); +} + +h5 { + font-size: var(--font-0); + color: var(--primary); +} + +h6 { + font-size: 0.9rem; + font-weight: 500; +} + +pre, +code { + font-family: var(--font-mono); + overflow: scroll; +} + /* UTILITY CSS */ diff --git a/astro/src/css/theme.css b/astro/src/css/theme.css deleted file mode 100644 index 2201ea560..000000000 --- a/astro/src/css/theme.css +++ /dev/null @@ -1,89 +0,0 @@ -@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=JetBrains+Mono:ital@0;1&display=swap'); - -:root { - --primary: #33e; - --primary-rgb: 51, 51, 238; - --text: #000; - --text-rgb: 0, 0, 0; - --background: #fff; - --background-rgb: 255, 255, 255; - --muted: #e5e5e5; - --muted-rgb: 229, 229, 229; - --accent: #f0f; - --accent-rgb: 255, 0, 255; - --accent-dark: #900090; - --accent-dark-rgb: 144, 0, 144; - --font-body: 'Atkinson Hyperlegible', sans-serif; - --font-mono: monospace; - - --font-0: 1rem; - --font-1: 1.125rem; - --font-2: 1.25rem; - --font-3: 1.5rem; - --font-4: 2rem; - --font-5: 3rem; - --font-6: 4rem; - --font-7: 6rem; -} - -body { - font-family: var(--font-body); - font-size: var(--font-0); - min-height: 100vh; - margin: 0; -} - -body[data-theme='dark'] { - --background: #292d30; - --background-rgb: 41, 45, 48; - --text: #fff; - --text-rgb: 255, 255, 255; - background-color: var(--background); -} - -* { - font-family: inherit; - box-sizing: border-box; -} - -h1, -h2, -h3, -h4, -h5, -h6, -p, -pre { - margin: 0; -} - -h1 { - font-size: var(--font-4); -} - -h2 { - font-size: var(--font-3); -} - -h3 { - font-size: var(--font-2); -} - -h4 { - font-size: var(--font-1); -} - -h5 { - font-size: var(--font-0); - color: var(--primary); -} - -h6 { - font-size: 0.9rem; - font-weight: 500; -} - -pre, -code { - font-family: var(--font-mono); -} diff --git a/astro/src/pages/editor.astro b/astro/src/pages/editor.astro index 88a60d543..546a3866b 100644 --- a/astro/src/pages/editor.astro +++ b/astro/src/pages/editor.astro @@ -1,7 +1,5 @@ --- -// import '../css/editor-theme.css' import '../css/global.css' - ---