Sha256: 5ed260f645890f82de2c589b17df1fce464b9686a4bb51987efdba79b26a972b

Contents?: true

Size: 851 Bytes

Versions: 2

Compression:

Stored size: 851 Bytes

Contents

{% assign color       = include.color       %}
{% assign theme_color = include.theme_color %}

html {
  --accent-color: {{ color }};
  --accent-color-faded: #{fade-out({{ color }}, 0.5)};
  --accent-color-highlight: #{fade-out({{ color }}, 0.9)};
  --accent-color-darkened: #{darken({{ color }}, 7.5%)};
  --theme-color: {{ theme_color }};
  {% if site.github and site.hydejack.dart_sass_2_compat != true %}
  --dark-mode-body-bg: #{hsl(hue({{ theme_color }}), (saturation({{ theme_color }}) / 8), 17.5%)};
  --dark-mode-border-color: #{hsl(hue({{ theme_color }}), (saturation({{ theme_color }}) / 8), 22.5%)};
  {% else %}
  --dark-mode-body-bg: #{hsl(hue({{ theme_color }}), calc(saturation({{ theme_color }}) / 8), 17.5%)};
  --dark-mode-border-color: #{hsl(hue({{ theme_color }}), calc(saturation({{ theme_color }}) / 8), 22.5%)};
  {% endif %}
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-hydejack-9.2.1 _includes/styles/page-style.scss
jekyll-theme-hydejack-9.2.0 _includes/styles/page-style.scss