Skip to content

Commit 966de63

Browse files
committed
Update typography styles
1 parent 4e31683 commit 966de63

File tree

3 files changed

+45
-6
lines changed

3 files changed

+45
-6
lines changed

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ eleventyNavigation:
99

1010
> OpenType features are like secret compartments in fonts. Unlock them and you'll find ways to make fonts look and behave differently in subtle and dramatic ways. Not all OpenType features are appropriate to use all of the time, but some features are critical for great typography.
1111
12-
::figcaption[— Tim Brown, Head of Typography at Adobe]
12+
::figcaption[**Tim Brown**, Head of Typography at Adobe]
1313

1414
:::
1515

docs/src/layouts/home.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ isHome: true
55

66
<div className="px-4 pt-10 pb-24 sm:px-6 xl:pr-0">
77
<p
8-
class="text-sky-500 dark:text-sky-400 font-mono text-sm/6 font-semibold tracking-widest uppercase mb-3 max-2xl:mb-4 sm:text-xs/6"
8+
class="text-sky-500 dark:text-sky-400 font-mono text-xs/6 font-medium tracking-widest uppercase mb-4"
99
>
1010
TailwindCSS × OpenType
1111
</p>
1212
<h1
13-
class="capsize text-gray-950 dark:text-white text-4xl tracking-tighter text-balance max-lg:font-medium sm:text-5xl lg:text-6xl xl:text-8xl mb-8"
13+
class="capsize text-gray-950 dark:text-white text-4xl tracking-tighter text-balance max-lg:font-medium sm:text-5xl lg:text-6xl xl:text-8xl mb-10"
1414
>
1515
Tailwind CSS utility classes for advanced typographic features.
1616
</h1>
1717
<p
18-
class="mb-6 max-w-(--breakpoint-md) text-lg/7 font-medium text-gray-600 dark:text-gray-400"
18+
class="mb-6 max-w-(--breakpoint-md) text-lg/7 tracking-tight font-medium text-gray-600 dark:text-gray-400"
1919
>
2020
These utilities help you make the most of the font that you are using &amp;
2121
make your web typography truly sing.

docs/tailwind.config.js

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,47 @@ const config = {
130130
fontWeight: 'inherit',
131131
color: 'inherit',
132132
},
133-
'h3 code::before': { content: 'none' },
134-
'h3 code::after': { content: 'none' },
133+
'code::before': { content: 'none' },
134+
'code::after': { content: 'none' },
135+
a: {
136+
textUnderlineOffset: '2px',
137+
},
138+
'a:not(:is(:hover, :focus))': {
139+
textDecorationColor:
140+
'color-mix(in srgb, currentColor, transparent 50%)',
141+
},
142+
'figure:has(blockquote)': {
143+
margin: '4rem 0',
144+
figcaption: {
145+
textAlign: 'end',
146+
},
147+
},
148+
blockquote: {
149+
fontSize: 'var(--text-xl)',
150+
fontStyle: 'normal',
151+
fontWeight: '500',
152+
lineHeight: 'calc(var(--spacing) * 9)',
153+
letterSpacing: 'var(--tracking-tight)',
154+
border: '0',
155+
'@media (min-width: 40rem)': {
156+
fontSize: 'var(--text-2xl)',
157+
lineHeight: 'calc(var(--spacing) * 10)',
158+
},
159+
},
160+
'blockquote p': { position: 'relative' },
161+
'blockquote p::before': {
162+
position: 'absolute',
163+
top: '1rem',
164+
left: '-1.5rem',
165+
fontSize: '6rem',
166+
color:
167+
'light-dark(color-mix(in oklab, var(--color-gray-950) 10%, transparent), color-mix(in oklab, #fff 10%, transparent))',
168+
content: '“',
169+
pointerEvents: 'none',
170+
'@media (min-width: 64rem)': {
171+
fontSize: '8rem',
172+
},
173+
},
135174
table: {
136175
fontSize: theme('fontSize.sm')[0],
137176
lineHeight: theme('fontSize.sm')[1].lineHeight,

0 commit comments

Comments
 (0)