Skip to content

Commit 9223986

Browse files
committed
feat: strikethroughs red, highlights use yellow by default
1 parent 3e59b4f commit 9223986

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

source/2-variables/variables.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@
4444
--text-normal: var(--color-base-85s);
4545
--active-line-color: var(--color-accent);
4646
--text-muted: var(--color-base-70);
47-
48-
/* custom middle ground between text-muted and text-faint */
49-
--text-gray: var(--color-base-60);
47+
--text-gray: var(--color-base-60); /* custom middle between `text-muted` and `text-faint` */
5048
--text-faint: var(--color-base-50);
5149
--text-accent: var(--color-accent);
5250
--text-accent-hover: var(--hover-accent);

source/3-markup/markdown.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -463,22 +463,28 @@ blockquote code {
463463
/** Strikethroughs
464464
──────────────────────────────────────────────────── */
465465

466-
/* make the "~" readable */
467-
.cm-formatting-strikethrough {
468-
text-decoration: none;
466+
.cm-strikethrough {
467+
body:not(uncolored-strikethroughs) & {
468+
color: rgba(var(--color-red-rgb), 0.85);
469+
}
470+
471+
/* make the "~" readable */
472+
&.cm-formatting {
473+
text-decoration: none;
474+
}
469475
}
470476

471477
/* ───────────────────────────────────────────────── */
472478
/** Highlights
473479
──────────────────────────────────────────────────── */
474480

475481
.theme-light {
476-
--highlight-hue-1: 280;
482+
--highlight-hue-1: 50;
477483
--highlight-sla-values: 85% 70% / 40%;
478484
}
479485

480486
.theme-dark {
481-
--highlight-hue-1: 280;
487+
--highlight-hue-1: 50;
482488
--highlight-sla-values: 85% 40% / 40%;
483489
}
484490

source/style-settings.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,16 @@ settings:
316316
description: Hue of ==highlighted text==
317317
markdown: true
318318
type: variable-number-slider
319-
default: 280
319+
default: 40
320320
min: 0
321321
max: 360
322322
step: 5
323+
- id: uncolored-strikethroughs
324+
title: Uncolored italic
325+
markdown: true
326+
description: "~~Strikethrough text~~ will use the standard text color instead of being red."
327+
type: class-toggle
328+
default: false
323329

324330
#─────────────────────────────────────────────────────────────────────────────
325331
# Editor Content

0 commit comments

Comments
 (0)