mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
42 lines
917 B
TypeScript
42 lines
917 B
TypeScript
// Tremor Raw cx [v0.0.0]
|
|
import { type ClassValue, clsx } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
export function cx(...args: ClassValue[]) {
|
|
return twMerge(clsx(...args));
|
|
}
|
|
|
|
// Tremor focusInput [v0.0.2]
|
|
|
|
export const focusInput = [
|
|
// base
|
|
"focus:ring-2",
|
|
// ring color
|
|
"focus:ring-blue-200 dark:focus:ring-blue-700/30",
|
|
// border color
|
|
"focus:border-blue-500 dark:focus:border-blue-700",
|
|
];
|
|
|
|
// Tremor Raw focusRing [v0.0.1]
|
|
|
|
export const focusRing = [
|
|
// base
|
|
"outline outline-offset-2 outline-0 focus-visible:outline-2",
|
|
// outline color
|
|
"outline-blue-500 dark:outline-blue-500",
|
|
];
|
|
|
|
// Tremor Raw hasErrorInput [v0.0.1]
|
|
|
|
export const hasErrorInput = [
|
|
// base
|
|
"ring-2",
|
|
// border color
|
|
"border-red-500 dark:border-red-700",
|
|
// ring color
|
|
"ring-red-200 dark:ring-red-700/30",
|
|
];
|