Style React fast with 100% parity on React Native, an optional UI kit, and optimizing compiler.
10.14k
stars
405
forks
source link
SizableText or Paragraph styled component don't apply `color`, `fontSize` nor `tag` #2621
Closed
guillempuche closed 1 week ago
Current Behavior
My text component based on Material Design typography https://m3.material.io/styles/typography/ has default font size, color and tag, but Tamagui doesn't use them.
// Example NOT WORKING
// Example WORKING (it doesn't apply the default settings, but manually)
HTML element should be
<h1>
, but keep being<span>
// text.tsx
Some Tamagui config files below.
// fonts.ts
Color tokens based on Material Design 3 https://github.com/material-foundation/material-tokens: // colors.ts
Expected Behavior
Styled text component shows the default behavior (
fontSize=54
andcolor=$onBackground
)Tamagui Version
Platform (Web, iOS, Android)
Reproduction
System Info