Skip to content

Commit

Permalink
fix: show proper theme in EarnAmountInput (#2044)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschlabach authored Feb 26, 2025
1 parent 3e51ac0 commit 9adc482
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/earn/components/EarnAmountInput.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TextInput } from '@/internal/components/TextInput';
import { isValidAmount } from '@/internal/utils/isValidAmount';
import { cn } from '@/styles/theme';
import { cn, color, text } from '@/styles/theme';
import { formatAmount } from '@/swap/utils/formatAmount';
import type { EarnAmountInputReact } from '../types';

Expand All @@ -18,7 +18,9 @@ export function EarnAmountInput({
>
<TextInput
className={cn(
'w-full border-none bg-transparent font-display text-5xl',
text.base,
color.foreground,
'w-full border-none bg-transparent text-5xl',
'leading-none outline-none',
)}
placeholder="0.0"
Expand Down
1 change: 1 addition & 0 deletions src/styles/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export function cn(...inputs: ClassValue[]) {
}

export const text = {
base: 'ock-font-family',
body: 'ock-font-family font-normal text-base',
caption: 'ock-font-family font-semibold text-xs',
headline: 'ock-font-family font-semibold',
Expand Down

0 comments on commit 9adc482

Please sign in to comment.