Skip to content

Commit

Permalink
fix(tailwind): syntax highlighting
Browse files Browse the repository at this point in the history
Note to override default syntax highlighting style, custom CSS must now be used - the `params.yaml` options for choosing syntax themes are deprecated.

Fixes HugoBlox#3030
  • Loading branch information
gcushen committed Dec 16, 2023
1 parent 46e2fa4 commit 0d12bd1
Show file tree
Hide file tree
Showing 10 changed files with 1,049 additions and 459 deletions.
9 changes: 9 additions & 0 deletions modules/blox-tailwind/assets/css/chroma.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@import "./libs/chroma/light.css";
@import "./libs/chroma/dark.css";

/* Code Blocks: Apply theme background */
/* Requires relative position for Code Copy button */
.prose .chroma,
.prose pre {
@apply relative rounded-md text-neutral-700 bg-neutral-50 dark:bg-slate-700 dark:text-white;
}
Loading

0 comments on commit 0d12bd1

Please sign in to comment.