The Node.js® Website
1main {
2 @apply flex
3 w-full
4 flex-col
5 gap-6;
6
7 hr {
8 @apply w-full
9 border-t
10 border-t-neutral-200
11 bg-white
12 dark:border-t-neutral-900
13 dark:bg-neutral-950;
14 }
15
16 h1 {
17 @apply text-3xl;
18 }
19
20 h2 {
21 @apply text-2xl;
22 }
23
24 h3 {
25 @apply text-xl;
26 }
27
28 h4 {
29 @apply text-lg;
30 }
31
32 h5,
33 h6 {
34 @apply text-base;
35 }
36
37 h1,
38 h2,
39 h3,
40 h4,
41 h5,
42 h6,
43 strong {
44 @apply font-semibold
45 text-neutral-900
46 dark:text-white;
47 }
48
49 code {
50 @apply rounded
51 bg-neutral-100
52 px-1
53 font-ibm-plex-mono
54 text-base
55 font-semibold
56 text-neutral-900
57 dark:bg-neutral-900
58 dark:text-white;
59 }
60
61 p {
62 @apply text-neutral-900
63 dark:text-white;
64 }
65
66 a {
67 @apply text-green-600
68 dark:text-green-400
69 xs:underline;
70
71 &:hover {
72 @apply text-green-900
73 dark:text-green-300;
74 }
75
76 &[role='button'] {
77 @apply xs:no-underline;
78 }
79
80 &:has(code) {
81 @apply xs:decoration-neutral-800
82 dark:xs:decoration-neutral-200;
83 }
84 }
85
86 ul {
87 @apply list-disc
88 pl-9
89 pr-5
90 leading-6
91 text-neutral-900
92 dark:text-white;
93
94 li div:has(> pre) {
95 @apply !my-1;
96 }
97 }
98
99 ol {
100 @apply list-decimal
101 px-5
102 leading-6
103 text-neutral-900
104 dark:text-white;
105
106 li div:has(> pre) {
107 @apply !my-1;
108 }
109 }
110
111 table {
112 @apply mb-1
113 w-full
114 border-separate
115 border-spacing-0
116 rounded
117 border
118 border-neutral-200
119 text-left
120 text-sm
121 dark:border-neutral-800;
122
123 th,
124 td {
125 @apply border
126 border-r-0
127 border-t-0
128 border-neutral-200
129 px-4
130 py-2
131 text-neutral-900
132 dark:border-neutral-800
133 dark:text-white
134 xs:block
135 xs:border-l-0;
136
137 > a {
138 @apply pr-2;
139 }
140 }
141
142 th {
143 @apply font-semibold;
144 }
145
146 tr:last-child td {
147 @apply sm:border-b-0;
148
149 &:last-child {
150 @apply xs:border-b-0;
151 }
152 }
153
154 td:first-child,
155 th:first-child {
156 @apply sm:border-l-0;
157 }
158 }
159}