diff --git a/app/assets/css/main.css b/app/assets/css/main.css index e4a52ac..5eb141e 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -7,11 +7,13 @@ scroll-margin-top: 5rem; } -/* Force Shiki dark theme in all color modes — code blocks always dark */ +/* Code blocks: always dark regardless of color mode. + Background is overridden by ProsePre wrapper (#0d1117), + only token colors come from Shiki dark variables. */ .shiki, .shiki span { color: var(--shiki-dark) !important; - background-color: var(--shiki-dark-bg) !important; + background-color: transparent !important; font-style: var(--shiki-dark-font-style) !important; font-weight: var(--shiki-dark-font-weight) !important; text-decoration: var(--shiki-dark-text-decoration) !important; diff --git a/app/components/content/ProsePre.vue b/app/components/content/ProsePre.vue new file mode 100644 index 0000000..38de87e --- /dev/null +++ b/app/components/content/ProsePre.vue @@ -0,0 +1,37 @@ + + +