Skip to content

Commit

Permalink
add spacing vars to theme
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrav committed Mar 11, 2024
1 parent db39a9f commit 6e7c2fa
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { routes } from './routes';
import './index.scss';
import './styles/_typography.scss';
import './styles/_colors.scss';
import './styles/_spacing.scss';

export const App = () => {
const [isLoggedIn, setLoggedIn] = useState(false);
Expand Down
1 change: 1 addition & 0 deletions src/_codux/boards-global-setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '../index.scss';
import '../styles/_typography.scss';
import '../styles/_colors.scss';
import '../styles/_spacing.scss';
29 changes: 29 additions & 0 deletions src/styles/_spacing.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@property --space-4 {
syntax: '<length>';
inherits: true;
initial-value: 4px;
}

@property --space-8 {
syntax: '<length>';
inherits: true;
initial-value: 8px;
}

@property --space-12 {
syntax: '<length>';
inherits: true;
initial-value: 12px;
}

@property --space-16 {
syntax: '<length>';
inherits: true;
initial-value: 16px;
}

@property --space-24 {
syntax: '<length>';
inherits: true;
initial-value: 24px;
}

0 comments on commit 6e7c2fa

Please sign in to comment.