Skip to content

Commit 8e7dc51

Browse files
committed
refactor(components): migrate component SCSS from @import to @use
Replace @import with @use ... as * across all ~90 component style files. Each component already explicitly imports its dependencies, so the modular @use system works as a drop-in replacement.
1 parent 7c12fca commit 8e7dc51

79 files changed

Lines changed: 96 additions & 96 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_template/style/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import '../../style/variables';
1+
@use '../../style/variables' as *;

components/alert/style/_index.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
@import '../../style/variables';
2-
@import './mixin';
1+
@use '../../style/variables' as *;
2+
@use './mixin' as *;
33

44
.#{$prefix}-alert {
55
border: 1px solid;

components/anchor/style/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../style/variables';
1+
@use '../../style/variables' as *;
22

33
.#{$prefix}-anchor {
44
margin: 0;

components/aspect-ratio/style/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../style/variables';
1+
@use '../../style/variables' as *;
22

33
.#{$prefix}-aspect-ratio {
44
box-sizing: border-box;

components/avatar/style/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../style/variables';
1+
@use '../../style/variables' as *;
22

33
.#{$prefix}-avatar {
44
box-sizing: border-box;

components/back-top/style/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../style/variables';
1+
@use '../../style/variables' as *;
22

33
.#{$prefix}-back-top {
44
position: fixed;

components/badge/style/_index.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import '../../style/variables';
2-
@import '../../style/animation';
3-
@import './mixin';
1+
@use '../../style/variables' as *;
2+
@use '../../style/animation' as *;
3+
@use './mixin' as *;
44

55
.#{$prefix}-badge {
66
position: relative;

components/badge/style/_mixin.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../style/variables';
1+
@use '../../style/variables' as *;
22

33
@mixin badge-base {
44
box-sizing: border-box;

components/breadcrumb/style/_index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../style/variables';
1+
@use '../../style/variables' as *;
22

33
.#{$prefix}-breadcrumb {
44
&__ol {

components/button/style/_index.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@import '../../style/variables';
2-
@import '../../style/mixins';
3-
@import './mixin';
1+
@use '../../style/variables' as *;
2+
@use '../../style/mixins' as *;
3+
@use './mixin' as *;
44

55
$btn-prefix: #{$prefix}-btn;
66

0 commit comments

Comments
 (0)