Skip to content

Commit 8050b5a

Browse files
authored
Improve code syntax contrast (#79)
## Summary - switch Hugo/Chroma highlighting from the light GitHub theme to github-dark - keep highlighted code blocks consistent with the existing Prism Tomorrow token palette - update the theme comment to reflect that highlighted blocks no longer always use a light background ## Testing - npm run build - verified the affected PSRule article renders code with a dark background and high-contrast text Closes #74
1 parent 242d451 commit 8050b5a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎hugo.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ markup:
1919
renderer:
2020
unsafe: false
2121
highlight:
22-
style: github
22+
style: github-dark
2323
lineNos: true
2424
codeFences: true
2525

@@ -186,4 +186,4 @@ related:
186186
- name: tags
187187
weight: 80
188188
- name: categories
189-
weight: 60
189+
weight: 60

‎themes/powershell-community/layouts/_default/baseof.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
terminal chrome renders flush; Prism handles token colors. */
176176
.ps-terminal pre { background: transparent; color: #ccc; margin: 0; border-radius: 0; padding: 1.25rem; overflow-x: auto; }
177177

178-
/* Hugo/Chroma highlighted blocks (.highlight) carry their own light
178+
/* Hugo/Chroma highlighted blocks (.highlight) carry their own
179179
background; trim the heavier .prose pre padding/margins so they don't
180180
read as a wall of whitespace. */
181181
.prose .highlight { margin: 1.25rem 0; border-radius: 0.5rem; overflow: hidden; }
@@ -361,4 +361,4 @@
361361
{{ block "scripts" . }}{{ end }}
362362
</body>
363363

364-
</html>
364+
</html>

0 commit comments

Comments
 (0)