Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit 6a9040c

Browse files
adding tailwind prefix and new section theme for typography
1 parent ab5b519 commit 6a9040c

File tree

1 file changed

+31
-10
lines changed

1 file changed

+31
-10
lines changed

packages/section-blog-theme/tailwind.config.js

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
/** @type {import('tailwindcss').Config} */
2-
32
module.exports = {
4-
important: true,
53
darkMode: ["class"],
64
content: [
7-
'./pages/**/*.{ts,tsx}',
85
'./components/**/*.{ts,tsx}',
9-
'./app/**/*.{ts,tsx}',
106
'./src/**/*.{ts,tsx}',
117
],
8+
prefix: 'nx-',
129
theme: {
1310
container: {
1411
center: true,
@@ -18,6 +15,30 @@ module.exports = {
1815
},
1916
},
2017
extend: {
18+
typography: () => ({
19+
section: {
20+
css: {
21+
'--tw-format-body': "hsl(var(--foreground))",
22+
'--tw-format-headings': "hsl(var(--foreground))",
23+
'--tw-format-lead': "hsl(var(--foreground))",
24+
'--tw-format-links': "hsl(var(--foreground))",
25+
'--tw-format-bold': "hsl(var(--foreground))",
26+
'--tw-format-counters': "hsl(var(--foreground))",
27+
'--tw-format-bullets': "hsl(var(--foreground))",
28+
'--tw-format-hr': "hsl(var(--foreground))",
29+
'--tw-format-quotes': "hsl(var(--foreground))",
30+
'--tw-format-quote-borders': "hsl(var(--foreground))",
31+
'--tw-format-captions': "hsl(var(--foreground))",
32+
'--tw-format-code': "hsl(var(--accent-foreground))",
33+
'--tw-format-code-bg': "hsl(var(--accent))", // code
34+
'--tw-format-pre-code': "hsl(var(--foreground))", // pre code
35+
'--tw-format-pre-bg': "hsl(var(--accent))", // pre code backgaroud
36+
'--tw-format-th-bg': "hsl(var(--accent))",
37+
'--tw-format-th-borders': "hsl(var(--border))",
38+
'--tw-format-td-borders': "hsl(var(--border))",
39+
},
40+
},
41+
}),
2142
colors: {
2243
border: "hsl(var(--border))",
2344
input: "hsl(var(--input))",
@@ -60,19 +81,19 @@ module.exports = {
6081
},
6182
keyframes: {
6283
"accordion-down": {
63-
from: { height: 0 },
84+
from: { height: "0" },
6485
to: { height: "var(--radix-accordion-content-height)" },
6586
},
6687
"accordion-up": {
6788
from: { height: "var(--radix-accordion-content-height)" },
68-
to: { height: 0 },
89+
to: { height: "0" },
6990
},
7091
},
7192
animation: {
7293
"accordion-down": "accordion-down 0.2s ease-out",
7394
"accordion-up": "accordion-up 0.2s ease-out",
74-
}
75-
},
95+
},
96+
}
7697
},
77-
plugins: [require("tailwindcss-animate"), require('@tailwindcss/typography')],
78-
}
98+
plugins: [require("tailwindcss-animate"), require('flowbite-typography')],
99+
}

0 commit comments

Comments
 (0)