1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-19 08:45:55 -05:00
notes/docs/customization.md
2018-11-18 11:07:45 -05:00

1.9 KiB
Raw Blame History

layout title nav_order
default Customization 6

Customization

{:.no_toc}

Table of contents

{: .no_toc .text-delta }

  1. TOC {:toc}

Color schemes

{: .d-inline-block :}

New {: .label .label-green :}

Just the Docs supports two color schemes: light (default), and dark.

To enable a color scheme, set the color_scheme parameter in your site's _config.yml file:

Example

{: no_toc }

# Color scheme currently only supports "dark" or nil (default)
color_scheme: "dark"

Preview dark color scheme

Specific visual customization

To customize your sites aesthetic, open _sass/custom/custom.scss in your editor to see if there is a variable that you can override. Most styles like fonts, colors, spacing, etc.. are derived from these variables. To override a specific variable, uncomment out its line and change its value.

For example, to change the link color from the purple default to blue, open _sass/custom/custom.css and find the $link-color variable on line 50. Uncomment it out, and change it's value to our $blue-000 variable, or another shade of your choosing.

Example

{: no_toc }

// ...
//
// $body-text-color: $grey-dk-100;
// $body-heading-color: $grey-dk-300;
$link-color: $blue-000;
//
// ...

Note: Editing the variables directly in _sass/support/variables.scss is not recommended and can cause other dependancies to fail.