Skip to content

Commit

Permalink
Compress fonts (#1683)
Browse files Browse the repository at this point in the history
* Compress fonts

* changeset
  • Loading branch information
grod220 authored Aug 12, 2024
1 parent 0dab199 commit 6fd8ce6
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-socks-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@repo/ui': minor
---

Compress fonts (ttf -> woff2)
Binary file removed packages/ui/fonts/Devanagari-Sangam-Bold.ttf
Binary file not shown.
Binary file added packages/ui/fonts/Devanagari-Sangam-Bold.woff2
Binary file not shown.
Binary file removed packages/ui/fonts/Devanagari-Sangam-Regular.ttf
Binary file not shown.
Binary file added packages/ui/fonts/Devanagari-Sangam-Regular.woff2
Binary file not shown.
Binary file removed packages/ui/fonts/Faktum-Bold.ttf
Binary file not shown.
Binary file added packages/ui/fonts/Faktum-Bold.woff2
Binary file not shown.
Binary file removed packages/ui/fonts/Faktum-Medium.ttf
Binary file not shown.
Binary file added packages/ui/fonts/Faktum-Medium.woff2
Binary file not shown.
Binary file removed packages/ui/fonts/Faktum-SemiBold.ttf
Binary file not shown.
Binary file added packages/ui/fonts/Faktum-SemiBold.woff2
Binary file not shown.
28 changes: 17 additions & 11 deletions packages/ui/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,32 @@

@layer base {
:root {
--background: 0, 0%, 0%; /* black bg */
/* black bg */
--background: 0, 0%, 0%;
--foreground: 0, 4%, 73%;

--muted: 0, 0%, 100%; /* white text */
--muted-foreground: 0, 4%, 73%; /* #BDB8B8 text*/
/* white text */
--muted: 0, 0%, 100%;
/* #BDB8B8 text*/
--muted-foreground: 0, 4%, 73%;

--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;

--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;

--border: 0, 2%, 21%; /* border as light-brown */
--border-secondary: rgba(75, 75, 75, 0.5); /* border as light-brown */
/* border as light-brown */
--border: 0, 2%, 21%;
--border-secondary: rgba(75, 75, 75, 0.5);

--input: 214.3 31.8% 91.4%;

--primary: 222.2 47.4% 11.2%;
--primary-foreground: 210 40% 98%;

--secondary: 0, 2%, 21%; /* secondary btn bg */
/* secondary btn bg */
--secondary: 0, 2%, 21%;
--secondary-foreground: 222.2 47.4% 11.2%;

--accent: 210 40% 96.1%;
Expand Down Expand Up @@ -97,31 +103,31 @@
@font-face {
font-family: 'Faktum';
font-weight: 700;
src: url('../fonts/Faktum-Bold.ttf') format('truetype');
src: url('../fonts/Faktum-Bold.woff2') format('woff2');
}

@font-face {
font-family: 'Faktum';
font-weight: 500;
src: url('../fonts/Faktum-Medium.ttf') format('truetype');
src: url('../fonts/Faktum-Medium.woff2') format('woff2');
}

@font-face {
font-family: 'Faktum';
font-weight: 600;
src: url('../fonts/Faktum-SemiBold.ttf') format('truetype');
src: url('../fonts/Faktum-SemiBold.woff2') format('woff2');
}

@font-face {
font-family: 'Devanagari Sangam';
font-weight: 400;
src: url('../fonts/Devanagari-Sangam-Regular.ttf') format('truetype');
src: url('../fonts/Devanagari-Sangam-Regular.woff2') format('woff2');
}

@font-face {
font-family: 'Devanagari Sangam';
font-weight: 700;
src: url('../fonts/Devanagari-Sangam-Bold.ttf') format('truetype');
src: url('../fonts/Devanagari-Sangam-Bold.woff2') format('woff2');
}

@font-face {
Expand Down

0 comments on commit 6fd8ce6

Please sign in to comment.