Sha256: 999b49b0bd3a67f4006cd02ad50d23109754de6309876e16fdfce56596a68c48

Contents?: true

Size: 1.29 KB

Versions: 36

Compression:

Stored size: 1.29 KB

Contents

@import "../tokens/colors";
@import "../tokens/line_height";
@import "../tokens/typography";

$pb_body_colors: (
  default:        $text_lt_default,
  light:          $text_lt_light,
  lighter:        $text_lt_lighter,
  link:           $primary,
);

$pb_dark_body_colors: (
  default:        $text_dk_default,
  light:          $text_dk_light,
  lighter:        $text_dk_lighter,
);

// Order is important here!
$pb_body_status: (
  default:        $text_lt_default,
  negative:       $error,
  dark_negative:  $error_dark_body,
  positive:       $success,
);

@mixin pb_body($color: $text_lt_default) {
  line-height: $lh_tight;
  color: $color;
  font-size: $text_default;
  font-weight: $regular;
  font-family: $font-family-base;
}


// Colors ======================
@mixin pb_body_light {
  @include pb_body($text_lt_light);
}

@mixin pb_body_lighter {
  @include pb_body($text_lt_lighter);
}

@mixin pb_body_dark {
  @include pb_body($text_dk_default);
}

@mixin pb_body_light_dark {
  @include pb_body($text_dk_light);
}

@mixin pb_body_lighter_dark {
  @include pb_body($text_dk_lighter);
}

// Statuses =====================
@mixin pb_body_negative {
  @include pb_body($error);
}

@mixin pb_body_dark_negative {
  @include pb_body($error_dark_body);
}

@mixin pb_body_positive {
  @include pb_body($success);
}

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
playbook_ui-11.0.0.pre.alpha.2 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-11.0.0.pre.alpha.1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.26.1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.27.0.pre.lazysizes1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.27.0.pre.datepicker1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.26.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.26.0.pre.alpha5 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.26.0.pre.rc1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.26.0.pre.alpha.sticky1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.26.0.pre.alpha.display1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.26.0.pre.alpha3 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.25.1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.26.0.pre.alpha1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.25.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.25.0.pre.alpha3 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.25.0.pre.treeshaking1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.24.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.24.0.pre.alpha1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.23.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-10.23.0.pre.alpha2 app/pb_kits/playbook/pb_body/_body_mixins.scss