Sha256: 8503ef8c77042b18924140fbae515d8f24f3958712fa41f0c35cc9c61e11fcdd

Contents?: true

Size: 1.45 KB

Versions: 115

Compression:

Stored size: 1.45 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,
  error: $error,
  success: $text_lt_success_sm,
);

$pb_dark_body_colors: (
  default: $text_dk_default,
  light: $text_dk_light,
  lighter: $text_dk_lighter,
  link: $active_dark,
  error: $error,
  success: $text_dk_success_sm,
);

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

$pb_dark_body_status: (
  default: $text_dk_default,
  negative: $error_dark,
  positive: $text_dk_success_sm,
);

@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_error {
  @include pb_body($error_dark_body);
}

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

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5437 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.11.1.pre.alpha.PBNTR719listdraggablesimple5432 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.11.1.pre.alpha.PBNTR768stickyrightcolumn5431 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.12.0.pre.rc.6 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5415 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5413 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.12.0.pre.rc.5 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5409 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5400 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392 app/pb_kits/playbook/pb_body/_body_mixins.scss