File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
apps/sim/components/emcn/components Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import { cn } from '@/lib/core/utils/cn'
1616 * - **info** - Blue background for informational highlights
1717 * - **success** - Green background for positive confirmations
1818 */
19+ // TODO: Replace raw Tailwind palette colors with semantic tokens once
20+ // muted banner background tokens (e.g. --banner-destructive-bg) are added to globals.css.
1921const bannerVariants = cva ( 'shrink-0 px-6 py-2.5' , {
2022 variants : {
2123 variant : {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const switchThumbVariants = cva(
3838 {
3939 variants : {
4040 size : {
41- sm : 'h-2.5 w-2.5 data-[state=checked]:translate-x-[11px ] data-[state=unchecked]:translate-x-0.5' ,
41+ sm : 'h-2.5 w-2.5 data-[state=checked]:translate-x-[12px ] data-[state=unchecked]:translate-x-0.5' ,
4242 md : 'h-4 w-4 data-[state=checked]:translate-x-[18px] data-[state=unchecked]:translate-x-0.5' ,
4343 lg : 'h-5 w-5 data-[state=checked]:translate-x-[22px] data-[state=unchecked]:translate-x-0.5' ,
4444 } ,
Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ import { cn } from '@/lib/core/utils/cn'
1212 * - **ghost** - Transparent background, border only on focus/hover
1313 */
1414const textareaVariants = cva (
15- 'flex w-full touch-manipulation rounded-sm border font-medium font-sans text-sm text-[var(--text-primary)] transition-colors placeholder:text-[var(--text-muted)] outline-none resize-none overflow-auto disabled:cursor-not-allowed disabled:opacity-50' ,
15+ 'flex w-full touch-manipulation rounded-sm border px-2 py-2 font-medium font-sans text-sm text-[var(--text-primary)] transition-colors placeholder:text-[var(--text-muted)] outline-none resize-none overflow-auto disabled:cursor-not-allowed disabled:opacity-50' ,
1616 {
1717 variants : {
1818 variant : {
1919 default :
20- 'border-[var(--border-1)] bg-[var(--surface-5)] px-2 py-2 focus-visible:border-[var(--text-muted)]' ,
20+ 'border-[var(--border-1)] bg-[var(--surface-5)] focus-visible:border-[var(--text-muted)]' ,
2121 error :
22- 'border-[var(--text-error)] bg-[var(--surface-5)] px-2 py-2 focus-visible:border-[var(--text-error)]' ,
22+ 'border-[var(--text-error)] bg-[var(--surface-5)] focus-visible:border-[var(--text-error)]' ,
2323 ghost :
24- 'border-transparent bg-transparent px-2 py-2 hover-hover:bg-[var(--surface-4)] focus-visible:border-[var(--border-1)] focus-visible:bg-[var(--surface-5)]' ,
24+ 'border-transparent bg-transparent hover-hover:bg-[var(--surface-4)] focus-visible:border-[var(--border-1)] focus-visible:bg-[var(--surface-5)]' ,
2525 } ,
2626 } ,
2727 defaultVariants : {
You can’t perform that action at this time.
0 commit comments