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
4 changes: 3 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ async function createConfig() {
// Relative to your site's 'static' directory.
// Cannot be SVGs. Can be external URLs too.
colorMode: {
disableSwitch: true,
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
},
docs: {
sidebar: {
Expand Down
19 changes: 14 additions & 5 deletions src/components/Roadmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,12 @@ export default function Roadmap({ src = '/project-roadmap/roadmap.tsv' }) {
{isOpen ? '▾' : '▸'}
</span>
<span>{section.heading}</span>
<span style={{ color: '#666', fontWeight: 400 }}>
<span
style={{
color: 'var(--cai-color-on-disabled)',
fontWeight: 400,
}}
>
({items.length})
</span>
</button>
Expand All @@ -193,7 +198,8 @@ export default function Roadmap({ src = '/project-roadmap/roadmap.tsv' }) {
<th
style={{
textAlign: 'left',
borderBottom: '1px solid #ddd',
borderBottom:
'1px solid var(--cai-color-background-dark)',
padding: '8px',
}}
>
Expand All @@ -202,7 +208,8 @@ export default function Roadmap({ src = '/project-roadmap/roadmap.tsv' }) {
<th
style={{
textAlign: 'left',
borderBottom: '1px solid #ddd',
borderBottom:
'1px solid var(--cai-color-background-dark)',
padding: '8px',
width: '200px',
}}
Expand All @@ -229,15 +236,17 @@ export default function Roadmap({ src = '/project-roadmap/roadmap.tsv' }) {
<tr key={`${section.key}-${idx}`}>
<td
style={{
borderBottom: '1px solid #eee',
borderBottom:
'1px solid var(--cai-color-background-dark)',
padding: '8px',
}}
>
{titleCell}
</td>
<td
style={{
borderBottom: '1px solid #eee',
borderBottom:
'1px solid var(--cai-color-background-dark)',
padding: '8px',
}}
>
Expand Down
28 changes: 28 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@
--ifm-tabs-color-active: var(--cai-color-primary);
}

[data-theme='dark'] {
--cai-color-background: #1b1b1d;
--cai-color-on-background: #e3e3e3;
--cai-color-background-dark: #2b2b2e;
--cai-color-on-background-dark: #e3e3e3;
--cai-color-disabled: #3a3a3d;
--cai-color-on-disabled: #8a8a8d;
--cai-color-surface: #242526;
--cai-color-on-surface: #e3e3e3;
--cai-color-primary-light: #1f3b57;
--cai-color-secondary-light: #4a4020;
--cai-color-shadow: rgba(0, 0, 0, 0.6);
}

* {
-webkit-font-smoothing: antialiased;
}
Expand Down Expand Up @@ -151,6 +165,14 @@ a.hash-link {
filter: brightness(1);
}

[data-theme='dark'] .header-logo {
filter: brightness(0) invert(1);
}

[data-theme='dark'] .header-logo:hover {
filter: brightness(1);
}

.header-github-link:before {
content: '';
width: 24px;
Expand All @@ -172,6 +194,10 @@ body:not(.is-scrolling) .navbar {
height: 54px;
}

[data-theme='dark'] .navbar__logo img {
filter: invert(1);
}

.navbar__button {
background-color: var(--ifm-color-secondary);
padding: 0.625em 1.25em !important;
Expand Down Expand Up @@ -455,13 +481,15 @@ main .row:not(:has(.theme-doc-toc-desktop)) > .col {

.review-comment {
background-color: yellow;
color: #000000;
padding: 5px;
font-style: italic;
margin-bottom: 10px;
}

.code_summary {
background-color: #dee0e2 !important;
color: #000000;
padding: 5px;
border-radius: 5px;
border: 1px solid #e6e3e0;
Expand Down
Loading