Repository navigation
Commit 0ef3425
committed
landing: theme-aware code-sample colors so text reads in dark mode
The quickstart and step mini-code panes use --bg-inverse as their
background — a deliberate visual inversion that turns black in
light mode and near-white in dark mode. The text colors were
hard-coded for the dark-bg case (#ededed, #6e6e6e, #d0d0d0,
#b8b8b8, #fafafa), so in dark mode they painted near-white on a
near-white card and the code disappeared.
Introduced --code-text + --code-comment/string/keyword/function
companion tokens that flip alongside --bg-inverse. Light mode keeps
the previous pale-on-black palette; dark mode uses dark grays on
the light card (text #1a1a1a, kw #525252, str #404040, cmt #8a8a8a,
fn #0a0a0a) so each token has at least ~5:1 contrast against the
#fafafa background.1 parent 85f8fb9 commit 0ef3425
1 file changed
Lines changed: 32 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
82 | 94 | | |
83 | 95 | | |
84 | 96 | | |
| |||
106 | 118 | | |
107 | 119 | | |
108 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
109 | 126 | | |
110 | 127 | | |
111 | 128 | | |
| |||
126 | 143 | | |
127 | 144 | | |
128 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
129 | 151 | | |
130 | 152 | | |
131 | 153 | | |
| |||
525 | 547 | | |
526 | 548 | | |
527 | 549 | | |
528 | | - | |
| 550 | + | |
529 | 551 | | |
530 | 552 | | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
535 | 557 | | |
536 | 558 | | |
537 | 559 | | |
| |||
566 | 588 | | |
567 | 589 | | |
568 | 590 | | |
569 | | - | |
| 591 | + | |
570 | 592 | | |
571 | 593 | | |
572 | 594 | | |
573 | 595 | | |
574 | 596 | | |
575 | 597 | | |
576 | 598 | | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
581 | 603 | | |
582 | 604 | | |
583 | 605 | | |
| |||
0 commit comments