Skip to content

Commit acaa495

Browse files
authored
Update Tailwind Plus section (#2335)
This PR updates the Tailwind Plus section on the home page with a better dark mode version that is more aligned with the actual Tailwind Plus website. Before | After | Tailwind Plus | | --- | --- | --- | | <img width="2144" height="1373" alt="image" src="https://github.com/user-attachments/assets/d3651616-bc7b-401d-99c1-3ae277efe397" /> | <img width="2144" height="1373" alt="image" src="https://github.com/user-attachments/assets/dae7243b-ebac-4aa8-b52b-bc801a294336" /> | <img width="2144" height="1373" alt="image" src="https://github.com/user-attachments/assets/98abe928-0bf6-4470-9cc0-6bf0fa2c8084" /> | | <img width="2144" height="1373" alt="image" src="https://github.com/user-attachments/assets/ceabb5be-b5e2-4869-aab2-22de296d90c0" /> | <img width="2144" height="1373" alt="image" src="https://github.com/user-attachments/assets/fb118fee-21e4-4180-bf02-e1f00a08930f" /> | <img width="2144" height="1373" alt="image" src="https://github.com/user-attachments/assets/90201b8e-a8f8-47a0-818a-946f7baaec9b" /> | | <img width="2144" height="1373" alt="image" src="https://github.com/user-attachments/assets/beb6b930-ebf8-4b32-8b18-87c89874ffba" /> | <img width="2144" height="1373" alt="image" src="https://github.com/user-attachments/assets/f958e1aa-7668-47d7-b08e-7ce9d447980d" /> | <img width="2144" height="1373" alt="image" src="https://github.com/user-attachments/assets/798e14ca-c74a-47e2-9312-dadd976688e4" /> |
1 parent b30e77b commit acaa495

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+396
-38
lines changed

src/app/globals.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,26 @@
4040
&:where(.dark, .dark *) {
4141
@slot;
4242
}
43+
4344
@media (prefers-color-scheme: dark) {
4445
&:where(.system, .system *) {
4546
@slot;
4647
}
4748
}
4849
}
4950

51+
@variant not-dark {
52+
&:not(:where(.dark, .dark *)) {
53+
@media not (prefers-color-scheme: dark) {
54+
@slot;
55+
}
56+
57+
&:not(:where(.system, .system *)) {
58+
@slot;
59+
}
60+
}
61+
}
62+
5063
/* Hide scrollbar for Chrome, Safari and Opera */
5164
.no-scrollbar::-webkit-scrollbar {
5265
display: none;

src/components/home/tailwind-ui-section.tsx

Lines changed: 383 additions & 38 deletions
Large diffs are not rendered by default.
22 KB
6.22 KB
8.01 KB
15.1 KB
8.33 KB
10 KB
2.81 KB
21.6 KB

0 commit comments

Comments
 (0)