Skip to content

Commit

Permalink
docs: Implement SDS colors for dark mode (#1131)
Browse files Browse the repository at this point in the history
Changes styling of page, text link and code snippets. Accordion styling
is not yet addressed.
  • Loading branch information
melissawm authored Sep 11, 2024
1 parent 721b7db commit ca3962a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* Main textual elements */

html, body {
--md-text-font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Helvetica, Arial, sans-serif;
}
Expand All @@ -10,8 +9,17 @@ html, body {
font-family: "Inter";
}

.md-typeset a {
color: rgb(1 66 164);
[data-md-color-scheme="default"] {
--md-primary-fg-color: #1A6CEF;
--md-code-bg-color: #F6F6F6;
--md-code-fg-color: #000000;
}

[data-md-color-scheme="slate"] {
--md-default-bg-color: #101010;
--md-primary-fg-color: #A2C9FF;
--md-code-bg-color: #494949;
--md-code-fg-color: #FFFFFF;
}

/* Header */
Expand Down

0 comments on commit ca3962a

Please sign in to comment.