Skip to content

Commit

Permalink
fix(v4): rename parameters in dark mode (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
atsuyaw authored Dec 11, 2023
1 parent 4112324 commit aff9d89
Showing 1 changed file with 30 additions and 41 deletions.
71 changes: 30 additions & 41 deletions v4/assets/sass/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,48 +64,37 @@ $footer-headline-color: {{ .Param "footerHeadlineColor" | default "#444" }};
// Base theme styling
@import 'bilberry-hugo-theme';

// The variables below are processed in './layouts/partials/css.html'
// when it's executed as template by Hugo pipes.

// Width of the main content area where the the actual content's width is $site-width - 100px
.dark-mode {
$site-width: {{ .Param "siteWidth" | default "800px" }};

$headline-font: {{ .Param "headlineFont" | default "'Comfortaa',sans-serif" }};
$content-font: {{ .Param "contentFont" | default "'Open Sans',sans-serif" }};
$article-footer-font: {{ .Param "articleFooterFont" | default "'Fira Code',monospace" }};
$code-block-font: {{ .Param "codeBlockFont" | default "'Fira Code',monospace" }};

$page-background-color: {{ .Param "pageBackgroundColor" | default "#333" }};
$base-color: {{ .Param "baseColor" | default "#1d1f38" }};
$special-color: {{ .Param "specialColor" | default "#2D3642" }};
$highlight-color: {{ .Param "highlightColor" | default "saturate(#5c8b59,20)" }};
$text-color: {{ .Param "textColor" | default "darken(invert(#222), 20)" }};
$blockquote-background-color: {{ .Param "blockquoteBackgroundColor" | default "rgba(99,110,110,0.2)" }};

$nav-background-color: {{ .Param "navBackgroundColor" | default "$special-color" }};
$nav-text-color: {{ .Param "navTextColor" | default "darken(#f1f1f1,20)" }};
$algolia-search-box-color: {{ .Param "algoliaSearchBoxColor" | default "$nav-text-color" }};
$algolia-search-box-icon-color: {{ .Param "algoliaSearchBoxIconColor" | default "#888" }};
$algolia-search-box-background-color: {{ .Param "algoliaSearchBoxBackgroundColor" | default "#222" }};
$algolia-border-color: {{ .Param "algoliaBorderColor" | default "#e4e4e4" }};

$header-text-color: {{ .Param "headerTextColor" | default "$nav-text-color" }};
$logo-color: {{ .Param "logoColor" | default "darken(#f1f1f1, 60)" }};
$bubble-color: {{ .Param "bubbleColor" | default "$logo-color" }};
$bubble-background-color: {{ .Param "bubbleBackgroundColor" | default "#373737" }};
$bubble-hover-color: {{ .Param "bubbleHoverColor" | default "$highlight-color" }};
$connection-line-color: {{ .Param "connectionLineColor" | default "#444" }};
$connection-dot-color: {{ .Param "connectionDotColor" | default "#444" }};

$article-background-color: {{ .Param "articleBackgroundColor" | default "#222" }};
$meta-text-color: {{ .Param "metaTextColor" | default "darken(#f1f1f1,40)" }};
$meta-border-color: {{ .Param "metaBorderColor" | default "#545454" }};
$continue-reading-hover-color: {{ .Param "continueReadingHoverColor" | default "$meta-text-color" }};

$footer-border-color: {{ .Param "footerBorderColor" | default "#444" }};
$footer-background-color: {{ .Param "footerBackgroundColor" | default "#222" }};
$footer-headline-color: {{ .Param "footerHeadlineColor" | default "darken(invert(#444),5)" }};
$page-background-color: {{ .Param "dkPageBackgroundColor" | default "#333" }};
$base-color: {{ .Param "dkBaseColor" | default "#1d1f38" }};
$special-color: {{ .Param "dkSpecialColor" | default "#2D3642" }};
$highlight-color: {{ .Param "dkHighlightColor" | default "saturate(#5c8b59,20)" }};
$text-color: {{ .Param "dkTextColor" | default "darken(invert(#222), 20)" }};
$blockquote-background-color: {{ .Param "dkBlockquoteBackgroundColor" | default "rgba(99,110,110,0.2)" }};

$nav-background-color: {{ .Param "dkNavBackgroundColor" | default "$special-color" }};
$nav-text-color: {{ .Param "dkNavTextColor" | default "darken(#f1f1f1,20)" }};
$algolia-search-box-color: {{ .Param "dkAlgoliaSearchBoxColor" | default "$nav-text-color" }};
$algolia-search-box-icon-color: {{ .Param "dkAlgoliaSearchBoxIconColor" | default "#888" }};
$algolia-search-box-background-color: {{ .Param "dkAlgoliaSearchBoxBackgroundColor" | default "#222" }};
$algolia-border-color: {{ .Param "dkAlgoliaBorderColor" | default "#e4e4e4" }};

$header-text-color: {{ .Param "dkHeaderTextColor" | default "$nav-text-color" }};
$logo-color: {{ .Param "dkLogoColor" | default "darken(#f1f1f1, 60)" }};
$bubble-color: {{ .Param "dkBubbleColor" | default "$logo-color" }};
$bubble-background-color: {{ .Param "dkBubbleBackgroundColor" | default "#373737" }};
$bubble-hover-color: {{ .Param "dkBubbleHoverColor" | default "$highlight-color" }};
$connection-line-color: {{ .Param "dkConnectionLineColor" | default "#444" }};
$connection-dot-color: {{ .Param "dkConnectionDotColor" | default "#444" }};

$article-background-color: {{ .Param "dkArticleBackgroundColor" | default "#222" }};
$meta-text-color: {{ .Param "dkMetaTextColor" | default "darken(#f1f1f1,40)" }};
$meta-border-color: {{ .Param "dkMetaBorderColor" | default "#545454" }};
$continue-reading-hover-color: {{ .Param "dkContinueReadingHoverColor" | default "$meta-text-color" }};

$footer-border-color: {{ .Param "dkFooterBorderColor" | default "#444" }};
$footer-background-color: {{ .Param "dkFooterBackgroundColor" | default "#222" }};
$footer-headline-color: {{ .Param "dkFooterHeadlineColor" | default "darken(invert(#444),5)" }};

@mixin featuredImage() {
.featured-image {
Expand Down

0 comments on commit aff9d89

Please sign in to comment.