Skip to content

Commit

Permalink
Merge pull request #220 from akcano/main
Browse files Browse the repository at this point in the history
adjust colors for accessibility
  • Loading branch information
akcano committed May 3, 2024
2 parents 9926345 + 2091e93 commit e671726
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .sphinx/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,11 @@ p code.literal {
.admonition p code.literal {
font-size: var(--admonition-font-size);
}

.highlight .s, .highlight .s1, .highlight .s2 {
color: #3F8100;
}

.highlight .o {
color: #BB5400;
}
12 changes: 5 additions & 7 deletions .sphinx/_static/furo_colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body {
--color-background-hover: #f2f2f2;
--color-brand-primary: #111;
--color-brand-content: #06C;
--color-api-background: #cdcdcd;
--color-api-background: #E3E3E3;
--color-inline-code-background: rgba(0,0,0,.03);
--color-sidebar-link-text: #111;
--color-sidebar-item-background--current: #ebebeb;
Expand All @@ -26,8 +26,8 @@ body {
--color-admonition-title--important: #C7162B;
--color-admonition-title--caution: #F99B11;
--color-highlighted-background: #EBEBEB;
--color-link-underline: var(--color-background-primary);
--color-link-underline--hover: var(--color-background-primary);
--color-link-underline: var(--color-link);
--color-link-underline--hover: var(--color-link);
--color-version-popup: #772953;
}

Expand All @@ -54,12 +54,11 @@ body {
--color-admonition-title--important: #C7162B;
--color-admonition-title--caution: #F99B11;
--color-highlighted-background: #666;
--color-link-underline: var(--color-background-primary);
--color-link-underline--hover: var(--color-background-primary);
--color-version-popup: #F29879;
}
@media (prefers-color-scheme: dark) {
body:not([data-theme="light"]) {
--color-api-background: #A4A4A4;
--color-code-background: #202020;
--color-code-foreground: #d0d0d0;
--color-foreground-secondary: var(--color-foreground-primary);
Expand All @@ -81,8 +80,7 @@ body {
--color-admonition-title--important: #C7162B;
--color-admonition-title--caution: #F99B11;
--color-highlighted-background: #666;
--color-link-underline: var(--color-background-primary);
--color-link-underline--hover: var(--color-background-primary);
--color-link: #F9FCFF;
--color-version-popup: #F29879;
}
}
Expand Down

0 comments on commit e671726

Please sign in to comment.