Sha256: 5da8c985bf7c71c44f2b5d05f42a0afb26e41282e9690b6f20780fbe50df56e8

Contents?: true

Size: 1.46 KB

Versions: 46

Compression:

Stored size: 1.46 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:           $primary_action_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,
);

@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

46 entries across 46 versions & 1 rubygems

Version Path
playbook_ui-13.2.0.pre.alpha.PLAY986dateTimeRounding1150 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-13.2.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-13.1.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-13.0.0.pre.alpha.PLAY966collapsiblenav41129 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-13.0.0.pre.alpha.PLAY966collapsiblenav41128 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-13.0.0.pre.alpha.PLAY966collapsiblenav41126 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-13.0.0.pre.alpha.salesbookmismatchingdate1120 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.39.0.pre.alpha.salesbookmismatchingdate1117 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-13.0.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.39.0.pre.alpha.PLAY966collapsiblenav41115 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.39.0.pre.alpha.salesbookmismatchingdate1114 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.39.0 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.38.0.pre.alpha.PBNTR78selectkitmultipleprop1094 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.38.0.pre.alpha.PLAY932removemomentqp1088 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.38.0.pre.alpha.PLAY966collapsiblenav41086 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.38.0.pre.alpha.audiencesalpha1083 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.38.0.pre.alpha.PLAY966collapsiblenav41082 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.38.0.pre.alpha.PLAYaddingdatapropselectkit1080 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.37.0.pre.alpha.PLAY951collapsiblenav31078 app/pb_kits/playbook/pb_body/_body_mixins.scss
playbook_ui-12.38.0.pre.alpha.playbook123801077 app/pb_kits/playbook/pb_body/_body_mixins.scss