Skip to content

Commit

Permalink
feat: add body style with tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
karimim committed Sep 20, 2024
1 parent 8378e7c commit e98b4f0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/styles/src/elements/body.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
@use 'sass:map';
@use '../functions/tokens' as tokens;
@use '../tokens/elements' as elements;

tokens.$default-map: elements.$post-body;

// Resets type
@use '../components/fonts';

body {
font-family: tokens.get('post-body', 'font-family');
font-size: tokens.get('post-body', 'font-size');
font-weight: tokens.get('post-body', 'font-weight');
line-height: tokens.get('post-body', 'line-height');
letter-spacing: tokens.get('post-body', 'letter-spacing');
color: tokens.get('post-body', 'color');
}

0 comments on commit e98b4f0

Please sign in to comment.