feat: add selector to fonts

This commit is contained in:
shadcn
2026-03-05 10:02:45 +04:00
parent 75031d4461
commit 8ba3d50d7d
20 changed files with 206 additions and 35 deletions

View File

@@ -1,6 +1,6 @@
---
import "@workspace/ui/globals.css"
import { Button } from "@workspace/ui/components/ui/button"
import { Button } from "@workspace/ui/components/button"
---
<html lang="en">

View File

@@ -1,4 +1,4 @@
import { Button } from "@workspace/ui/components/ui/button"
import { Button } from "@workspace/ui/components/button"
export default function Page() {
return (
@@ -10,7 +10,7 @@ export default function Page() {
<p>We&apos;ve already added the button component for you.</p>
<Button className="mt-2">Button</Button>
</div>
<div className="font-mono text-xs text-muted-foreground">
<div className="text-muted-foreground font-mono text-xs">
(Press <kbd>d</kbd> to toggle dark mode)
</div>
</div>

View File

@@ -1,4 +1,4 @@
import { Button } from "@workspace/ui/components/ui/button"
import { Button } from "@workspace/ui/components/button"
export default function Home() {
return (

View File

@@ -1,5 +1,5 @@
import { createFileRoute } from "@tanstack/react-router"
import { Button } from "@workspace/ui/components/ui/button"
import { Button } from "@workspace/ui/components/button"
export const Route = createFileRoute("/")({ component: App })

View File

@@ -1,4 +1,4 @@
import { Button } from "@workspace/ui/components/ui/button"
import { Button } from "@workspace/ui/components/button"
export function App() {
return (
@@ -10,7 +10,7 @@ export function App() {
<p>We&apos;ve already added the button component for you.</p>
<Button className="mt-2">Button</Button>
</div>
<div className="font-mono text-xs text-muted-foreground">
<div className="text-muted-foreground font-mono text-xs">
(Press <kbd>d</kbd> to toggle dark mode)
</div>
</div>