Skip to content

Commit d4b8fdb

Browse files
committed
[Toolkit][Shadcn] Align typography with shadcn reference
1 parent f9bd100 commit d4b8fdb

28 files changed

Lines changed: 632 additions & 375 deletions

File tree

src/Toolkit/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
- [Shadcn] Align `textarea` with shadcn reference
2828
- [Shadcn] Align `toggle` with shadcn reference
2929
- [Shadcn] Align `tooltip` with shadcn reference
30+
- [Shadcn] Align `typography` with shadcn reference
3031

3132
## 3.0.0
3233

src/Toolkit/kits/shadcn/typography/examples/Arabic.html.twig

Lines changed: 0 additions & 66 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<twig:Typography:Blockquote>
1+
<blockquote class="mt-6 border-l-2 pl-6 italic">
22
"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."
3-
</twig:Typography:Blockquote>
3+
</blockquote>
Lines changed: 75 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,76 @@
1-
<div class="self-start w-full">
2-
<twig:Typography:H1>Taxing Laughter: The Joke Tax Chronicles</twig:Typography:H1>
3-
<twig:Typography:P class="text-xl text-muted-foreground">
4-
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.
5-
</twig:Typography:P>
6-
<twig:Typography:H2 class="mt-10">The King's Plan</twig:Typography:H2>
7-
<twig:Typography:P>
8-
The king thought long and hard, and finally came up with <a href="#" class="font-medium text-primary underline underline-offset-4">a brilliant plan</a>: he would tax the jokes in the kingdom.
9-
</twig:Typography:P>
10-
<twig:Typography:Blockquote>
11-
"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."
12-
</twig:Typography:Blockquote>
13-
<twig:Typography:H3 class="mt-8">The Joke Tax</twig:Typography:H3>
14-
<twig:Typography:P>
15-
The king's subjects were not amused. They grumbled and complained, but the king was firm:
16-
</twig:Typography:P>
17-
<twig:Typography:List>
18-
<li>1st level of puns: 5 gold coins</li>
19-
<li>2nd level of jokes: 10 gold coins</li>
20-
<li>3rd level of one-liners : 20 gold coins</li>
21-
</twig:Typography:List>
22-
<twig:Typography:P>
23-
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.
24-
</twig:Typography:P>
25-
<twig:Typography:H3 class="mt-8">Jokester's Revolt</twig:Typography:H3>
26-
<twig:Typography:P>
27-
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.
28-
</twig:Typography:P>
29-
<twig:Typography:P>
30-
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.
31-
</twig:Typography:P>
32-
<twig:Typography:H3 class="mt-8">The People's Rebellion</twig:Typography:H3>
33-
<twig:Typography:P>
34-
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.
35-
</twig:Typography:P>
36-
<div class="my-6 w-full overflow-y-auto">
37-
<table class="w-full">
38-
<thead>
39-
<tr class="m-0 border-t p-0 even:bg-muted">
40-
<th class="border px-4 py-2 text-left font-bold">King's Treasury</th>
41-
<th class="border px-4 py-2 text-left font-bold">People's happiness</th>
42-
</tr>
43-
</thead>
44-
<tbody>
45-
<tr class="m-0 border-t p-0 even:bg-muted">
46-
<td class="border px-4 py-2 text-left">Empty</td>
47-
<td class="border px-4 py-2 text-left">Overflowing</td>
48-
</tr>
49-
<tr class="m-0 border-t p-0 even:bg-muted">
50-
<td class="border px-4 py-2 text-left">Modest</td>
51-
<td class="border px-4 py-2 text-left">Satisfied</td>
52-
</tr>
53-
<tr class="m-0 border-t p-0 even:bg-muted">
54-
<td class="border px-4 py-2 text-left">Full</td>
55-
<td class="border px-4 py-2 text-left">Ecstatic</td>
56-
</tr>
57-
</tbody>
58-
</table>
59-
</div>
60-
<twig:Typography:P>
61-
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.
62-
</twig:Typography:P>
63-
<twig:Typography:P>
64-
The moral of the story is: never underestimate the power of a good laugh and always be careful of bad ideas.
65-
</twig:Typography:P>
1+
<div>
2+
<h1 class="scroll-m-20 text-4xl font-extrabold tracking-tight text-balance">
3+
Taxing Laughter: The Joke Tax Chronicles
4+
</h1>
5+
<p class="text-xl leading-7 text-muted-foreground [&:not(:first-child)]:mt-6">
6+
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.
7+
</p>
8+
<h2 class="mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0">
9+
The King's Plan
10+
</h2>
11+
<p class="leading-7 [&:not(:first-child)]:mt-6">
12+
The king thought long and hard, and finally came up with <a href="#" class="font-medium text-primary underline underline-offset-4">a brilliant plan</a>: he would tax the jokes in the kingdom.
13+
</p>
14+
<blockquote class="mt-6 border-l-2 pl-6 italic">
15+
"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."
16+
</blockquote>
17+
<h3 class="mt-8 scroll-m-20 text-2xl font-semibold tracking-tight">
18+
The Joke Tax
19+
</h3>
20+
<p class="leading-7 [&:not(:first-child)]:mt-6">
21+
The king's subjects were not amused. They grumbled and complained, but the king was firm:
22+
</p>
23+
<ul class="my-6 ml-6 list-disc [&>li]:mt-2">
24+
<li>1st level of puns: 5 gold coins</li>
25+
<li>2nd level of jokes: 10 gold coins</li>
26+
<li>3rd level of one-liners : 20 gold coins</li>
27+
</ul>
28+
<p class="leading-7 [&:not(:first-child)]:mt-6">
29+
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.
30+
</p>
31+
<h3 class="mt-8 scroll-m-20 text-2xl font-semibold tracking-tight">
32+
Jokester's Revolt
33+
</h3>
34+
<p class="leading-7 [&:not(:first-child)]:mt-6">
35+
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.
36+
</p>
37+
<p class="leading-7 [&:not(:first-child)]:mt-6">
38+
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.
39+
</p>
40+
<h3 class="mt-8 scroll-m-20 text-2xl font-semibold tracking-tight">
41+
The People's Rebellion
42+
</h3>
43+
<p class="leading-7 [&:not(:first-child)]:mt-6">
44+
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.
45+
</p>
46+
<div class="my-6 w-full overflow-y-auto">
47+
<table class="w-full">
48+
<thead>
49+
<tr class="m-0 border-t p-0 even:bg-muted">
50+
<th class="border px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right">King's Treasury</th>
51+
<th class="border px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right">People's happiness</th>
52+
</tr>
53+
</thead>
54+
<tbody>
55+
<tr class="m-0 border-t p-0 even:bg-muted">
56+
<td class="border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right">Empty</td>
57+
<td class="border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right">Overflowing</td>
58+
</tr>
59+
<tr class="m-0 border-t p-0 even:bg-muted">
60+
<td class="border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right">Modest</td>
61+
<td class="border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right">Satisfied</td>
62+
</tr>
63+
<tr class="m-0 border-t p-0 even:bg-muted">
64+
<td class="border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right">Full</td>
65+
<td class="border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right">Ecstatic</td>
66+
</tr>
67+
</tbody>
68+
</table>
69+
</div>
70+
<p class="leading-7 [&:not(:first-child)]:mt-6">
71+
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.
72+
</p>
73+
<p class="leading-7 [&:not(:first-child)]:mt-6">
74+
The moral of the story is: never underestimate the power of a good laugh and always be careful of bad ideas.
75+
</p>
6676
</div>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
<twig:Typography:H1 class="text-center">Taxing Laughter: The Joke Tax Chronicles</twig:Typography:H1>
1+
<h1 class="scroll-m-20 text-center text-4xl font-extrabold tracking-tight text-balance">
2+
Taxing Laughter: The Joke Tax Chronicles
3+
</h1>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
<twig:Typography:H2>The People of the Kingdom</twig:Typography:H2>
1+
<h2 class="scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0">
2+
The People of the Kingdom
3+
</h2>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
<twig:Typography:H3>The Joke Tax</twig:Typography:H3>
1+
<h3 class="scroll-m-20 text-2xl font-semibold tracking-tight">
2+
The Joke Tax
3+
</h3>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
<twig:Typography:H4>People stopped telling jokes</twig:Typography:H4>
1+
<h4 class="scroll-m-20 text-xl font-semibold tracking-tight">
2+
People stopped telling jokes
3+
</h4>

src/Toolkit/kits/shadcn/typography/examples/Hebrew.html.twig

Lines changed: 0 additions & 66 deletions
This file was deleted.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
<twig:Typography:InlineCode>@radix-ui/react-alert-dialog</twig:Typography:InlineCode>
1+
<code class="relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold">
2+
@radix-ui/react-alert-dialog
3+
</code>

0 commit comments

Comments
 (0)