fix(theme): add default color to all typography tokens to prevent black text on dark theme

This commit is contained in:
fightrate-bot committed 2026-06-16 14:51:13 -03:00
1 parent eb88ff95c4
commit e16d31318b
1 file changed
+11
+11
View File
@@ -10,14 +10,18 @@ const display: TextStyle = {
fontVariant: ['tabular-nums'] as TextStyle['fontVariant'], fontVariant: ['tabular-nums'] as TextStyle['fontVariant'],
}; };
import { colors } from './colors';
export const typography = { export const typography = {
display: { display: {
color: colors.text,
fontSize: 82, fontSize: 82,
lineHeight: 74, lineHeight: 74,
fontWeight: '900' as const, fontWeight: '900' as const,
letterSpacing: -7, letterSpacing: -7,
}, },
displaySmall: { displaySmall: {
color: colors.text,
fontSize: 48, fontSize: 48,
lineHeight: 46, lineHeight: 46,
fontWeight: '900' as const, fontWeight: '900' as const,
@@ -25,6 +29,7 @@ export const typography = {
}, },
displayNumeric: { displayNumeric: {
...display, ...display,
color: colors.text,
fontSize: 110, fontSize: 110,
lineHeight: 100, lineHeight: 100,
fontWeight: '900' as const, fontWeight: '900' as const,
@@ -32,6 +37,7 @@ export const typography = {
}, },
displaySmallNumeric: { displaySmallNumeric: {
...display, ...display,
color: colors.text,
fontSize: 56, fontSize: 56,
lineHeight: 54, lineHeight: 54,
fontWeight: '900' as const, fontWeight: '900' as const,
@@ -39,6 +45,7 @@ export const typography = {
}, },
metricNumeric: { metricNumeric: {
...numeric, ...numeric,
color: colors.text,
fontSize: 28, fontSize: 28,
lineHeight: 30, lineHeight: 30,
fontWeight: '800' as const, fontWeight: '800' as const,
@@ -46,12 +53,14 @@ export const typography = {
}, },
detailNumeric: { detailNumeric: {
...numeric, ...numeric,
color: colors.text,
fontSize: 18, fontSize: 18,
lineHeight: 22, lineHeight: 22,
fontWeight: '800' as const, fontWeight: '800' as const,
letterSpacing: -0.8, letterSpacing: -0.8,
}, },
label: { label: {
color: colors.text,
fontSize: 10, fontSize: 10,
lineHeight: 13, lineHeight: 13,
fontWeight: '900' as const, fontWeight: '900' as const,
@@ -59,11 +68,13 @@ export const typography = {
textTransform: 'uppercase' as const, textTransform: 'uppercase' as const,
}, },
body: { body: {
color: colors.text,
fontSize: 15, fontSize: 15,
lineHeight: 22, lineHeight: 22,
fontWeight: '500' as const, fontWeight: '500' as const,
}, },
button: { button: {
color: colors.text,
fontSize: 12, fontSize: 12,
lineHeight: 16, lineHeight: 16,
fontWeight: '900' as const, fontWeight: '900' as const,