apps/web: change prod danger color
pacakges/ui: fix button secondary className
This commit is contained in:
parent
7c9dc6f855
commit
c0178de98d
@ -1,9 +1,9 @@
|
|||||||
import { env } from '../config/env';
|
import { env } from '../config/env';
|
||||||
|
|
||||||
export const COLORS_PROD = {
|
export const COLORS_PROD = {
|
||||||
COLOR_DANGER: '#D10000',
|
COLOR_DANGER: '#B20004',
|
||||||
COLOR_PRIMARY: '#1C01A9',
|
COLOR_PRIMARY: '#1C01A9',
|
||||||
COLOR_SECONDARY: '#3A0185',
|
COLOR_SECONDARY: '#5A31D6',
|
||||||
COLOR_TERTIARTY: '#580161',
|
COLOR_TERTIARTY: '#580161',
|
||||||
};
|
};
|
||||||
export const COLORS_DEV = {
|
export const COLORS_DEV = {
|
||||||
|
|||||||
@ -19,8 +19,8 @@ const variants = cva(
|
|||||||
'outline-default':
|
'outline-default':
|
||||||
'bg-transparent text-primary border border-primary hover:bg-primary hover:text-white',
|
'bg-transparent text-primary border border-primary hover:bg-primary hover:text-white',
|
||||||
'outline-secondary':
|
'outline-secondary':
|
||||||
'opacity-70 bg-transparent text-primary border border-primary hover:bg-primary hover:text-white',
|
'opacity-70 bg-transparent text-secondary border border-secondary hover:bg-secondary hover:text-white',
|
||||||
secondary: 'bg-primary-400 hover:bg-primary-700 hover:opacity-100',
|
secondary: 'bg-secondary hover:bg-secondary-700',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -29,12 +29,7 @@ const variants = cva(
|
|||||||
export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof variants>;
|
export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof variants>;
|
||||||
|
|
||||||
export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
||||||
({ className, intent, type, ...props }, ref) => (
|
({ className, intent, ...props }, ref) => (
|
||||||
<button
|
<button type="button" className={cn(variants({ className, intent }))} ref={ref} {...props} />
|
||||||
type="button"
|
|
||||||
className={cn(variants({ className, intent, type }))}
|
|
||||||
ref={ref}
|
|
||||||
{...props}
|
|
||||||
/>
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user