tangled
alpha
login
or
join now
hallaine.com
/
web
0
fork
atom
this repo has no description
hallaine.com
0
fork
atom
overview
issues
pulls
pipelines
feat: reset shacdn vega
hallaine.com
3 weeks ago
6f4d1fdf
5f6a0930
+22
-22
3 changed files
expand all
collapse all
unified
split
src
app
globals.css
components
ui
card.tsx
dropdown-menu.tsx
+11
-11
src/app/globals.css
···
11
11
--card-foreground: oklch(0.145 0 0);
12
12
--popover: oklch(1 0 0);
13
13
--popover-foreground: oklch(0.145 0 0);
14
14
-
--primary: oklch(0.488 0.243 264.376);
15
15
-
--primary-foreground: oklch(0.97 0.014 254.604);
16
16
-
--secondary: oklch(0.967 0.001 286.375);
17
17
-
--secondary-foreground: oklch(0.21 0.006 285.885);
14
14
+
--primary: oklch(0.205 0 0);
15
15
+
--primary-foreground: oklch(0.985 0 0);
16
16
+
--secondary: oklch(0.97 0 0);
17
17
+
--secondary-foreground: oklch(0.205 0 0);
18
18
--muted: oklch(0.97 0 0);
19
19
--muted-foreground: oklch(0.556 0 0);
20
20
--accent: oklch(0.97 0 0);
···
31
31
--radius: 0.625rem;
32
32
--sidebar: oklch(0.985 0 0);
33
33
--sidebar-foreground: oklch(0.145 0 0);
34
34
-
--sidebar-primary: oklch(0.546 0.245 262.881);
35
35
-
--sidebar-primary-foreground: oklch(0.97 0.014 254.604);
34
34
+
--sidebar-primary: oklch(0.205 0 0);
35
35
+
--sidebar-primary-foreground: oklch(0.985 0 0);
36
36
--sidebar-accent: oklch(0.97 0 0);
37
37
--sidebar-accent-foreground: oklch(0.205 0 0);
38
38
--sidebar-border: oklch(0.922 0 0);
···
46
46
--card-foreground: oklch(0.985 0 0);
47
47
--popover: oklch(0.205 0 0);
48
48
--popover-foreground: oklch(0.985 0 0);
49
49
-
--primary: oklch(0.42 0.18 266);
50
50
-
--primary-foreground: oklch(0.97 0.014 254.604);
51
51
-
--secondary: oklch(0.274 0.006 286.033);
49
49
+
--primary: oklch(0.87 0 0);
50
50
+
--primary-foreground: oklch(0.205 0 0);
51
51
+
--secondary: oklch(0.269 0 0);
52
52
--secondary-foreground: oklch(0.985 0 0);
53
53
--muted: oklch(0.269 0 0);
54
54
--muted-foreground: oklch(0.708 0 0);
···
65
65
--chart-5: oklch(0.424 0.199 265.638);
66
66
--sidebar: oklch(0.205 0 0);
67
67
--sidebar-foreground: oklch(0.985 0 0);
68
68
-
--sidebar-primary: oklch(0.623 0.214 259.815);
69
69
-
--sidebar-primary-foreground: oklch(0.97 0.014 254.604);
68
68
+
--sidebar-primary: oklch(0.488 0.243 264.376);
69
69
+
--sidebar-primary-foreground: oklch(0.985 0 0);
70
70
--sidebar-accent: oklch(0.269 0 0);
71
71
--sidebar-accent-foreground: oklch(0.985 0 0);
72
72
--sidebar-border: oklch(1 0 0 / 10%);
+3
-3
src/components/ui/card.tsx
···
12
12
data-slot="card"
13
13
data-size={size}
14
14
className={cn(
15
15
-
"ring-foreground/10 bg-card text-card-foreground gap-6 overflow-hidden rounded-xl py-6 text-sm shadow-xs ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col",
15
15
+
"ring-foreground/10 bg-card text-card-foreground group/card flex flex-col gap-6 overflow-hidden rounded-xl py-6 text-sm shadow-xs ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
16
16
className,
17
17
)}
18
18
{...props}
···
25
25
<div
26
26
data-slot="card-header"
27
27
className={cn(
28
28
-
"gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4 group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",
28
28
+
"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4",
29
29
className,
30
30
)}
31
31
{...props}
···
84
84
<div
85
85
data-slot="card-footer"
86
86
className={cn(
87
87
-
"rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4 flex items-center",
87
87
+
"flex items-center rounded-b-xl px-6 group-data-[size=sm]/card:px-4 [.border-t]:pt-6 group-data-[size=sm]/card:[.border-t]:pt-4",
88
88
className,
89
89
)}
90
90
{...props}
+8
-8
src/components/ui/dropdown-menu.tsx
···
42
42
<MenuPrimitive.Popup
43
43
data-slot="dropdown-menu-content"
44
44
className={cn(
45
45
-
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-md p-1 shadow-md ring-1 duration-100 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden",
45
45
+
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 duration-100 outline-none data-closed:overflow-hidden",
46
46
className,
47
47
)}
48
48
{...props}
···
91
91
data-inset={inset}
92
92
data-variant={variant}
93
93
className={cn(
94
94
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-sm px-2 py-1.5 text-sm data-inset:pl-8 [&_svg:not([class*='size-'])]:size-4 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
94
94
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground group/dropdown-menu-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
95
95
className,
96
96
)}
97
97
{...props}
···
116
116
data-slot="dropdown-menu-sub-trigger"
117
117
data-inset={inset}
118
118
className={cn(
119
119
-
"focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-sm px-2 py-1.5 text-sm data-inset:pl-8 [&_svg:not([class*='size-'])]:size-4 data-popup-open:bg-accent data-popup-open:text-accent-foreground flex cursor-default items-center outline-hidden select-none [&_svg]:pointer-events-none [&_svg]:shrink-0",
119
119
+
"focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-popup-open:bg-accent data-popup-open:text-accent-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
120
120
className,
121
121
)}
122
122
{...props}
···
139
139
<DropdownMenuContent
140
140
data-slot="dropdown-menu-sub-content"
141
141
className={cn(
142
142
-
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-md p-1 shadow-lg ring-1 duration-100 w-auto",
142
142
+
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground w-auto min-w-[96px] rounded-md p-1 shadow-lg ring-1 duration-100",
143
143
className,
144
144
)}
145
145
align={align}
···
165
165
data-slot="dropdown-menu-checkbox-item"
166
166
data-inset={inset}
167
167
className={cn(
168
168
-
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm data-inset:pl-8 [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
168
168
+
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
169
169
className,
170
170
)}
171
171
checked={checked}
172
172
{...props}
173
173
>
174
174
<span
175
175
-
className="absolute right-2 flex items-center justify-center pointer-events-none"
175
175
+
className="pointer-events-none absolute right-2 flex items-center justify-center"
176
176
data-slot="dropdown-menu-checkbox-item-indicator"
177
177
>
178
178
<MenuPrimitive.CheckboxItemIndicator>
···
206
206
data-slot="dropdown-menu-radio-item"
207
207
data-inset={inset}
208
208
className={cn(
209
209
-
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm data-inset:pl-8 [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
209
209
+
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
210
210
className,
211
211
)}
212
212
{...props}
213
213
>
214
214
<span
215
215
-
className="absolute right-2 flex items-center justify-center pointer-events-none"
215
215
+
className="pointer-events-none absolute right-2 flex items-center justify-center"
216
216
data-slot="dropdown-menu-radio-item-indicator"
217
217
>
218
218
<MenuPrimitive.RadioItemIndicator>