Skip to content

Commit 6edc095

Browse files
committed
feat: setup inter font
1 parent 8912cfb commit 6edc095

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

app/providers.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { QueryClientProvider } from '@/lib/tanstack-query/provider';
77

88
import { Sonner } from '@/components/ui/sonner';
99

10+
import { envClient } from '@/env/client';
1011
import {
1112
DemoModeDrawer,
1213
useIsDemoModeDrawerVisible,
@@ -23,7 +24,7 @@ export const Providers = (props: { children: ReactNode }) => {
2324
<QueryClientProvider>
2425
{props.children}
2526
{!isDemoModeDrawerVisible && <Sonner />}
26-
<DemoModeDrawer />
27+
{envClient.VITE_IS_DEMO && <DemoModeDrawer />}
2728
</QueryClientProvider>
2829
</ThemeProvider>
2930
);

app/styles/app.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
@import 'tailwindcss' source('../');
22
@import 'tw-animate-css';
33

4+
@import '@fontsource-variable/inter';
5+
46
@custom-variant dark (&:is(.dark *));
57

68
@theme {
9+
--font-sans:
10+
'Inter Variable', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
11+
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
712
--color-*: initial;
813
--color-white: #fff;
914
--color-black: #000;
@@ -190,7 +195,7 @@
190195
@apply border-border outline-ring/50;
191196
}
192197
body {
193-
@apply text-foreground bg-neutral-50 dark:bg-neutral-950;
198+
@apply bg-neutral-50 text-foreground dark:bg-neutral-950;
194199

195200
@media all and (display-mode: standalone) {
196201
height: 100lvh; /* Force full height on iOS standalone */

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"dependencies": {
4444
"@base-ui-components/react": "1.0.0-alpha.8",
4545
"@bearstudio/ui-state": "1.0.1",
46+
"@fontsource-variable/inter": "5.2.6",
4647
"@headlessui/react": "2.2.2",
4748
"@hookform/resolvers": "5.0.1",
4849
"@orpc/client": "1.5.2",

pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)