Skip to content

Commit 17b450f

Browse files
committed
chore(scss): rm deprecated @import
1 parent 3dbda48 commit 17b450f

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

frontend/src/assets/style.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
@import 'variables';
1+
@use 'variables';
22

33
:root {
4-
background: $background-color;
5-
color: $white;
4+
background: variables.$background-color;
5+
color: variables.$white;
66
font-size: 16px;
7-
font-family: $font-family_1;
7+
font-family: variables.$font-family_1;
88
font-synthesis: none;
99
font-feature-settings: normal;
1010
font-variation-settings: normal;
@@ -37,7 +37,7 @@ main {
3737
gap: 1.8rem;
3838

3939
.btn {
40-
$btn-text-color: $white;
40+
$btn-text-color: variables.$white;
4141
align-items: center;
4242
background: #fff;
4343
border: none;

frontend/src/assets/variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
@use 'normalize.css';
12
@import 'https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Russo+One&display=swap';
2-
@import 'normalize.css';
33

44
$font-family_1:
55
Inter,

frontend/vite.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export default defineConfig({
1010
css :{
1111
preprocessorOptions : {
1212
scss: {
13-
api: "modern",
13+
api: "modern-compiler",
14+
silenceDeprecations: ["legacy-js-api"]
1415
}
1516
}
1617
},

0 commit comments

Comments
 (0)