Skip to content

Commit 7f29c99

Browse files
authored
Merge pull request #1122 from dandedotdev/migrate-to-tailwind-v4
refactor: migrate to tailwind v4
2 parents ca50213 + 746893f commit 7f29c99

File tree

2 files changed

+41
-48
lines changed

2 files changed

+41
-48
lines changed

css/tailwind.css

+41-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import 'tailwindcss';
2-
@config '../tailwind.config.js';
2+
@plugin "@tailwindcss/forms";
3+
@plugin '@tailwindcss/typography';
34
@source '../node_modules/pliny';
45
@custom-variant dark (&:where(.dark, .dark *));
56

@@ -77,6 +78,45 @@
7778
}
7879
}
7980

81+
@layer utilities {
82+
.prose {
83+
& a {
84+
color: var(--color-primary-500);
85+
&:hover {
86+
color: var(--color-primary-600);
87+
}
88+
& code {
89+
color: var(--color-primary-400);
90+
}
91+
}
92+
& :where(h1, h2) {
93+
font-weight: 700;
94+
letter-spacing: var(--tracking-tight);
95+
}
96+
& h3 {
97+
font-weight: 600;
98+
}
99+
& :where(code):not(pre code) {
100+
color: var(--color-indigo-500);
101+
}
102+
}
103+
104+
.prose-invert {
105+
& a {
106+
color: var(--color-primary-500);
107+
&:hover {
108+
color: var(--color-primary-400);
109+
}
110+
& code {
111+
color: var(--color-primary-400);
112+
}
113+
}
114+
& :where(h1, h2, h3, h4, h5, h6) {
115+
color: var(--color-gray-100);
116+
}
117+
}
118+
}
119+
80120
.task-list-item::before {
81121
@apply hidden;
82122
}

tailwind.config.js

-47
This file was deleted.

0 commit comments

Comments
 (0)