Skip to content

Commit 50cad42

Browse files
restored typography config, removed in 7a820f3
1 parent 50d2eaa commit 50cad42

File tree

4 files changed

+66
-2
lines changed

4 files changed

+66
-2
lines changed

assets/css/main.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
@plugin '@tailwindcss/forms';
99
@plugin '@tailwindcss/typography';
1010

11+
@config './tailwind.config.js';
12+
1113
@theme {
1214
--color-*: initial;
1315
--color-transparent: transparent;

package-lock.json

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
},
1919
"devDependencies": {
2020
"@tailwindcss/cli": "^4.0.4",
21+
"@tailwindcss/typography": "^0.5.16",
2122
"tailwindcss": "^4.0.4"
2223
},
2324
"dependencies": {
2425
"@skymatic/fontawesome-pro": "^5.15.4",
2526
"@tailwindcss/forms": "^0.5.7",
26-
"@tailwindcss/typography": "^0.5.13",
2727
"alpinejs": "^3.14.1",
2828
"jquery": "^3.7.1",
2929
"js-yaml": "^4.1.0",

tailwind.config.js

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
theme: {
4+
extend: {
5+
typography: (theme) => ({
6+
DEFAULT: {
7+
css: {
8+
a: {
9+
color: 'var(--color-primary)',
10+
textDecoration: 'none',
11+
'&:hover': {
12+
color: 'var(--color-primary)',
13+
textDecoration: 'underline',
14+
},
15+
},
16+
h1: {
17+
fontFamily: 'var(--font-headline)',
18+
fontWeight: 'var(--font-weight-medium)',
19+
},
20+
h2: {
21+
fontFamily: 'var(--font-headline)',
22+
fontWeight: 'var(--font-weight-medium)',
23+
},
24+
h3: {
25+
fontFamily: 'var(--font-headline)',
26+
fontWeight: 'var(--font-weight-normal)',
27+
},
28+
h4: {
29+
fontFamily: 'var(--font-headline)',
30+
fontWeight: 'var(--font-weight-normal)',
31+
},
32+
'code::before': {
33+
content: 'unset',
34+
},
35+
'code::after': {
36+
content: 'unset',
37+
},
38+
blockquote: {
39+
fontStyle: 'normal',
40+
},
41+
'blockquote p:first-of-type::before': {
42+
content: 'unset',
43+
},
44+
'blockquote p:last-of-type::after': {
45+
content: 'unset',
46+
},
47+
'ul > li::before': {
48+
backgroundColor: 'var(--color-gray-500)',
49+
},
50+
},
51+
}
52+
}),
53+
},
54+
}
55+
}

0 commit comments

Comments
 (0)