style: calm down frontend visual system
This commit is contained in:
@@ -3,14 +3,14 @@ import { cva, type VariantProps } from "class-variance-authority";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const buttonVariants = cva(
|
||||
"inline-flex items-center justify-center gap-2 rounded-full text-sm font-medium transition duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sky-500 disabled:pointer-events-none disabled:opacity-50",
|
||||
"inline-flex items-center justify-center gap-2 rounded-control text-sm font-medium transition duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent disabled:pointer-events-none disabled:opacity-50",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
default: "bg-slate-950 px-4 py-2.5 text-white hover:bg-slate-800 dark:bg-white dark:text-slate-950 dark:hover:bg-slate-200",
|
||||
glass: "border border-white/30 bg-white/30 px-4 py-2.5 text-slate-800 backdrop-blur-xl hover:bg-white/50 dark:border-white/10 dark:bg-white/10 dark:text-white dark:hover:bg-white/20",
|
||||
ghost: "px-3 py-2 text-slate-700 hover:bg-white/50 dark:text-slate-200 dark:hover:bg-white/10",
|
||||
icon: "size-10 border border-white/30 bg-white/30 text-slate-800 backdrop-blur-xl hover:bg-white/50 dark:border-white/10 dark:bg-white/10 dark:text-white dark:hover:bg-white/20",
|
||||
default: "bg-foreground px-4 py-2.5 text-background hover:opacity-90",
|
||||
glass: "surface-control px-4 py-2.5 text-foreground hover:bg-surface-raised/90",
|
||||
ghost: "px-3 py-2 text-muted hover:bg-surface-muted/70 hover:text-foreground",
|
||||
icon: "surface-control size-10 text-foreground hover:bg-surface-raised/90",
|
||||
},
|
||||
},
|
||||
defaultVariants: { variant: "default" },
|
||||
|
||||
@@ -2,5 +2,5 @@ import type { HTMLAttributes } from "react";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export function Card({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
|
||||
return <div className={cn("glass rounded-[1.75rem]", className)} {...props} />;
|
||||
return <div className={cn("glass rounded-panel", className)} {...props} />;
|
||||
}
|
||||
|
||||
@@ -8,12 +8,12 @@ export function LanguageToggle() {
|
||||
return (
|
||||
<label className="relative flex items-center">
|
||||
<span className="sr-only">{t("language.label")}</span>
|
||||
<Languages className="pointer-events-none absolute left-3 size-4 text-slate-700 dark:text-slate-200" />
|
||||
<Languages className="pointer-events-none absolute left-3 size-4 text-muted" />
|
||||
<select
|
||||
aria-label={t("language.label")}
|
||||
value={language}
|
||||
onChange={(event) => setLanguage(event.target.value as Language)}
|
||||
className="h-10 appearance-none rounded-full border border-white/30 bg-white/30 py-2 pl-9 pr-3 text-xs font-semibold uppercase text-slate-800 backdrop-blur-xl transition hover:bg-white/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sky-500 dark:border-white/10 dark:bg-white/10 dark:text-white dark:hover:bg-white/20"
|
||||
className="surface-control h-10 appearance-none rounded-control py-2 pl-9 pr-3 text-xs font-semibold uppercase text-foreground transition hover:bg-surface-raised/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"
|
||||
>
|
||||
<option value="pl">{t("language.polish")}</option>
|
||||
<option value="en">{t("language.english")}</option>
|
||||
|
||||
Reference in New Issue
Block a user