Skip to content

Commit

Permalink
Implement Unica77 font with custom font feature settings on website (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ssandino authored Nov 27, 2023
1 parent 37480ea commit 8f4323e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions ui/src/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@
@tailwind components;
@tailwind utilities;

@font-face {
font-family: 'Unica77';
src: url('../../shared/assets/fonts/Unica77LLSub-Medium.woff2') format('woff2');
font-weight: 500;
font-style: normal;
}

@font-face {
font-family: 'Unica77';
src: url('../../shared/assets/fonts/Unica77LLSub-Bold.woff2') format('woff2');
font-weight: bold;
font-style: normal;
}

@font-face {
font-family: 'Unica77';
src: url('../../shared/assets/fonts/Unica77LLSub-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}

@layer base {
:root,
.theme-default {
Expand Down
2 changes: 1 addition & 1 deletion ui/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
},
},
fontFamily: {
sans: ['Unica77', 'sans-serif'],
sans: ['Unica77, sans-serif', { fontFeatureSettings: "'ss04' on" }],
},
extend: {
colors: {
Expand Down

0 comments on commit 8f4323e

Please sign in to comment.