Documentation and examples for FrankenstyleKit typography, including headings, body text, lists, and more.
Once upon a time, in a far-off land, there was a very lazy king who spent all day lounging on his throne. One day, his advisors came to him with a problem: the kingdom was running out of money.
The king thought long and hard, and finally came up with a brilliant plan: he would tax the jokes in the kingdom.
"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."
The king's subjects were not amused. They grumbled and complained, but the king was firm:
As a result, people stopped telling jokes, and the kingdom fell into a gloom. But there was one person who refused to let the king's foolishness get him down: a court jester named Jokester.
Jokester began sneaking into the castle in the middle of the night and leaving jokes all over the place: under the king's pillow, in his soup, even in the royal toilet. The king was furious, but he couldn't seem to stop Jokester.
And then, one day, the people of the kingdom discovered that the jokes left by Jokester were so funny that they couldn't help but laugh. And once they started laughing, they couldn't stop.
The people of the kingdom, feeling uplifted by the laughter, started to tell jokes and puns again, and soon the entire kingdom was in on the joke.
| King's Treasury | People's happiness |
|---|---|
| Empty | Overflowing |
| Modest | Satisfied |
| Full | Ecstatic |
The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax. Jokester was declared a hero, and the kingdom lived happily ever after.
The moral of the story is: never underestimate the power of a good laugh and always be careful of bad ideas.
Add one of the following classes to modify the size and style of headings. Usually, these classes would be used on heading elements, but they work also with any other element like a div element.
| Class | Description |
|---|---|
.uk-h1 | Add this class to apply an h1 heading. |
.uk-h2 | Add this class to apply an h2 heading. |
.uk-h3 | Add this class to apply an h3 heading. |
.uk-h4 | Add this class to apply an h4 heading. |
.uk-h5 | Add this class to apply an h5 heading. |
.uk-h6 | Add this class to apply an h6 heading. |
Add one of the following classes to apply hero headings. These classes are typically used to add a prominent message with a very large font size.
| Class | Description |
|---|---|
.uk-hero-small | Add this class to apply a small-sized heading. |
.uk-hero-medium | Add this class to apply a medium-sized heading. |
.uk-hero-large | Add this class to apply a large-sized heading. |
.uk-hero-xlarge | Add this class to apply a xlarge-sized heading. |
.uk-hero-2xlarge | Add this class to apply a 2xlarge-sized heading. |
.uk-hero-3xlarge | Add this class to apply a 3xlarge-sized heading. |
Add one of the following classes to modify the size and style of headings.
| Class | Description |
|---|---|
.uk-heading-divider | Add this class to apply a divider to a heading. |
.uk-heading-line | Add this class to apply a vertically centered line to a heading. |
.uk-heading-bullet | Add this class to apply a bullet to a heading. |
The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax.
"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."
FrankenstyleKit offers various text utilities to style your text.
| Class | Description |
|---|---|
.uk-text-lead | Add this class to highlight text, for example in article subtitles. |
.uk-text-meta | |
.uk-text-truncate | Prevents text from wrapping into multiple lines, truncating it and displaying an ellipsis instead. |
.uk-text-break | Breaks strings, if their length exceeds the width of their container. |
To apply a gradient or background image to text, add the .uk-text-background class to a <span> element inside the text element. Styles that don’t define a background-image, will apply the primary color.