From 89b3199d732d95543604dba5b481f43d93c4b747 Mon Sep 17 00:00:00 2001 From: Minseo Lee Date: Thu, 4 Dec 2025 20:53:04 +0900 Subject: [PATCH] font family and exports --- font-faces/mono.css | 16 ++++++++++++++++ font-faces/sans.css | 16 ++++++++++++++++ package.json | 4 +++- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 font-faces/mono.css create mode 100644 font-faces/sans.css diff --git a/font-faces/mono.css b/font-faces/mono.css new file mode 100644 index 0000000..09bc2e6 --- /dev/null +++ b/font-faces/mono.css @@ -0,0 +1,16 @@ +@font-face { + font-family: 'GeistMono-Variable'; + src: url('../fonts/mono/GeistMono[wght].woff2') format('woff2'); + font-weight: 100 900; + font-style: normal; + font-display: swap; + font-synthesis: none; +} +@font-face { + font-family: 'GeistMono-Variable'; + src: url('../fonts/mono/GeistMono-Italic[wght].woff2') format('woff2'); + font-weight: 100 900; + font-style: italic; + font-display: swap; + font-synthesis: none; +} \ No newline at end of file diff --git a/font-faces/sans.css b/font-faces/sans.css new file mode 100644 index 0000000..71972a3 --- /dev/null +++ b/font-faces/sans.css @@ -0,0 +1,16 @@ +@font-face { + font-family: 'Geist-Variable'; + src: url('../fonts/sans/Geist[wght].woff2') format('woff2'); + font-weight: 100 900; + font-style: normal; + font-display: swap; + font-synthesis: none; +} +@font-face { + font-family: 'Geist-Variable'; + src: url('../fonts/sans/Geist-Italic[wght].woff2') format('woff2'); + font-weight: 100 900; + font-style: italic; + font-display: swap; + font-synthesis: none; +} \ No newline at end of file diff --git a/package.json b/package.json index 5058edb..bc5ebb2 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,10 @@ "fonts" ], "exports": { - ".": "./font-faces/sans-var.css", + ".": "./font-faces/sans.css", + "./sans": "./font-faces/sans-var.css", "./italic": "./font-faces/sans-var-italic.css", + "./m": "./font-faces/mono.css", "./mono": "./font-faces/mono-var.css", "./mono-italic": "./font-faces/mono-var-italic.css", "./font-faces/": "./font-faces/"