|
1 | 1 | @import "tailwindcss"; |
2 | 2 | @plugin "@tailwindcss/typography"; |
3 | 3 |
|
| 4 | +@theme { |
| 5 | + --color-aurelia: #ed2b88; |
| 6 | + --color-aurelia-light: #ff4da1; |
| 7 | + --color-aurelia-blue: #003f8c; |
| 8 | + --color-aurelia-blue-light: #0066cc; |
| 9 | + |
| 10 | + --animation-float-slow: float 8s ease-in-out infinite; |
| 11 | + --animation-float-delayed: float 6s ease-in-out infinite 2s; |
| 12 | + --animation-grid: grid 20s linear infinite; |
| 13 | + --animation-pulse: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite; |
| 14 | + --animation-pulse-slow: pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite; |
| 15 | + --animation-pulse-slower: pulse 12s cubic-bezier(0.4, 0, 0.6, 1) infinite; |
| 16 | + --animation-pulse-delayed: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite 2s; |
| 17 | +} |
| 18 | + |
| 19 | +@variant dark (.dark &); |
| 20 | + |
4 | 21 | @layer base { |
5 | 22 | :root { |
6 | 23 | --nav-height: 5rem; |
7 | 24 | } |
8 | 25 |
|
9 | | - :root[data-theme="light"] { |
10 | | - background-color: #f7fafc; |
11 | | - color: #1a202c; |
12 | | - } |
13 | | - |
14 | | - :root[data-theme="dark"] { |
15 | | - background-color: #1a202c; |
16 | | - color: #f7fafc; |
17 | | - } |
18 | | - |
19 | 26 | /* Code block styling */ |
20 | 27 | .code-block { |
21 | | - @apply bg-gray-50 rounded-lg p-1; |
| 28 | + @apply bg-gray-50 dark:bg-gray-800 rounded-lg p-1; |
22 | 29 | } |
23 | 30 |
|
24 | 31 | .code-block .highlight { |
|
31 | 38 |
|
32 | 39 | /* Syntax highlighting colors */ |
33 | 40 | .highlight { |
34 | | - @apply bg-gray-50; |
| 41 | + @apply bg-gray-50 dark:bg-gray-800; |
35 | 42 | } |
36 | 43 |
|
37 | 44 | .highlight .nx { |
38 | | - @apply text-violet-700; |
| 45 | + @apply text-violet-700 dark:text-violet-400; |
39 | 46 | } |
40 | 47 |
|
41 | 48 | .highlight .s1, .highlight .s2 { |
42 | | - @apply text-green-600; |
| 49 | + @apply text-green-600 dark:text-green-400; |
43 | 50 | } |
44 | 51 |
|
45 | 52 | .highlight .k, .highlight .kd { |
46 | | - @apply text-purple-600; |
| 53 | + @apply text-purple-600 dark:text-purple-400; |
47 | 54 | } |
48 | 55 |
|
49 | 56 | .highlight .c1, .highlight .cm { |
50 | | - @apply text-gray-500; |
| 57 | + @apply text-gray-500 dark:text-gray-400; |
51 | 58 | } |
52 | 59 |
|
53 | 60 | .highlight .p { |
54 | | - @apply text-gray-700; |
| 61 | + @apply text-gray-700 dark:text-gray-300; |
55 | 62 | } |
56 | 63 |
|
57 | 64 | .highlight .o { |
58 | | - @apply text-gray-900; |
| 65 | + @apply text-gray-900 dark:text-gray-100; |
59 | 66 | } |
60 | 67 |
|
61 | 68 | .highlight .nt { |
62 | | - @apply text-violet-600; |
| 69 | + @apply text-violet-600 dark:text-violet-400; |
63 | 70 | } |
64 | 71 |
|
65 | 72 | .highlight .na { |
66 | | - @apply text-amber-600; |
| 73 | + @apply text-amber-600 dark:text-amber-400; |
67 | 74 | } |
68 | 75 | } |
69 | 76 |
|
70 | | -@theme { |
71 | | - --color-aurelia: #ed2b88; |
72 | | - --color-aurelia-light: #ff4da1; |
73 | | - --color-aurelia-blue: #003f8c; |
74 | | - --color-aurelia-blue-light: #0066cc; |
75 | | - |
76 | | - --animation-float-slow: float 8s ease-in-out infinite; |
77 | | - --animation-float-delayed: float 6s ease-in-out infinite 2s; |
78 | | - --animation-grid: grid 20s linear infinite; |
79 | | - --animation-pulse: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite; |
80 | | - --animation-pulse-slow: pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite; |
81 | | - --animation-pulse-slower: pulse 12s cubic-bezier(0.4, 0, 0.6, 1) infinite; |
82 | | - --animation-pulse-delayed: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite 2s; |
83 | | -} |
84 | | - |
85 | 77 | @layer keyframes { |
86 | 78 | @keyframes float { |
87 | 79 | 0%, |
|
151 | 143 | .oklch { |
152 | 144 | color: unset; |
153 | 145 | } |
| 146 | + |
| 147 | + /* Dropdown menu styles */ |
| 148 | + .dropdown-open { |
| 149 | + opacity: 1 !important; |
| 150 | + visibility: visible !important; |
| 151 | + transform: translateY(0) !important; |
| 152 | + } |
| 153 | + |
| 154 | + .dropdown-active .dropdown-chevron { |
| 155 | + transform: rotate(180deg); |
| 156 | + } |
154 | 157 | } |
155 | 158 |
|
156 | 159 | html { |
|
0 commit comments