Skip to content

Commit

Permalink
Move tokens and mixin to typography partial
Browse files Browse the repository at this point in the history
  • Loading branch information
kangaree committed Oct 28, 2024
1 parent f874dab commit b5c25be
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 32 deletions.
32 changes: 0 additions & 32 deletions playbook/app/pb_kits/playbook/pb_link/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,6 @@
@import "../tokens/typography";
@import "../tokens/border_radius";

$pb_link_colors: (
default: $primary_action,
body: $text_lt_default,
muted: $text_lt_light,
destructive: $error,
);

$pb_link_hover_colors: (
default: $text_lt_default,
body: $primary_action,
muted: $text_lt_default,
destructive: $text_lt_default,
);

$pb_dark_link_colors: (
default: $active_dark,
body: $text_dk_default,
muted: $text_dk_light,
destructive: $error_dark,
);

$pb_dark_link_hover_colors: (
default: $text_dk_default,
body: $active_dark,
muted: $text_dk_default,
destructive: $text_dk_default,
);

@mixin pb_link($color: $primary_action) {
color: $color;
}

[class^=pb_link_kit]{
@include pb_link($primary);
&:hover {
Expand Down
33 changes: 33 additions & 0 deletions playbook/app/pb_kits/playbook/tokens/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,36 @@ $boldest: 700 !default;
$bolder: 700 !default;
$light: 300 !default;
$lighter: 300 !default;

/* Link Colors */
$pb_link_colors: (
default: $primary_action,
body: $text_lt_default,
muted: $text_lt_light,
destructive: $error,
);

$pb_link_hover_colors: (
default: $text_lt_default,
body: $primary_action,
muted: $text_lt_default,
destructive: $text_lt_default,
);

$pb_dark_link_colors: (
default: $active_dark,
body: $text_dk_default,
muted: $text_dk_light,
destructive: $error_dark,
);

$pb_dark_link_hover_colors: (
default: $text_dk_default,
body: $active_dark,
muted: $text_dk_default,
destructive: $text_dk_default,
);

@mixin pb_link($color: $primary_action) {
color: $color;
}

0 comments on commit b5c25be

Please sign in to comment.