Sha256: 6d077049f56ac153af0e7429b7620aea3101efb6bdeeee4f8d9c849676fb1ffe

Contents?: true

Size: 1.39 KB

Versions: 131

Compression:

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

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

// Order is important here!
$pb_body_status: (
  default:        $text_lt_default,
  negative:       $error,
  dark_error:     $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_error {
  @include pb_body($error_dark_body);
}

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

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
playbook_ui-12.15.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.14.0.pre.alpha.lightboxcurrentphotoprop460 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.14.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown457 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.14.0.pre.alpha.PLAY603datepickerquickpickinputpresetdropdown456 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.14.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.13.0.pre.alpha.PLAY693tooltipwrongbg440 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.13.0.pre.alpha.addingProductTokens439 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.13.0.pre.alpha.PLAY705phonenumberkit438 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.13.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.12.0.pre.alpha.PLAY697sandpacklayoutstyles413 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.12.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.11.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.10.0.pre.alpha.PLAY705phonenumberreturn372 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.10.0.pre.alpha.PLAY677richtexteditorts370 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.10.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.9.1.pre.alpha.play664tiptapinvestigation353 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.9.1.pre.alpha.PLAY689bugtxtinputlabel346 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.9.1.pre.alpha.menucleanup345 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.9.1.pre.alpha.menucleanup342 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.9.1 app/pb_kits/playbook/pb_body/_body_mixins.scss