Skip to content

Commit

Permalink
refactor: rename base font mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
abelflopes committed Dec 28, 2023
1 parent 77c858e commit ad69ff4
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/components/button/src/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "@react-ck/text";

.root {
@include font-base;
@include text-base;

@include define-css-var(button, border-radius, get-spacing(1));
@include define-css-var(button, padding-y, get-spacing(1));
Expand Down
2 changes: 1 addition & 1 deletion packages/components/card/src/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "@react-ck/text";

.root {
@include font-base;
@include text-base;

background-color: get-color(neutral-0);
border-radius: get-spacing(2);
Expand Down
2 changes: 1 addition & 1 deletion packages/components/chip/src/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "@react-ck/text";

.root {
@include font-base;
@include text-base;

background-color: get-css-var(chip, background-color);
color: get-css-var(chip, color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "@react-ck/text";

.root {
@include font-base;
@include text-base;
@include text-type(soft);
@include text-variation(bold);

Expand Down
2 changes: 1 addition & 1 deletion packages/components/input/src/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@import "@react-ck/text";

.root {
@include font-base;
@include text-base;

background: get-color(neutral-100);
color: get-color(neutral-900);
Expand Down
2 changes: 1 addition & 1 deletion packages/components/select/src/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@import "@react-ck/text";

.root {
@include font-base;
@include text-base;

background: get-color(neutral-100);
color: get-color(neutral-900);
Expand Down
2 changes: 1 addition & 1 deletion packages/components/table/src/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@import "@react-ck/text";

.root {
@include font-base;
@include text-base;
@include define-css-var(table, border-color, transparent);

border: solid 1px get-css-var(table, border-color);
Expand Down
2 changes: 1 addition & 1 deletion packages/components/text/src/styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
@include text-variant($key, $text-types);
}

@mixin font-base {
@mixin text-base {
@include text-type(p);
@include define-css-var(text, color, get-color(neutral-900));
@include define-css-var(text, text-decoration, none);
Expand Down
2 changes: 1 addition & 1 deletion packages/components/text/src/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@import "variables";

.root {
@include font-base;
@include text-base;
@include define-css-var(text, margin-top, 0);
@include define-css-var(text, margin-bottom, 0);

Expand Down
2 changes: 1 addition & 1 deletion packages/components/textarea/src/styles/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@import "@react-ck/text";

.root {
@include font-base;
@include text-base;

background: get-color(neutral-100);
color: get-color(neutral-900);
Expand Down

0 comments on commit ad69ff4

Please sign in to comment.