💄 UI Tweaks (#1673)

This commit is contained in:
Luke Vella 2025-04-18 11:28:56 +01:00 committed by GitHub
parent e20b04a259
commit 7faa698b18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 32 additions and 30 deletions

View file

@ -4,12 +4,12 @@ import * as React from "react";
import { cn } from "./lib/utils";
const badgeVariants = cva(
"inline-flex group whitespace-nowrap items-center rounded-full justify-center font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
"inline-flex group whitespace-nowrap items-center rounded-full justify-center transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
{
variants: {
variant: {
primary: "bg-primary text-primary-50",
default: "bg-gray-50 border text-muted-foreground",
default: "bg-gray-50 border",
destructive: "bg-destructive text-destructive-foreground",
outline: "text-foreground",
green: "bg-green-600 text-white",

View file

@ -10,18 +10,18 @@ import { cn } from "./lib/utils";
const buttonVariants = cva(
cn(
"inline-flex border text-shadow font-medium disabled:pointer-events-none select-none disabled:opacity-50 items-center justify-center whitespace-nowrap border",
"focus:shadow-none focus-visible:ring-2 focus-visible:ring-ring",
"focus-visible:shadow-none",
),
{
variants: {
variant: {
primary:
"focus:ring-offset-1 border-primary bg-primary hover:bg-primary-500 disabled:bg-gray-400 disabled:border-transparent text-white shadow-sm",
"focus-visible:ring-offset-1 border-primary bg-primary hover:bg-primary-500 disabled:bg-gray-400 disabled:border-transparent text-white",
destructive:
"focus:ring-offset-1 bg-destructive shadow-sm text-destructive-foreground active:bg-destructive border-destructive hover:bg-destructive/90",
default: "focus:ring-offset-1 hover:bg-gray-50 bg-white",
"focus-visible:ring-offset-1 bg-destructive shadow-sm text-destructive-foreground active:bg-destructive border-destructive hover:bg-destructive/90",
default: "focus-visible:ring-offset-1 hover:bg-gray-50 bg-white",
secondary:
"focus:ring-offset-1 border-secondary bg-secondary hover:bg-secondary/80 text-secondary-foreground",
"focus-visible:ring-offset-1 border-secondary bg-secondary hover:bg-secondary/80 text-secondary-foreground",
ghost:
"border-transparent bg-transparent data-[state=open]:bg-gray-500/20 text-gray-800 hover:bg-gray-500/10 active:bg-gray-500/20",
actionBar: