|
1 | 1 | @reference "tailwindcss"; |
| 2 | +@reference "../../styles/theme.css"; |
2 | 3 | @import "./prism-theme.css"; |
3 | 4 |
|
4 | 5 | /* |
|
52 | 53 | h4, |
53 | 54 | h5, |
54 | 55 | h6 { |
55 | | - @apply block font-semibold text-[#32434a] leading-[1.4]; |
| 56 | + @apply block font-semibold text-heading-dark leading-[1.4]; |
56 | 57 | font-family: |
57 | 58 | "Source Serif Pro", ui-serif, Georgia, Cambria, "Times New Roman", Times, |
58 | 59 | serif; |
|
140 | 141 | } |
141 | 142 |
|
142 | 143 | aside { |
143 | | - @apply border-l-4 border-solid border-l-[#dddddd] py-[0.75em] px-[1em] text-gray-500; |
| 144 | + @apply border-l-4 border-solid border-l-aside-border py-[0.75em] px-[1em] text-gray-500; |
144 | 145 | > :first-child { |
145 | 146 | margin-top: 0; |
146 | 147 | } |
|
165 | 166 | > .warning__prefix, |
166 | 167 | > .preview__prefix, |
167 | 168 | > .todo__prefix { |
168 | | - @apply capitalize font-semibold block text-base text-[#1a1a1a] mb-[0.25em]; |
| 169 | + @apply capitalize font-semibold block text-base text-aside-prefix mb-[0.25em]; |
169 | 170 | } |
170 | 171 | } |
171 | 172 |
|
172 | 173 | &.tip { |
173 | | - @apply bg-[#eaf8ff] text-[#4e7182] border-l-[#1eb4ff]; |
| 174 | + @apply bg-aside-tip-bg text-aside-tip-text border-l-aside-tip-border; |
174 | 175 | } |
175 | 176 |
|
176 | 177 | &.warning { |
177 | | - @apply bg-[#fdf5d8] text-[#716b53] border-l-[#f3c316]; |
| 178 | + @apply bg-aside-warning-bg text-aside-warning-text border-l-aside-warning-border; |
178 | 179 | } |
179 | 180 |
|
180 | 181 | &.preview { |
181 | | - @apply bg-gray-100 text-[#716b53] border-l-[#1e72b3]; |
| 182 | + @apply bg-gray-100 text-aside-warning-text border-l-brand-blue; |
182 | 183 | } |
183 | 184 |
|
184 | 185 | &.todo { |
185 | | - @apply bg-[#fbddcd] text-[#907a6e] border-l-[#e95d13]; |
| 186 | + @apply bg-aside-todo-bg text-aside-todo-text border-l-aside-todo-border; |
186 | 187 |
|
187 | 188 | .tip-content::before { |
188 | 189 | content: "[TODO]: "; |
|
192 | 193 | } |
193 | 194 |
|
194 | 195 | blockquote { |
195 | | - @apply border-l-4 border-solid border-l-[#dddddd] py-[0.75em] px-[1em] text-gray-500 italic; |
| 196 | + @apply border-l-4 border-solid border-l-aside-border py-[0.75em] px-[1em] text-gray-500 italic; |
196 | 197 |
|
197 | 198 | > :first-child { |
198 | 199 | margin-top: 0; |
|
226 | 227 | } |
227 | 228 |
|
228 | 229 | th { |
229 | | - @apply font-bold text-left py-1.5 px-3 bg-[#f1f4f4] border-r border-solid border-r-[#cccccc]; |
| 230 | + @apply font-bold text-left py-1.5 px-3 bg-table-header-bg border-r border-solid border-r-table-border; |
230 | 231 |
|
231 | 232 | &:last-child { |
232 | 233 | @apply border-r-0; |
233 | 234 | } |
234 | 235 | } |
235 | 236 |
|
236 | 237 | tr { |
237 | | - @apply border border-solid border-[#cccccc] block mb-2.5; |
| 238 | + @apply border border-solid border-table-border block mb-2.5; |
238 | 239 |
|
239 | 240 | &:nth-child(2n) { |
240 | | - @apply bg-[#f8f8f8]; |
| 241 | + @apply bg-table-row-alt; |
241 | 242 | } |
242 | 243 |
|
243 | 244 | &:last-child { |
244 | | - @apply border-b border-b-[#cccccc]; |
| 245 | + @apply border-b border-b-table-border; |
245 | 246 | } |
246 | 247 |
|
247 | 248 | @media (min-width: 768px) { |
|
266 | 267 | &::before { |
267 | 268 | content: none; |
268 | 269 | } |
269 | | - @apply border-r border-r-[#cccccc] border-b-0; |
| 270 | + @apply border-r border-r-table-border border-b-0; |
270 | 271 | &:last-child { |
271 | 272 | @apply border-r-0; |
272 | 273 | } |
|
296 | 297 | } |
297 | 298 |
|
298 | 299 | a code { |
299 | | - @apply text-[#1a6bac]; |
| 300 | + @apply text-brand-link; |
300 | 301 | } |
301 | 302 | a { |
302 | 303 | text-decoration: underline; |
303 | 304 | text-underline-offset: 2px; |
304 | 305 | text-decoration-thickness: 1px; |
305 | 306 | } |
306 | 307 | pre { |
307 | | - @apply bg-[#2d3748] text-[#e2e8f0] p-4 pr-14 rounded-[3px] text-sm leading-normal overflow-auto; |
| 308 | + @apply bg-code-pre-bg text-code-pre-text p-4 pr-14 rounded-[3px] text-sm leading-normal overflow-auto; |
308 | 309 | box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); |
309 | 310 |
|
310 | 311 | code { |
311 | | - @apply m-0 p-0 whitespace-pre border-none bg-transparent text-[#a5cee1]; |
| 312 | + @apply m-0 p-0 whitespace-pre border-none bg-transparent text-code-token; |
312 | 313 | font-family: monospace; |
313 | 314 | text-shadow: 0 1px 0 rgba(22, 31, 35, 0.5); |
314 | 315 |
|
|
317 | 318 |
|
318 | 319 | &::after { |
319 | 320 | content: "›"; |
320 | | - @apply float-left relative -left-0.5 text-center text-[#1e78c2] text-base; |
| 321 | + @apply float-left relative -left-0.5 text-center text-code-link text-base; |
321 | 322 | } |
322 | 323 | } |
323 | 324 |
|
324 | 325 | a { |
325 | 326 | border-bottom: 1px dotted; |
326 | | - @apply border-b-[#175d96]; |
| 327 | + @apply border-b-code-anchor-border; |
327 | 328 | } |
328 | 329 |
|
329 | 330 | .code-link { |
330 | 331 | @apply relative; |
331 | 332 |
|
332 | 333 | &:hover { |
333 | | - @apply text-[#2186d8]; |
| 334 | + @apply text-code-link-hover; |
334 | 335 | } |
335 | 336 | } |
336 | 337 | } |
|
0 commit comments