Sha256: 851c9311618a7e4206476ccc45bd768d8e35a4cd8a2ec46e9673d9cb41a790dc

Contents?: true

Size: 1.26 KB

Versions: 231

Compression:

Stored size: 1.26 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,
);

$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

231 entries across 231 versions & 1 rubygems

Version Path
playbook_ui-9.3.0.alpha.inline3 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-9.3.0.pre.alpha.password.strength.2 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-9.3.0.alpha.inline2 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-9.3.0.alpha.inline1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-9.3.0.pre.alpha.password.strength.1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-9.3.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-9.2.2.pre.alpha.margin app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-9.2.2 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-9.2.1 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-9.2.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-9.1.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-9.0.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-8.3.0.alpha.select.pre.margin app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-8.3.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-8.2.1.pre.alpha5 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-8.2.1.pre.alpha4 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-8.2.1.alpha.iconacc app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-8.2.1.pre.alpha3 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-8.2.1.pre.alpha2 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-8.3.0.deps2 app/pb_kits/playbook/pb_body/_body_mixins.scss