Skip to content

Commit

Permalink
Increment font color contrast in light color-scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
danirus committed Dec 4, 2024
1 parent ca3bb8e commit d7ac5cb
Show file tree
Hide file tree
Showing 33 changed files with 46 additions and 42 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [0.7.3] - 2024-12-04

- Increment font color contrast in light color-scheme.

## [0.7.2] - 2024-12-04

- Raise exception when using sphinx-nefertiti with Sphinx<7.0.0.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sphinx-nefertiti",
"version": "0.7.2",
"version": "0.7.3",
"private": true,
"description": "Nefertiti is a theme for the Sphinx Documentation Generator.",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables-blue.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $dark: $gray-800 !default;
// Body ----------------------------------------------------------------

// scheme-color light.
$scheme-light-body-color: $gray-700;
$scheme-light-body-color: $black;
$scheme-light-body-hc-color: $gray-800;
$scheme-light-body-bg: $gray-200;
$scheme-light-neutral-bg: $blue-100;
Expand All @@ -79,7 +79,7 @@ $scheme-light-foot2-link1: get-color-contrast($scheme-light-foot2-bg, 15%);
$scheme-light-foot2-link2: get-color-contrast($scheme-light-foot2-bg, 30%);
$scheme-light-foot2-link-bg: color.scale($scheme-light-foot2-bg, $lightness: -10%, $saturation: 30%);
$scheme-light-foot2-link-hover: get-color-contrast($scheme-light-foot2-bg, 0%);
$scheme-light-headings-color: $gray-700;
$scheme-light-headings-color: $black;
$scheme-light-border-color: $gray-400;
$scheme-light-border-color-translucent: rgba($black, .175) !default;
$scheme-light-link-color: $blue-600;
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables-cyan.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $dark: $gray-800 !default;
// Body ----------------------------------------------------------------

// scheme-color light.
$scheme-light-body-color: $gray-700;
$scheme-light-body-color: $black;
$scheme-light-body-hc-color: $gray-800;
$scheme-light-body-bg: $gray-200;
$scheme-light-neutral-bg: $cyan-100;
Expand All @@ -80,7 +80,7 @@ $scheme-light-foot2-link1: get-color-contrast($scheme-light-foot2-bg, 15%);
$scheme-light-foot2-link2: get-color-contrast($scheme-light-foot2-bg, 30%);
$scheme-light-foot2-link-bg: color.scale($scheme-light-foot2-bg, $lightness: -10%, $saturation: 30%);
$scheme-light-foot2-link-hover: get-color-contrast($scheme-light-foot2-bg, 0%);
$scheme-light-headings-color: $gray-700;
$scheme-light-headings-color: $black;
$scheme-light-border-color: $gray-400;
$scheme-light-border-color-translucent: rgba($black, .175) !default;
$scheme-light-link-color: $cyan-700;
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables-green.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $dark: $gray-800 !default;
// Body ----------------------------------------------------------------

// scheme-color light.
$scheme-light-body-color: $gray-700;
$scheme-light-body-color: $black;
$scheme-light-body-hc-color: $gray-800;
$scheme-light-body-bg: $gray-200;
$scheme-light-neutral-bg: $green-100;
Expand All @@ -82,7 +82,7 @@ $scheme-light-foot2-link1: get-color-contrast($scheme-light-foot2-bg, 15%);
$scheme-light-foot2-link2: get-color-contrast($scheme-light-foot2-bg, 30%);
$scheme-light-foot2-link-bg: color.scale($scheme-light-foot2-bg, $lightness: -10%, $saturation: 30%);
$scheme-light-foot2-link-hover: get-color-contrast($scheme-light-foot2-bg, 0%);
$scheme-light-headings-color: $gray-700;
$scheme-light-headings-color: $black;
$scheme-light-border-color: $gray-400;
$scheme-light-border-color-translucent: rgba($black, .175) !default;
$scheme-light-link-color: $green-600;
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables-indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $dark: $gray-800 !default;
// Body ----------------------------------------------------------------

// scheme-color light.
$scheme-light-body-color: $gray-700;
$scheme-light-body-color: $black;
$scheme-light-body-hc-color: $gray-800;
$scheme-light-body-bg: $gray-200;
$scheme-light-neutral-bg: $indigo-100;
Expand All @@ -84,7 +84,7 @@ $scheme-light-foot2-link1: get-color-contrast($scheme-light-foot2-bg, 15%);
$scheme-light-foot2-link2: get-color-contrast($scheme-light-foot2-bg, 30%);
$scheme-light-foot2-link-bg: color.scale($scheme-light-foot2-bg, $lightness: -10%, $saturation: 30%);
$scheme-light-foot2-link-hover: get-color-contrast($scheme-light-foot2-bg, 0%);
$scheme-light-headings-color: $gray-700;
$scheme-light-headings-color: $black;
$scheme-light-border-color: $gray-400;
$scheme-light-border-color-translucent: rgba($black, .175) !default;
$scheme-light-link-color: $indigo-500;
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables-orange.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $dark: $gray-800 !default;
// Body ----------------------------------------------------------------

// scheme-color light.
$scheme-light-body-color: $gray-700;
$scheme-light-body-color: $black;
$scheme-light-body-hc-color: $gray-800;
$scheme-light-body-bg: $gray-200;
$scheme-light-neutral-bg: $orange-100;
Expand All @@ -84,7 +84,7 @@ $scheme-light-foot2-link1: get-color-contrast($scheme-light-foot2-bg, 15%);
$scheme-light-foot2-link2: get-color-contrast($scheme-light-foot2-bg, 30%);
$scheme-light-foot2-link-bg: color.scale($scheme-light-foot2-bg, $lightness: -10%, $saturation: 30%);
$scheme-light-foot2-link-hover: get-color-contrast($scheme-light-foot2-bg, 0%);
$scheme-light-headings-color: $gray-700;
$scheme-light-headings-color: $black;
$scheme-light-border-color: $gray-400;
$scheme-light-border-color-translucent: rgba($black, .175) !default;
$scheme-light-link-color: $orange-600;
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables-pink.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $dark: $gray-800 !default;
// Body ----------------------------------------------------------------

// scheme-color light.
$scheme-light-body-color: $gray-700;
$scheme-light-body-color: $black;
$scheme-light-body-hc-color: $gray-800;
$scheme-light-body-bg: $gray-200;
$scheme-light-neutral-bg: $pink-100;
Expand All @@ -85,7 +85,7 @@ $scheme-light-foot2-link1: get-color-contrast($scheme-light-foot2-bg, 15%);
$scheme-light-foot2-link2: get-color-contrast($scheme-light-foot2-bg, 30%);
$scheme-light-foot2-link-bg: color.scale($scheme-light-foot2-bg, $lightness: -10%, $saturation: 30%);
$scheme-light-foot2-link-hover: get-color-contrast($scheme-light-foot2-bg, 0%);
$scheme-light-headings-color: $gray-700;
$scheme-light-headings-color: $black;
$scheme-light-border-color: $gray-400;
$scheme-light-border-color-translucent: rgba($black, .175) !default;
$scheme-light-link-color: $pink-600;
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables-purple.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $dark: $gray-800 !default;
// Body ----------------------------------------------------------------

// scheme-color light.
$scheme-light-body-color: $gray-700;
$scheme-light-body-color: $black;
$scheme-light-body-hc-color: $gray-800;
$scheme-light-body-bg: $gray-200;
$scheme-light-neutral-bg: $purple-100;
Expand All @@ -84,7 +84,7 @@ $scheme-light-foot2-link1: get-color-contrast($scheme-light-foot2-bg, 15%);
$scheme-light-foot2-link2: get-color-contrast($scheme-light-foot2-bg, 30%);
$scheme-light-foot2-link-bg: color.scale($scheme-light-foot2-bg, $lightness: -10%, $saturation: 30%);
$scheme-light-foot2-link-hover: get-color-contrast($scheme-light-foot2-bg, 0%);
$scheme-light-headings-color: $gray-700;
$scheme-light-headings-color: $black;
$scheme-light-border-color: $gray-400;
$scheme-light-border-color-translucent: rgba($black, .175) !default;
$scheme-light-link-color: $purple-500;
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables-red.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $dark: $gray-800 !default;
// Body ----------------------------------------------------------------

// scheme-color light.
$scheme-light-body-color: $gray-700;
$scheme-light-body-color: $black;
$scheme-light-body-hc-color: $gray-800;
$scheme-light-body-bg: $gray-200;
$scheme-light-neutral-bg: $red-100;
Expand All @@ -83,7 +83,7 @@ $scheme-light-foot2-link1: get-color-contrast($scheme-light-foot2-bg, 15%);
$scheme-light-foot2-link2: get-color-contrast($scheme-light-foot2-bg, 30%);
$scheme-light-foot2-link-bg: color.scale($scheme-light-foot2-bg, $lightness: -10%, $saturation: 30%);
$scheme-light-foot2-link-hover: get-color-contrast($scheme-light-foot2-bg, 0%);
$scheme-light-headings-color: $gray-700;
$scheme-light-headings-color: $black;
$scheme-light-border-color: $gray-400;
$scheme-light-border-color-translucent: rgba($black, .175) !default;
$scheme-light-link-color: $red-600;
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables-teal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $dark: $gray-800 !default;
// Body ----------------------------------------------------------------

// scheme-color light.
$scheme-light-body-color: $gray-700;
$scheme-light-body-color: $black;
$scheme-light-body-hc-color: $gray-800;
$scheme-light-body-bg: $gray-200;
$scheme-light-neutral-bg: $teal-100;
Expand All @@ -82,7 +82,7 @@ $scheme-light-foot2-link1: get-color-contrast($scheme-light-foot2-bg, 15%);
$scheme-light-foot2-link2: get-color-contrast($scheme-light-foot2-bg, 30%);
$scheme-light-foot2-link-bg: color.scale($scheme-light-foot2-bg, $lightness: -10%, $saturation: 30%);
$scheme-light-foot2-link-hover: get-color-contrast($scheme-light-foot2-bg, 0%);
$scheme-light-headings-color: $gray-700;
$scheme-light-headings-color: $black;
$scheme-light-border-color: $gray-400;
$scheme-light-border-color-translucent: rgba($black, .175) !default;
$scheme-light-link-color: $teal-600;
Expand Down
4 changes: 2 additions & 2 deletions scss/_variables-yellow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $dark: $gray-800 !default;
// Body ----------------------------------------------------------------

// scheme-color light.
$scheme-light-body-color: $gray-700;
$scheme-light-body-color: $black;
$scheme-light-body-hc-color: $gray-800;
$scheme-light-body-bg: $gray-200;
$scheme-light-neutral-bg: $yellow-100;
Expand All @@ -82,7 +82,7 @@ $scheme-light-foot2-link1: get-color-contrast($scheme-light-foot2-bg, 15%);
$scheme-light-foot2-link2: get-color-contrast($scheme-light-foot2-bg, 30%);
$scheme-light-foot2-link-bg: color.scale($scheme-light-foot2-bg, $lightness: -10%, $saturation: 30%);
$scheme-light-foot2-link-hover: get-color-contrast($scheme-light-foot2-bg, 0%);
$scheme-light-headings-color: $gray-700;
$scheme-light-headings-color: $black;
$scheme-light-border-color: $gray-400;
$scheme-light-border-color-translucent: rgba($black, .175) !default;
$scheme-light-link-color: $yellow-700;
Expand Down
2 changes: 1 addition & 1 deletion sphinx_nefertiti/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from sphinx_nefertiti import colorsets, docsver, fonts, links, pygments

__version__ = "0.7.2"
__version__ = "0.7.3"

pages_wo_index = ["genindex", "search"]

Expand Down
2 changes: 1 addition & 1 deletion sphinx_nefertiti/colorsets/sphinx-nefertiti-blue.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sphinx_nefertiti/colorsets/sphinx-nefertiti-green.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sphinx_nefertiti/colorsets/sphinx-nefertiti-indigo.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sphinx_nefertiti/colorsets/sphinx-nefertiti-orange.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sphinx_nefertiti/colorsets/sphinx-nefertiti-pink.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sphinx_nefertiti/colorsets/sphinx-nefertiti-purple.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sphinx_nefertiti/colorsets/sphinx-nefertiti-red.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sphinx_nefertiti/colorsets/sphinx-nefertiti-teal.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sphinx_nefertiti/colorsets/sphinx-nefertiti-yellow.min.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit d7ac5cb

Please sign in to comment.