Define the Typography Elements
caution
This document needs an UPGRADE
A Typography element is a special container that behaves identically to a Text element. You should define a new Typography element when you want to avoid the need to pass a style parameter manually. Typography.ui
and add the following code:
typography Text_H1();
typography Text_H2();
typography Text_H3();
That's it! You've just created three new Typography elements that you can style individually via a style file. You will use each throughout this project and will style them in the next section.
info
Typography elements can have a companion class just like templates and decorators!