mirror of
https://github.com/johndoe6345789/snippet-pastebin.git
synced 2026-04-24 13:34:55 +00:00
Improve SCSS import consistency with namespaced imports
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
@use '../styles/abstracts' as *;
|
||||
@use '../styles/abstracts/variables' as vars;
|
||||
@use '../styles/utilities/utilities';
|
||||
@use './theme.scss';
|
||||
|
||||
@@ -7,12 +6,12 @@
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
border-color: vars.$border;
|
||||
border-color: $border;
|
||||
}
|
||||
|
||||
body {
|
||||
background: vars.$background;
|
||||
color: vars.$foreground;
|
||||
background: $background;
|
||||
color: $foreground;
|
||||
font-family: var(--font-inter), 'Inter', sans-serif;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@use '../abstracts' as *;
|
||||
@use '../abstracts/functions' as fn;
|
||||
@use '../abstracts/variables' as vars;
|
||||
@use '../abstracts/mixins' as mx;
|
||||
|
||||
// Utility classes generator
|
||||
@each $name, $value in vars.$spacing {
|
||||
@@ -131,10 +131,10 @@
|
||||
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease !important; }
|
||||
|
||||
// Shadow
|
||||
.shadow-sm { @include shadow-sm; }
|
||||
.shadow { @include shadow; }
|
||||
.shadow-md { @include shadow-md; }
|
||||
.shadow-lg { @include shadow-lg; }
|
||||
.shadow-sm { @include mx.shadow-sm; }
|
||||
.shadow { @include mx.shadow; }
|
||||
.shadow-md { @include mx.shadow-md; }
|
||||
.shadow-lg { @include mx.shadow-lg; }
|
||||
|
||||
// Space between children - DRY loop
|
||||
$space-values: (2, 3, 4, 6, 8);
|
||||
|
||||
Reference in New Issue
Block a user