Skip to content

Commit

Permalink
refactor: replace scss @import with @use
Browse files Browse the repository at this point in the history
  • Loading branch information
abelflopes committed Jun 22, 2024
1 parent 209afc8 commit f6ce04d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/components/card/src/styles/index.module.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@import "@react-ck/theme";
@import "@react-ck/text";
@use "@react-ck/theme";
@use "@react-ck/text";

$border-radius: get-css-var(card, border-radius);

.root {
@include text-base;
@include define-css-var(card, border-radius, get-spacing(1));
@include text.text-base;
@include theme.define-css-var(card, border-radius, theme.get-spacing(1));

border-radius: $border-radius;
background-color: get-color(neutral-light-1);
Expand Down Expand Up @@ -39,7 +39,7 @@ $border-radius: get-css-var(card, border-radius);
}

.ghost {
@include define-css-var(card, border-radius, 0);
@include theme.define-css-var(card, border-radius, 0);
}

// Variations
Expand All @@ -57,15 +57,15 @@ $border-radius: get-css-var(card, border-radius);
// Spacing

.spacing_s {
@include define-css-var(card, spacing, get-spacing(1));
@include theme.define-css-var(card, spacing, theme.get-spacing(1));
}

.spacing_m {
@include define-css-var(card, spacing, get-spacing(2));
@include theme.define-css-var(card, spacing, theme.get-spacing(2));
}

.spacing_l {
@include define-css-var(card, spacing, get-spacing(3));
@include theme.define-css-var(card, spacing, theme.get-spacing(3));
}

// Content
Expand Down

0 comments on commit f6ce04d

Please sign in to comment.