Skip to content

Commit

Permalink
[Dark mode] Factor out code-dark styles for reuse (google#1959)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Apr 30, 2024
1 parent d86006e commit e59bb58
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
10 changes: 10 additions & 0 deletions assets/scss/_code-dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[data-bs-theme="light"] {
@import 'chroma/tango';
}

[data-bs-theme="dark"] {
@import 'chroma/onedark';
.chroma {
background-color: var(--td-pre-bg);
}
}
File renamed without changes.
File renamed without changes.
11 changes: 1 addition & 10 deletions userguide/assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
[data-bs-theme="light"] {
@import 'chroma-tango';
}

[data-bs-theme="dark"] {
@import 'chroma-onedark';
.chroma {
background-color: var(--td-pre-bg);
}
}
@import 'code-dark';

0 comments on commit e59bb58

Please sign in to comment.