Commit e69873b
committed
fix(galley): force syntax token colors past prose CSS variables
Tailwind Typography's prose sets --tw-prose-code which overrides
the SyntaxHighlighter theme's inline color, so every token rendered
mauve regardless of the theme. Add arbitrary-variant selectors on
the article container that target .token.keyword, .token.string,
.token.function, .token.number, .token.comment, .token.operator,
.token.punctuation, .token.class-name, .token.builtin, and
.token.property with !important overrides, plus a bare code color
for plain-text blocks. Readable ink on cream at long last.1 parent f3710cc commit e69873b
3 files changed
Lines changed: 17 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
438 | 451 | | |
439 | 452 | | |
440 | 453 | | |
| |||
0 commit comments