From 7fff28b32f6dbe8ade2a7903447f6271db548bf5 Mon Sep 17 00:00:00 2001 From: Rijk van Zanten Date: Fri, 23 Jun 2023 08:57:18 -0400 Subject: [PATCH] Base Heading (#12) * Boilerplate base-heading * Add base-heading component * Load correct font weights * Add align --- .../src/base-heading/base-heading.story.md | 14 ++++ .../src/base-heading/base-heading.story.vue | 44 +++++++++++ components/src/base-heading/base-heading.vue | 75 +++++++++++++++++++ components/src/theme/main.css | 2 +- 4 files changed, 134 insertions(+), 1 deletion(-) create mode 100644 components/src/base-heading/base-heading.story.md create mode 100644 components/src/base-heading/base-heading.story.vue create mode 100644 components/src/base-heading/base-heading.vue diff --git a/components/src/base-heading/base-heading.story.md b/components/src/base-heading/base-heading.story.md new file mode 100644 index 00000000..5de38427 --- /dev/null +++ b/components/src/base-heading/base-heading.story.md @@ -0,0 +1,14 @@ +Does not render an icon for `title` size headings. + +### Props + +| Prop | Description | Default | +| ------ | ----------------------------------------------------------------------------------- | --------- | +| `size` | Size of the heading. One of `title`, `large`, `medium`, `small` | `'large'` | +| `tag` | What HTML tag to use for the heading. One of `h1`, `h2`, `h3`, `h4`, `h5`, `strong` | `h2` | +| `icon` | What icon to render in front of the title. | -- | + +### Style Overrides + +| Variable | Default | +| -------- | ------- | diff --git a/components/src/base-heading/base-heading.story.vue b/components/src/base-heading/base-heading.story.vue new file mode 100644 index 00000000..e0594c9c --- /dev/null +++ b/components/src/base-heading/base-heading.story.vue @@ -0,0 +1,44 @@ + + + diff --git a/components/src/base-heading/base-heading.vue b/components/src/base-heading/base-heading.vue new file mode 100644 index 00000000..a5ed09c3 --- /dev/null +++ b/components/src/base-heading/base-heading.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/components/src/theme/main.css b/components/src/theme/main.css index dbc89afe..52215f8e 100644 --- a/components/src/theme/main.css +++ b/components/src/theme/main.css @@ -1,4 +1,4 @@ -@import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@300;500;700&family=Poppins:wght@600&family=Material+Symbols+Outlined:opsz,wght@20..48,100..700&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@300;500;700&family=Poppins:wght@400;600&family=Material+Symbols+Outlined:opsz,wght@20..48,100..700&display=swap'); :root { --family-display: 'Poppins', sans-serif;