Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"*.{md,mdx}": [
"npm run lint:markdown"
],
"*.{js,mjs,jsx,css,scss,md,mdx,json}": [
"*.{js,mjs,jsx,css,md,mdx,json}": [
"prettier --write"
]
},
Expand Down Expand Up @@ -133,7 +133,6 @@
"mdast-util-to-string": "^4.0.0",
"mini-css-extract-plugin": "^2.10.1",
"mkdirp": "^3.0.1",
"modularscale-sass": "^3.0.3",
"npm-run-all": "^4.1.1",
"postcss": "^8.5.8",
"postcss-loader": "^8.2.0",
Expand All @@ -150,8 +149,6 @@
"remark-gfm": "^4.0.1",
"remark-html": "^16.0.1",
"rimraf": "^6.1.2",
"sass": "^1.97.3",
"sass-loader": "^16.0.6",
"sirv-cli": "^3.0.1",
"sitemap-static": "^0.4.2",
"static-site-generator-webpack-plugin": "^3.4.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Site/Site.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import Splash from "../Splash/Splash.jsx";
import Sponsors from "../Sponsors/Sponsors.jsx";

// Load Styling
import "../../styles/index.scss";
import "../../styles/index.css";

// Load Content Tree

Expand Down
150 changes: 150 additions & 0 deletions src/styles/dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
@reference "tailwindcss";

[data-theme="dark"] {
body {
@apply bg-[#121212] text-[#e0e0e0];
}

.splash__section--dark {
@apply bg-[#202020];
}

.markdown {
h1,
h2,
h3,
h4,
h5,
h6 {
@apply text-[#9ab3c0];
}

code,
tt {
text-shadow: none;
@apply bg-[rgba(70,94,105,0.45)];
}

blockquote {
@apply border-l-[#343434] text-[#a3a3a3];
}

blockquote.tip {
@apply bg-[#192429] text-[#7da2b4];
}

blockquote.warning {
@apply bg-[#27220a] text-[#a49d83];
}

blockquote.todo {
@apply bg-[#402b1f] text-[#998478];
}

hr {
@apply bg-[#343434];
}

th {
@apply bg-[#121212] border-[#252525];
}

tr,
tr:last-child {
@apply border-[#252525];
}

tr:nth-child(2n) {
@apply bg-[#202020];
}

td {
@apply border-[#252525];
}

pre {
@apply bg-[#131b1f];

code {
@apply bg-transparent;
}
}

a code {
@apply text-[#69a8ee];

&:hover {
@apply text-[#82b7f6];
}
}

aside.tip,
aside.warning,
aside.preview,
aside.todo {
@apply bg-[#222222] text-white;
}

aside.tip > .tip__prefix,
aside.warning > .warning__prefix,
aside.preview > .preview__prefix,
aside.todo > .todo__prefix {
@apply text-white;
}
}

.gitter__button {
@apply bg-[#1c3b39];
}

.sponsors__content,
.footer__inner {
@apply border-[#252525];
}

.page-links__gap {
@apply text-gray-300;
}

.site {
background: #121212 !important;
}

.sidebar__docs-version {
@apply border-[#252525] text-[#b8b8b8];
}

.contributor .contributor__name {
@apply bg-[#121212] text-[#9ab3c0];
}

.placeholder h2,
.placeholder p {
@apply bg-[#252525];

&:after {
background: linear-gradient(90deg, #252525, #121212, #252525);
}
}

.footer-openjsf-logo {
@apply invert;
}

.footer p {
@apply text-white;
}
}

@layer base {
[data-theme="dark"] a,
[data-theme="dark"] button.as-link {
@apply text-[#69a8ee];
}
}

@layer base {
[data-theme="dark"] a:hover {
@apply text-[#82b7f6];
}
}
150 changes: 0 additions & 150 deletions src/styles/dark.scss

This file was deleted.

Loading
Loading