Skip to content

Commit

Permalink
chore(scss): rm deprecated @import
Browse files Browse the repository at this point in the history
  • Loading branch information
haxgun committed Dec 3, 2024
1 parent 3dbda48 commit 17b450f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions frontend/src/assets/style.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@import 'variables';
@use 'variables';

:root {
background: $background-color;
color: $white;
background: variables.$background-color;
color: variables.$white;
font-size: 16px;
font-family: $font-family_1;
font-family: variables.$font-family_1;
font-synthesis: none;
font-feature-settings: normal;
font-variation-settings: normal;
Expand Down Expand Up @@ -37,7 +37,7 @@ main {
gap: 1.8rem;

.btn {
$btn-text-color: $white;
$btn-text-color: variables.$white;
align-items: center;
background: #fff;
border: none;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/assets/variables.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use 'normalize.css';
@import 'https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Russo+One&display=swap';
@import 'normalize.css';

$font-family_1:
Inter,
Expand Down
3 changes: 2 additions & 1 deletion frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default defineConfig({
css :{
preprocessorOptions : {
scss: {
api: "modern",
api: "modern-compiler",
silenceDeprecations: ["legacy-js-api"]
}
}
},
Expand Down

0 comments on commit 17b450f

Please sign in to comment.