bugfix: the whole theming structure overhauled. light/dark mode icon added.

This commit is contained in:
2026-04-29 01:22:53 +03:30
parent bdd889ac09
commit a264523e12
20 changed files with 422 additions and 217 deletions

View File

@@ -24,24 +24,24 @@ export const Button: React.FC<ButtonProps> = ({
...props
}) => {
const baseClasses =
'inline-flex items-center justify-center rounded-lg font-medium transition-all duration-200 ' +
'focus:outline-none focus:ring-2 focus:ring-primary disabled:opacity-50 disabled:cursor-not-allowed';
'inline-flex items-center justify-center rounded-[var(--radius-md)] font-medium transition-all duration-200 ' +
'focus:outline-none focus:ring-2 focus:ring-primary/40 disabled:opacity-50 disabled:cursor-not-allowed';
const variantClasses: Record<ButtonVariant, string> = {
primary:
'bg-primary text-black hover:opacity-90',
'bg-primary text-primary-contrast hover:brightness-105 shadow-[0_0_0_1px_var(--color-primary-soft)]',
secondary:
'bg-background-secondary text-text-primary hover:bg-background-card',
'bg-surface-elevated text-text-primary border border-border hover:border-border-strong',
outline:
'border border-border text-text-primary hover:bg-background-card',
'border border-border text-text-primary hover:bg-background-card/70',
danger:
'bg-red-600 text-white hover:bg-red-700',
ghost:
'text-text-secondary hover:bg-background-card',
'text-text-secondary hover:text-text-primary hover:bg-background-card/70',
};
const sizeClasses: Record<ButtonSize, string> = {