From 9aa27c858fb6258c8af2c8fa26caf24c3a395fbc Mon Sep 17 00:00:00 2001 From: Tushar <80577646+TusharThakur04@users.noreply.github.com> Date: Sat, 11 Apr 2026 17:00:04 +0530 Subject: [PATCH] refactor: remove dark.css --- src/styles/dark.css | 44 -------------------------------------------- src/styles/index.css | 5 ++++- 2 files changed, 4 insertions(+), 45 deletions(-) delete mode 100644 src/styles/dark.css diff --git a/src/styles/dark.css b/src/styles/dark.css deleted file mode 100644 index 7f90de895b0a..000000000000 --- a/src/styles/dark.css +++ /dev/null @@ -1,44 +0,0 @@ -@reference "tailwindcss"; - -[data-theme="dark"] { - body { - @apply bg-dark-bg text-dark-text; - } - - .splash__section--dark { - @apply bg-dark-surface; - } - - .gitter__button { - @apply bg-[#1c3b39]; - } - - .sponsors__content, - .footer__inner { - @apply border-dark-border; - } - - .page-links__gap { - @apply text-dark-muted; - } - - .site { - background: #121212 !important; - } - - .sidebar__docs-version { - @apply border-dark-border text-dark-sidebar-version; - } - - .contributor .contributor__name { - @apply bg-dark-bg text-dark-heading; - } - - .footer-openjsf-logo { - @apply invert; - } - - .footer p { - @apply text-white; - } -} diff --git a/src/styles/index.css b/src/styles/index.css index 954288ab1581..b5b2b759ca09 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -1,7 +1,6 @@ @reference "tailwindcss"; @import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600&family=Source+Sans+Pro:ital,wght@0,400;0,600;1,400&family=Source+Serif+Pro:wght@600&display=swap"); @import "./theme.css"; -@import "./dark.css"; * { box-sizing: inherit; @@ -23,6 +22,10 @@ body { @apply text-blue-800; } +.dark body { + @apply bg-dark-bg text-dark-text; +} + .header-link { @apply inline-block w-[22px] h-[22px] bg-no-repeat bg-center bg-contain; background-image: url("../assets/link.svg");