Sha256: 76c53ea3ee4c1918e953ea75c1b8bb7617edb8532b1b021175e7da68c7576d2e

Contents?: true

Size: 1.48 KB

Versions: 11

Compression:

Stored size: 1.48 KB

Contents

@use "sass:list";

@use "../utilities/initial-variables" as iv;
@use "../utilities/css-variables" as cv;
@use "../utilities/derived-variables" as dv;
@use "setup";

// The main lightness of this theme
$scheme-main-l: 9%;
$background-l: 14%;
$text-l: 71%;

// The main scheme color, used to make calculations
$scheme-main: hsl(iv.$scheme-h, iv.$scheme-s, $scheme-main-l);
$background: hsl(iv.$scheme-h, iv.$scheme-s, $background-l);
$text: hsl(iv.$scheme-h, iv.$scheme-s, $text-l);

@mixin dark-theme {
  @each $name, $color in dv.$colors {
    $base: $color;

    @if type-of($color == "list") {
      $base: list.nth($color, 1);
    }

    @include cv.generate-on-scheme-colors($name, $base, $scheme-main);
  }

  @include cv.register-vars(
    (
      "scheme-brightness": "dark",
      "scheme-main-l": $scheme-main-l,
      "scheme-main-bis-l": $scheme-main-l + 2%,
      "scheme-main-ter-l": $scheme-main-l + 4%,
      "soft-l": iv.$dark-l,
      "bold-l": iv.$light-l,
      "soft-invert-l": iv.$light-l,
      "bold-invert-l": iv.$dark-l,
      "background-l": $background-l,
      "border-weak-l": 21%,
      "border-l": 24%,
      "text-weak-l": 53%,
      "text-l": $text-l,
      "text-strong-l": 93%,
      "text-title-l": 100%,
      "hover-background-l-delta": 5%,
      "active-background-l-delta": 10%,
      "hover-border-l-delta": 10%,
      "active-border-l-delta": 20%,
      "hover-color-l-delta": 5%,
      "active-color-l-delta": 10%,
    )
  );

  @include cv.register-hsl("shadow", white);
}

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
mere-blog-theme-1.0.1 node_modules/bulma/sass/themes/dark.scss
mere-blog-theme-1.0 node_modules/bulma/sass/themes/dark.scss
bulma-clean-theme-1.1.0 node_modules/bulma/sass/themes/dark.scss
bulma-clean-theme-1.0.4 node_modules/bulma/sass/themes/dark.scss
bulma-rails-1.0.2 app/assets/stylesheets/sass/themes/dark.scss
bulma-clean-theme-1.0.3 node_modules/bulma/sass/themes/dark.scss
bulma-rails-1.0.1 app/assets/stylesheets/sass/themes/dark.scss
bulma-clean-theme-1.0.0 node_modules/bulma/sass/themes/dark.scss
bulma-clean-theme-1.0.0.beta.2 node_modules/bulma/sass/themes/dark.scss
bulma-clean-theme-1.0.0.beta.1 node_modules/bulma/sass/themes/dark.scss
bulma-rails-1.0.0 app/assets/stylesheets/sass/themes/dark.scss