templates/website/includes/css-config.html.twig line 1

Open in your IDE?
  1. :root {
  2.     --config-color-primary: {{ getConfig('primary_color') }};
  3.     --config-color-secondary: {{ getConfig('secondary_color') }};
  4.     --flat: {{ getConfig('flat_design')? 0 : 1 }};
  5.     --config-font-family: {{ getConfig('website_font_family')? getConfig('website_font_family')|raw : 'Lato, Arial, sans-serif' }};
  6.     {# DARK THEME #}
  7.     {% if isDarkTheme and not preventDarkTheme|default(false) %}
  8.         --config-color-tx:     #fff;
  9.         --config-color-tx-alt: #666;
  10.         --config-color-tx-sec: #aaa;
  11.         --config-color-bg:     #101010;
  12.         --config-color-bg-alt: #101010;
  13.         --config-color-bg-img: #333;
  14.         --config-color-bg-box: #151515;
  15.         --config-color-borda:  #444;
  16.         {% set hsl = HEXtoHSL(getConfig('primary_color')) %}
  17.         {# Background decoration #}
  18.         --config-color-hue: {{ hsl.0 }};
  19.         {# Achromatic #}
  20.         {% if hsl.1 == 0 %}
  21.             --config-color-saturation-1: 0%;
  22.             --config-color-saturation-2: 0%;
  23.         {# Chromatic #}
  24.         {% else %}
  25.             --config-color-saturation-1: 74%;
  26.             --config-color-saturation-2: 86%;
  27.         {% endif %}
  28.     {# LIGHT THEME #}
  29.     {% else %}
  30.         --config-color-tx:     #666;
  31.         --config-color-tx-alt: #fff;
  32.         --config-color-tx-sec: #bbb;
  33.         --config-color-bg:     #fff;
  34.         --config-color-bg-alt: #fbf7f6;
  35.         --config-color-bg-img: #e6e6e6;
  36.         --config-color-bg-box: #fff;
  37.         --config-color-borda:  #ccc;
  38.     {% endif %}
  39. }