-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adjust typography component, fix theme types #3066
Conversation
cb2a5c9
to
d8f980b
Compare
const CustomDarkTheme = { | ||
...DarkTheme, | ||
colors: { | ||
...DarkTheme.colors, | ||
customColor: '#BADA55', | ||
}, | ||
fonts: { | ||
...DarkTheme.fonts, | ||
superLight: { ...DarkTheme.fonts['light'] }, | ||
}, | ||
animation: { | ||
...DarkTheme.animation, | ||
customProperty: 1, | ||
}, | ||
}; | ||
|
||
const CustomDefaultTheme = { | ||
...DefaultTheme, | ||
colors: { | ||
...DefaultTheme.colors, | ||
customColor: '#BADA55', | ||
}, | ||
fonts: { | ||
...DefaultTheme.fonts, | ||
superLight: { ...DefaultTheme.fonts['light'] }, | ||
}, | ||
userDefinedThemeProperty: '', | ||
animation: { | ||
...DefaultTheme.animation, | ||
customProperty: 1, | ||
}, | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lukewalczak We need to keep that in mind and decide whether we still want to bring it back or maybe instead of this include a section in our docs on how to override themes
c1d55c7
to
a5ee163
Compare
So it turns out our Expo Preview job either doesn't clear cache or uses a different dependency version (@babel/core, @babel/parser?) than when running the build locally. I spoke directly to @lukewalczak and we decided that we will move on and deal with this issue later, as it does not prevent us from developing MD3 components locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the next iteration we need to:
- refine the process of overriding themes
- fix Expo Preview jo
Summary
This PR introduces a new way of approaching typography - a
<Text>
component with multiplevariants
that are Material 3 compliantUsage
<Text variant="heading-large" />
Test plan
<Text variant="...">
usage)