From 7f07a15e0615db9675ea8d34bda72fe50e1000ff Mon Sep 17 00:00:00 2001 From: karimim Date: Mon, 23 Sep 2024 10:59:47 +0200 Subject: [PATCH] feat: add paragraph style --- packages/styles/src/elements/_index.scss | 1 + packages/styles/src/elements/paragraph.scss | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 packages/styles/src/elements/paragraph.scss diff --git a/packages/styles/src/elements/_index.scss b/packages/styles/src/elements/_index.scss index 76b6e5d06c..14665c48b5 100644 --- a/packages/styles/src/elements/_index.scss +++ b/packages/styles/src/elements/_index.scss @@ -1,2 +1,3 @@ @use 'reset'; @use 'body'; +@use 'paragraph'; diff --git a/packages/styles/src/elements/paragraph.scss b/packages/styles/src/elements/paragraph.scss new file mode 100644 index 0000000000..5b8a6fd818 --- /dev/null +++ b/packages/styles/src/elements/paragraph.scss @@ -0,0 +1,9 @@ +@use 'sass:map'; +@use '../functions/tokens'; +@use '../tokens/elements'; + +tokens.$default-map: elements.$post-paragraph; + +p { + margin-block-start: tokens.get('post-paragraph', 'margin-block-start'); +}