Sha256: 48d7e4afd02c5a93313212164d630ab46fdc66c41b1db44da70782179995133d

Contents?: true

Size: 776 Bytes

Versions: 789

Compression:

Stored size: 776 Bytes

Contents

// Color Helper Utilities

$transition-speed: 0.2s;

@function shade($color, $percentage) {
  @return mix($charcoal, $color, $percentage);
}

@function dim($color, $percentage) {
  @return mix($bg_dark, $color, $percentage);
}

@function lightenText($color, $threshold: 47) {
  $text_color: $text_lt_default;
  @if ((type-of($color) == color) and (lightness($color) < $threshold)) {
    $text_color: $text_dk_default;
  }
  @return $text_color;
}


// Generate Color Helper Classes

@mixin background-color($colors-list) {
  @each $name, $color in $colors-list {
    .pb_web_#{$name} {
      background-color: $color !important;
    }
  }
}


@mixin text-color($colors-list) {
  @each $name, $color in $colors-list {
    .#{$name} {
      color: $color !important;
    }
  }
}

Version data entries

789 entries across 789 versions & 1 rubygems

Version Path
playbook_ui-14.11.0.pre.rc.17 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.11.0 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.11.0.pre.rc.16 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.11.0.pre.rc.15 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.11.0.pre.rc.14 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.11.0.pre.rc.13 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.11.0.pre.rc.12 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.11.0.pre.rc.11 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.11.0.pre.rc.10 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5214 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5213 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5210 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5208 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5207 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.10.0.pre.alpha.play16825206 app/pb_kits/playbook/utilities/_colors.scss
playbook_ui-14.10.0.pre.alpha.play1662cssbargraph5204 app/pb_kits/playbook/utilities/_colors.scss