Skip to content

Commit

Permalink
Tweak theme color scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
kimikage committed Oct 30, 2020
1 parent 56a1e81 commit b859cb2
Show file tree
Hide file tree
Showing 5 changed files with 488 additions and 486 deletions.
25 changes: 12 additions & 13 deletions assets/html/scss/documenter-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,35 @@ $bulmaswatch-import-font: false;

@import "darkly/variables";

$body-size: 16px;
$border-width: 1px;

@import "documenter/utilities";
@import "documenter/variables";

$documenter-is-dark-theme: true;

$family-sans-serif: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
$family-monospace: 'Roboto Mono', 'SFMono-Regular', 'Menlo', 'Consolas', 'Liberation Mono', 'DejaVu Sans Mono', monospace;

$info: #024c7d;
$success: #008438;
$warning: #ad8100;
$danger: #9e1b0d;
$turquoise: #137886;
$info: darken($blue, 12);
$success: darken($green, 15);
$warning: darken($yellow, 32);
$danger: darken($red, 11);
$compat: darken($turquoise, 15);

$admonition-background: (
'default': $background, 'info': $background, 'success': $background, 'warning': $background,
'danger': $background, 'compat': $background
);
$admonition-header-background: ('default': $grey);

$body-size: 16px;
$documenter-sidebar-background: $grey-darker;
$shadow: #171717;
$documenter-sidebar-color: $text;
$lightness-unit: -8%;

// $docstring-pre-background: adjust-color($background, $lightness: 5);
$border-width: 1px;

@import "documenter/utilities";
@import "documenter/variables";

$code: $red;
$code: #ff6655;
$code-background: rgba(255, 255, 255, 0.05);

$documenter-docstring-shadow: none;
Expand Down
11 changes: 7 additions & 4 deletions assets/html/scss/documenter/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
// Colors
// ------
$primary: #4eb5de !default;
$red: #da0b00 !default;
$blue: #2e63b8 !default;
$green: #22c35b !default;
$turquoise: #1db5c9 !default;
$red: #d6180b;
$blue: #0c6abd;
$green: #22c35b;
$yellow: #ffd54c;
$turquoise: #1db5c9;
$purple: #bf69e7;
$text: #222222 !default;
$text-strong: $text !default;
$compat: $turquoise !default;
$code: #000000 !default;
// The inline <code> tags get rendered on various different backgrounds. Therefore, in order
// to make sure it always renders nicely, we'll just use transparent black color to make the
Expand Down
2 changes: 1 addition & 1 deletion assets/html/scss/documenter/components/_admonition.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Original copyright (c) 2019 Jeremy Thomas, The MIT License (MIT)
$admonition-colors: (
'default': $grey-darker, 'info': $info, 'success': $success, 'warning': $warning,
'danger': $danger, 'compat': $turquoise,
'danger': $danger, 'compat': $compat,
) !default;

$admonition-background: () !default;
Expand Down
Loading

0 comments on commit b859cb2

Please sign in to comment.