Skip to content

Commit b475a0a

Browse files
committed
format
1 parent 889d124 commit b475a0a

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

app/routes/_marketing+/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function Index() {
5050
</a>
5151
<h1
5252
data-heading
53-
className="animate-slide-top text-foreground xl:animate-slide-left mt-8 text-4xl font-medium [animation-delay:0.3s] [animation-fill-mode:backwards] md:text-5xl xl:mt-4 xl:text-6xl xl:[animation-delay:0.8s] xl:[animation-fill-mode:backwards] font-title"
53+
className="animate-slide-top text-foreground xl:animate-slide-left font-title mt-8 text-4xl font-medium [animation-delay:0.3s] [animation-fill-mode:backwards] md:text-5xl xl:mt-4 xl:text-6xl xl:[animation-delay:0.8s] xl:[animation-fill-mode:backwards]"
5454
>
5555
<a href="https://www.epicweb.dev/stack">The Epic Stack</a>
5656
</h1>

app/styles/tailwind.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@custom-variant dark (&:is(.dark *));
55

66
.font-title {
7-
font-family: "Poppins", sans-serif;
7+
font-family: 'Poppins', sans-serif;
88
}
99

1010
:root {

docs/fonts.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,27 @@ easy to do so.
66

77
## Using Custom Fonts
88

9-
For custom fonts, Epic Stack uses [`fontless`](https://github.com/unjs/fontaine/tree/main/packages/fontless) for automatic font optimization. This provides zero-runtime font loading with proper fallbacks to reduce Cumulative Layout Shift (CLS).
9+
For custom fonts, Epic Stack uses
10+
[`fontless`](https://github.com/unjs/fontaine/tree/main/packages/fontless) for
11+
automatic font optimization. This provides zero-runtime font loading with proper
12+
fallbacks to reduce Cumulative Layout Shift (CLS).
1013

1114
## How it works
1215

1316
Simply use font families in your CSS and `fontless` handles the rest:
1417

1518
```css
1619
.font-title {
17-
font-family: "Poppins", sans-serif;
20+
font-family: 'Poppins', sans-serif;
1821
}
1922

2023
.body-text {
21-
font-family: "Inter", sans-serif;
24+
font-family: 'Inter', sans-serif;
2225
}
2326
```
2427

2528
The plugin will:
29+
2630
- Detect font-family declarations in your CSS
2731
- Resolve fonts from providers (Google Fonts, Bunny Fonts, etc.)
2832
- Generate optimized `@font-face` declarations
@@ -32,5 +36,7 @@ The plugin will:
3236
## Troubleshooting
3337

3438
### Fonts not loading in development
35-
This is expected behavior. Fonts are only generated in the build files. To see fonts in development mode, build the application first and then run `npm run dev`.
3639

40+
This is expected behavior. Fonts are only generated in the build files. To see
41+
fonts in development mode, build the application first and then run
42+
`npm run dev`.

server/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const viteDevServer = IS_PROD
2828
server: {
2929
middlewareMode: true,
3030
},
31-
// We tell Vite we are running a custom app instead of
31+
// We tell Vite we are running a custom app instead of
3232
// the SPA default so it doesn't run HTML middleware
3333
appType: 'custom',
3434
}),

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {
33
type SentryReactRouterBuildOptions,
44
sentryReactRouter,
55
} from '@sentry/react-router'
6-
import { fontless } from 'fontless'
76
import tailwindcss from '@tailwindcss/vite'
7+
import { fontless } from 'fontless'
88
import { reactRouterDevTools } from 'react-router-devtools'
99
import { defineConfig } from 'vite'
1010
import { envOnlyMacros } from 'vite-env-only'

0 commit comments

Comments
 (0)