This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-fluido-skin.git


The following commit(s) were added to refs/heads/master by this push:
     new da6ecde  Darken the highlight.js colours that miss 4.5:1 on code blocks
da6ecde is described below

commit da6ecde441e10b7f956b7ec9df65f98693d5cef8
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sun Nov 1 21:41:58 2026 +0000

    Darken the highlight.js colours that miss 4.5:1 on code blocks
    
    The GitHub theme expects a white background; on the #f5f5f5 code block
    four token colours fall to 3.2-4.4:1. The theme CSS now comes first in
    the bundle so maven-theme.css can override them; dark-theme.css still wins.
---
 pom.xml                                |  3 ++-
 src/main/resources/css/maven-theme.css | 14 ++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 9f98c5b..1f19c65 100644
--- a/pom.xml
+++ b/pom.xml
@@ -223,9 +223,10 @@ under the License.
               <cssSourceFiles>
                 
<cssSourceFile>bootstrap-${bootstrap.version}.css</cssSourceFile>
                 
<cssSourceFile>bootstrap-${bootstrap.version}-responsive.css</cssSourceFile>
+                <!-- before the skin's own styles, so that they can adjust the 
theme's colours -->
+                
<cssSourceFile>highlight-github-${highlightjs.version}.min.css</cssSourceFile>
                 <cssSourceFile>maven-base.css</cssSourceFile>
                 <cssSourceFile>maven-theme.css</cssSourceFile>
-                
<cssSourceFile>highlight-github-${highlightjs.version}.min.css</cssSourceFile>
               </cssSourceFiles>
               
<cssFinalFile>apache-maven-fluido-${project.version}.css</cssFinalFile>
               <jsSourceFiles>
diff --git a/src/main/resources/css/maven-theme.css 
b/src/main/resources/css/maven-theme.css
index 41ac5e6..fbd0033 100644
--- a/src/main/resources/css/maven-theme.css
+++ b/src/main/resources/css/maven-theme.css
@@ -125,6 +125,20 @@ pre.prettyprint code.hljs {
   background: transparent;
   padding: 0;
 }
+/* GitHub theme colours that fall below 4.5:1 on the #f5f5f5 code background, 
darkened to pass (WCAG 1.4.3) */
+.hljs-doctag, .hljs-keyword, .hljs-meta .hljs-keyword, .hljs-template-tag, 
.hljs-template-variable, .hljs-type,
+.hljs-variable.language_ {
+  color: #c93643;
+}
+.hljs-built_in, .hljs-symbol {
+  color: #bb5003;
+}
+.hljs-code, .hljs-comment, .hljs-formula {
+  color: #5f6872;
+}
+.hljs-name, .hljs-quote, .hljs-selector-pseudo, .hljs-selector-tag, 
.hljs-addition {
+  color: #208138;
+}
 /* line numbers (sourceLineNumbersEnabled); the plugin injects .hljs-ln td { 
padding: 0 } at runtime, so the cell
    rules below need the higher specificity */
 .hljs-ln {

Reply via email to