-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Innei <[email protected]>
- Loading branch information
Showing
5 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,44 @@ | ||
// Tremor Raw cx [v0.0.0] | ||
|
||
import type { ClassValue } from 'clsx' | ||
import clsx from 'clsx' | ||
import { twMerge } from 'tailwind-merge' | ||
|
||
export const clsxm = (...args: any[]) => { | ||
return twMerge(clsx(args)) | ||
} | ||
|
||
export function cx(...args: ClassValue[]) { | ||
return twMerge(clsx(...args)) | ||
} | ||
|
||
// Tremor Raw focusInput [v0.0.1] | ||
|
||
export const focusInput = [ | ||
// base | ||
'focus:ring-2', | ||
// ring color | ||
'focus:ring-blue-200 focus:dark:ring-blue-700/30', | ||
// border color | ||
'focus:border-blue-500 focus:dark: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', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters