Skip to content

Commit

Permalink
Update colors
Browse files Browse the repository at this point in the history
  • Loading branch information
goncy committed Feb 17, 2024
1 parent b9c97a2 commit a192582
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 38 deletions.
1 change: 0 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export async function generateMetadata(): Promise<Metadata> {
return {
title: store.title,
description: store.subtitle,
themeColor: "#09090b",
};
}

Expand Down
65 changes: 29 additions & 36 deletions src/components/ui/alert.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import * as React from "react";
import {cva, type VariantProps} from "class-variance-authority";

import { cn } from "@/lib/utils"
import {cn} from "@/lib/utils";

const alertVariants = cva(
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
Expand All @@ -16,44 +16,37 @@ const alertVariants = cva(
defaultVariants: {
variant: "default",
},
}
)
},
);

const Alert = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>
>(({ className, variant, ...props }, ref) => (
<div
ref={ref}
role="alert"
className={cn(alertVariants({ variant }), className)}
{...props}
/>
))
Alert.displayName = "Alert"

const AlertTitle = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLHeadingElement>
>(({ className, ...props }, ref) => (
<h5
ref={ref}
className={cn("mb-1 font-medium leading-none tracking-tight", className)}
{...props}
/>
))
AlertTitle.displayName = "AlertTitle"
>(({className, variant, ...props}, ref) => (
<div ref={ref} className={cn(alertVariants({variant}), className)} role="alert" {...props} />
));

Alert.displayName = "Alert";

const AlertTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
({className, ...props}, ref) => (
<h5
ref={ref}
className={cn("mb-1 font-medium leading-none tracking-tight", className)}
{...props}
/>
),
);

AlertTitle.displayName = "AlertTitle";

const AlertDescription = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn("text-sm [&_p]:leading-relaxed", className)}
{...props}
/>
))
AlertDescription.displayName = "AlertDescription"

export { Alert, AlertTitle, AlertDescription }
>(({className, ...props}, ref) => (
<div ref={ref} className={cn("text-sm [&_p]:leading-relaxed", className)} {...props} />
));

AlertDescription.displayName = "AlertDescription";

export {Alert, AlertTitle, AlertDescription};
2 changes: 1 addition & 1 deletion src/modules/theme/components/ThemeToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function ThemeToggle() {
return (
<Button
className="p-1"
size="xs"
size="sm"
variant="ghost"
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
>
Expand Down

0 comments on commit a192582

Please sign in to comment.