mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
inter -> font-name
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -573,7 +573,7 @@ To add custom fonts, follow these steps:
|
|||||||
|
|
||||||
2. **Import the font** in `src/main.tsx`:
|
2. **Import the font** in `src/main.tsx`:
|
||||||
```typescript
|
```typescript
|
||||||
import '@fontsource-variable/inter';
|
import '@fontsource-variable/<font-name>';
|
||||||
```
|
```
|
||||||
|
|
||||||
3. **Update Tailwind configuration** in `tailwind.config.ts`:
|
3. **Update Tailwind configuration** in `tailwind.config.ts`:
|
||||||
|
|||||||
+1
-1
@@ -4,6 +4,6 @@ import App from './App.tsx'
|
|||||||
import './index.css'
|
import './index.css'
|
||||||
|
|
||||||
// FIXME: a custom font should be used. Eg:
|
// FIXME: a custom font should be used. Eg:
|
||||||
// import '@fontsource-variable/inter';
|
// import '@fontsource-variable/<font-name>';
|
||||||
|
|
||||||
createRoot(document.getElementById("root")!).render(<App />);
|
createRoot(document.getElementById("root")!).render(<App />);
|
||||||
Reference in new issue
Block a user