Typography
Typography in Nowa themes allows you to define and manage text styles for your app.
With pre-defined text styles, you can create a consistent and polished look for all textual elements, ensuring they adapt dynamically to theme changes.
Default Typography Stylesβ
To access the Typography for each theme, click on themes.dart
inside Globals
> Typography
.
Each theme includes a set of pre-configured typography styles. These styles cover a wide range of use cases, from headings to body text. For example: you have Display Large
, Title Medium
, Headline Small
, Body Small
, Label Large
, etc
These styles ensure your text is well-structured and easy to read, providing a consistent visual hierarchy.
Connecting Text to Typographyβ
Each text widget in Nowa is linked to a typography style. This connection ensures that your app's text dynamically adapts to theme changes. To link or change a text style:
- Select a text widget.
- Click on the Style property in the widgetβs panel.
- Choose a typography style from the available list.
When the theme or typography details are updated, all text linked to that style will automatically reflect the changes.
Editing Typography Stylesβ
If you need to adjust a typography style:
- Open the
themes.dart
file in theglobals
folder. - Navigate to the desired theme.
- Select Typography and edit the style directly.
Changes to a typography style will affect all text widgets linked to that style, ensuring consistency across your app.
If you change the typography of the default theme, you will see the changes instantly reflected in your app's text.
You can also directly modify the typography for the selected default theme by selecting the Text
widget > Style
> then clicking on Edit
next to the typography that you wish to modify.
Customizing Typography for Specific Textβ
Sometimes, you might want to customize a text style without altering the main typography definition. You have two options:
-
Copy with Customization:
When the style is already connected to a typography, click on the Style property and choose Copy with to copy that typography style while overriding specific parts.
These changes wonβt update the typography itself within the theme. The parts that weren't changed will still follow the typography from the selected theme, while the overridden parts will remain fixed.
For example, you can add a strikethrough to an existing style without changing the original definition. Any future updates to the original typography (e.g., font size or color) will still apply to the customized text, but the strikethrough will remain.
-
Detach from Typography:
Click on the Style property and choose the Detach Style option to create a standalone style for the selected text widget.
This fully disconnects the text from the theme, allowing you to create a unique style for specific use cases.
Typography in Nowa gives you complete control over text styling while keeping things consistent and adaptable.
It ensures your app's text remains professional, readable, and aligned with your overall design.
Now youβre ready to create stunning and cohesive text styles for your app!