From: Muhammad Rizki <[email protected]>
To: Ammar Faizi <[email protected]>
Cc: Kiizuha Kanazawa <[email protected]>,
Alviro Iskandar Setiawan <[email protected]>,
Dwiky Rizky Ananditya <[email protected]>,
GNU/Weeb Mailing List <[email protected]>
Subject: [PATCH v1 02/16] feat(fonts): add Google fonts
Date: Sun, 19 Jan 2025 07:38:55 +0700 [thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
From: Kiizuha Kanazawa <[email protected]>
Import Google Fonts using CSS `@import` and configure the font families
in `app.css` and `tailwind.config.ts`.
Signed-off-by: Kiizuha Kanazawa <[email protected]>
---
src/app.css | 18 ++++++++++++++++++
tailwind.config.ts | 9 ++++++++-
2 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/src/app.css b/src/app.css
index b5c61c9..c6c01f0 100644
--- a/src/app.css
+++ b/src/app.css
@@ -1,3 +1,21 @@
+@import url("https://fonts.googleapis.com/css2?family=Geist:[email protected]&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");
+
@tailwind base;
@tailwind components;
@tailwind utilities;
+
+@layer base {
+ html {
+ font-family:
+ Inter,
+ Rubik,
+ Geist,
+ ui-sans-serif,
+ system-ui,
+ sans-serif,
+ Apple Color Emoji,
+ Segoe UI Emoji,
+ Segoe UI Symbol,
+ Noto Color Emoji;
+ }
+}
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 494061d..4cd2f8d 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -2,12 +2,19 @@ import containerQueries from "@tailwindcss/container-queries";
import forms from "@tailwindcss/forms";
import typography from "@tailwindcss/typography";
import type { Config } from "tailwindcss";
+import defaultTheme from "tailwindcss/defaultTheme";
export default {
content: ["./src/**/*.{html,js,svelte,ts}"],
theme: {
- extend: {}
+ extend: {
+ fontFamily: {
+ inter: ["Inter", "Rubik", "Geist", ...defaultTheme.fontFamily.sans],
+ rubik: ["Rubik", "Inter", "Geist", ...defaultTheme.fontFamily.sans],
+ geist: ["Geist", "Inter", "Rubik", ...defaultTheme.fontFamily.sans]
+ }
+ }
},
plugins: [typography, forms, containerQueries]
--
Muhammad Rizki
next prev parent reply other threads:[~2025-01-19 0:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-19 0:38 [PATCH v1 00/16] Refactor GNU/Weeb Mail Site Muhammad Rizki
2025-01-19 0:38 ` [PATCH v1 01/16] feat(routes): configure page layout options Muhammad Rizki
2025-01-19 0:38 ` Muhammad Rizki [this message]
2025-01-19 0:38 ` [PATCH v1 03/16] feat(components): add shadcn-svelte components Muhammad Rizki
2025-01-19 0:38 ` [PATCH v1 04/16] feat(deps): add `axios` as HTTP client Muhammad Rizki
2025-01-19 0:38 ` [PATCH v1 05/16] feat(deps): add `svelte-copy` dependency Muhammad Rizki
2025-01-19 0:38 ` [PATCH v1 06/16] feat(constants): add navigations and mail-config constant Muhammad Rizki
2025-01-19 0:39 ` [PATCH v1 07/16] feat(components): add loading spinner component Muhammad Rizki
2025-01-19 0:39 ` [PATCH v1 08/16] feat(components): add header component Muhammad Rizki
2025-01-19 0:39 ` [PATCH v1 09/16] feat: initial hooks, schemas, typings for the login functions Muhammad Rizki
2025-01-19 0:39 ` [PATCH v1 10/16] feat(components): add app-sidebar component Muhammad Rizki
2025-01-19 0:39 ` [PATCH v1 11/16] feat(routes): create initial settings page Muhammad Rizki
2025-01-19 0:39 ` [PATCH v1 12/16] feat(routes): add home page Muhammad Rizki
2025-01-19 0:39 ` [PATCH v1 13/16] feat(routes): add main layout for the protected routes Muhammad Rizki
2025-01-19 0:39 ` [PATCH v1 14/16] feat(routes): add login page Muhammad Rizki
2025-01-19 0:39 ` [PATCH v1 15/16] chore(.gitignore): add patch files ignore Muhammad Rizki
2025-01-19 0:39 ` [PATCH v1 16/16] chore: update README.md Muhammad Rizki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox