Skip to content

Commit

Permalink
add dark mode to website
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Mar 15, 2024
1 parent 44c380d commit 6ace896
Show file tree
Hide file tree
Showing 6 changed files with 464 additions and 1,868 deletions.
2,294 changes: 442 additions & 1,852 deletions Src/CSharpier.Playground/ClientApp/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Src/CSharpier.Playground/ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"react-json-view": "1.21.3",
"react-router-dom": "5.2.0",
"rimraf": "3.0.2",
"sass": "^1.52.1",
"sass": "1.52.1",
"typescript": "4.1.3",
"vite": "2.9.9",
"vite": "2.9.17",
"vite-plugin-svgr": "2.1.0"
},
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion Src/Website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const config = {
({
docs: {
sidebarPath: require.resolve("./sidebars.js"),
breadcrumbs: false,
editUrl: githubUrl + "/tree/master/",
},
theme: {
Expand All @@ -37,7 +38,7 @@ const config = {
/** @type {import("@docusaurus/preset-classic").ThemeConfig} */
({
colorMode: {
disableSwitch: true,
respectPrefersColorScheme: true,
},
navbar: {
title: "CSharpier",
Expand Down
18 changes: 9 additions & 9 deletions Src/Website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Src/Website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^3.1.1",
"@docusaurus/module-type-aliases": "^3.1.1",
"@docusaurus/preset-classic": "^3.1.1",
"@docusaurus/core": "3.1.1",
"@docusaurus/module-type-aliases": "3.1.1",
"@docusaurus/preset-classic": "3.1.1",
"prettier": "3.2.5",
"prism-react-renderer": "2.3.1",
"react": "^18.2.0"
"react": "18.2.0"
},
"browserslist": {
"production": [
Expand Down
5 changes: 5 additions & 0 deletions Src/Website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
--ifm-footer-background-color: #32576C;
}

[data-theme='dark'] {
--ifm-menu-color: #E3E3E3;
--ifm-link-color: #80a3b9;
}

.docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.1);
display: block;
Expand Down

0 comments on commit 6ace896

Please sign in to comment.