Skip to content

Commit

Permalink
add fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithWittmann committed May 3, 2024
1 parent 306ac0b commit 582b2fc
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 6 deletions.
29 changes: 29 additions & 0 deletions src/assets/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 200 1000;
font-display: swap;
src: url(./fonts/Nunito-VariableFont_wght.ttf) format('truetype');
}
@font-face {
font-family: 'Nunito';
font-style: italic;
font-weight: 200 1000;
font-display: swap;
src: url(./fonts/Nunito-Italic-VariableFont_wght.ttf) format('truetype');
}

@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 200 1000;
font-display: swap;
src: url(./fonts/OpenSans-VariableFont_wdth,wght.ttf) format('truetype');
}
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 200 1000;
font-display: swap;
src: url(./fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf) format('truetype');
}
Binary file not shown.
Binary file not shown.
Binary file added src/assets/fonts/Nunito-VariableFont_wght.ttf
Binary file not shown.
Binary file added src/assets/fonts/Nunito-VariableFont_wght.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 12 additions & 6 deletions src/components/tag/Tag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,34 @@ const props = defineProps({

<style scoped>
@import url('../../assets/generated/variables.css');
@import url('../../assets/fonts.css');
.tag {
display: inline-flex;
align-items: center;
padding: 0.5em 1em;
padding: 0.15em 0.3rem;
border-radius: 0.25em;
box-sizing: border-box;
border: 2px solid;
border: 0.2em solid;
font-family: "nunito", sans-serif;
font-style: normal;
font-weight: 600;
line-height: normal;
}
.tag--s {
font-size: 0.75em;
padding: 0.2em 0.5em;
padding: 0.05em 0.1em;
}
.tag--m {
font-size: 1em;
padding: 0.25em 0.5rem;
padding: 0.15em 0.3rem;
}
.tag--l {
font-size: 1.25em;
padding: 0.5em 0.75em;
padding: 0.25em 0.5em;
}
Expand All @@ -61,7 +66,7 @@ const props = defineProps({
}
.tag--high {
font-weight: bold;
font-weight: 800;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
}
Expand Down Expand Up @@ -92,6 +97,7 @@ const props = defineProps({
.tag--info {
background-color: var(--colorInformative5);
border-color: var(--colorInformative5);
color: var(--colorNeutralLight5);
}
.tag--neutralLight {
Expand Down

0 comments on commit 582b2fc

Please sign in to comment.