Skip to content

Commit 9daa324

Browse files
committed
Add/manipulate the UI accent color for code comments
1 parent e968bc8 commit 9daa324

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

resources/css/elements/base.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,9 @@
111111
z-index: var(--z-index-above);
112112
}
113113
}
114+
115+
code {
116+
/* Take the UI accent for code color/background. Use relative colors to 1) Make sure the text color is not too bright and 2) Create a light background */
117+
color: hsl(from var(--theme-color-ui-accent) h l 20);
118+
background: hsl(from var(--theme-color-ui-accent) h s l / 0.08);
119+
}

0 commit comments

Comments
 (0)