Skip to content

Commit c7da00b

Browse files
committed
update: font style
1 parent 8cbe9b4 commit c7da00b

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Tauri + React + Typescript</title>
7+
<title>SpeedHive</title>
8+
<!-- Google Font: Plus Jakarta Sans -->
9+
<link rel="preconnect" href="https://fonts.googleapis.com" />
10+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
11+
<link
12+
href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap"
13+
rel="stylesheet"
14+
/>
815
</head>
916

1017
<body>

src/styles/globals.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
@import "tailwindcss";
22

33
@layer base {
4+
html {
5+
font-family: "Plus Jakarta Sans", system-ui, sans-serif;
6+
}
7+
48
:root {
59
--background: 0 0% 100%;
610
--foreground: 222.2 84% 4.9%;
@@ -70,5 +74,8 @@
7074
body {
7175
background-color: hsl(var(--background));
7276
color: hsl(var(--foreground));
77+
font-feature-settings: "cv11", "ss01"; /* Enable stylistic alternates */
78+
-webkit-font-smoothing: antialiased;
79+
-moz-osx-font-smoothing: grayscale;
7380
}
7481
}

0 commit comments

Comments
 (0)