forge
Explore
Log in

Don't you dare go Hollow

💄 round card corners

Browse files at this commit

7101da6f27f9f5f2c9c6089ae32bb57e7ab1f30aBurak BoduroğluParent: c4abe81
  • style
    • 💄 round card corners
Show full message
style: 💄 round card corners

- increase the shared radius token for a softer card shape

- use rounded-lg on shared card and page header surfaces

- align decorative stat tile radius with the shared token
src/components/layout/page-header.tsxmodified+1 -1
@@ -27,7 +27,7 @@ export function PageHeader(
27 return (27 return (
28 <div28 <div
29 class={cn(29 class={cn(
30- "relative overflow-hidden rounded-md border bg-card text-card-foreground shadow-sm",30+ "relative overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm",
31 props.class,31 props.class,
32 )}32 )}
33 >33 >
src/components/ui/card.tsxmodified+1 -1
@@ -6,7 +6,7 @@ export function Card(props: ParentProps<ComponentProps<"div">>) {
6 const [local, rest] = splitProps(props, ["class", "children"]);6 const [local, rest] = splitProps(props, ["class", "children"]);
7 return (7 return (
8 <div8 <div
9- class={cn("rounded-sm border bg-card text-card-foreground shadow-sm", local.class)}9+ class={cn("rounded-lg border bg-card text-card-foreground shadow-sm", local.class)}
10 {...rest}10 {...rest}
11 >11 >
12 {local.children}12 {local.children}
src/index.cssmodified+3 -3
@@ -25,7 +25,7 @@
25 --border: 160 14% 88%;25 --border: 160 14% 88%;
26 --input: 160 14% 88%;26 --input: 160 14% 88%;
27 --ring: 163 72% 28%;27 --ring: 163 72% 28%;
28- --radius: 0.2rem;28+ --radius: 0.875rem;
29 --success: 152 60% 36%;29 --success: 152 60% 36%;
30 --warning: 38 92% 50%;30 --warning: 38 92% 50%;
31 --info: 210 80% 48%;31 --info: 210 80% 48%;
@@ -95,7 +95,7 @@
95 }95 }
96 96
97 .surface-card {97 .surface-card {
98- @apply rounded-md border bg-card text-card-foreground shadow-sm;98+ @apply rounded-lg border bg-card text-card-foreground shadow-sm;
99 }99 }
100 100
101 .hero-panel {101 .hero-panel {
@@ -112,7 +112,7 @@
112 inset: auto -20% -40% auto;112 inset: auto -20% -40% auto;
113 width: 8rem;113 width: 8rem;
114 height: 8rem;114 height: 8rem;
115- border-radius: 0.2rem;115+ border-radius: var(--radius);
116 background: hsl(var(--primary) / 0.08);116 background: hsl(var(--primary) / 0.08);
117 pointer-events: none;117 pointer-events: none;
118 }118 }