blob: 5842c85e0e1113bd62c2acb7c9b999a9cc5e1b17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
@import "tailwindcss";
/* Force Tailwind to look for a .dark class up the HTML tree instead of checking the user's operating system preferences. */
@custom-variant dark (&:where(.dark, .dark *));
/* Base layer customization with Tailwind CSS classes - applies to elements like p, a, img */
@layer base {
h2 {
@apply dark:text-pink-500;
}
}
/* Components layer - Specify rules for components like btn, card, badge, etc. */
@layer components {
.btn {
@apply inline-block rounded p-2 bg-gray-300 hover:bg-gray-900 dark:bg-neutral-800 dark:hover:bg-neutral-700 hover:text-white transition;
}
}
|