53129
Pa
PAT / files
PAT / app / highlight-theme.css
2.8 KB
1/* Custom highlight.js theme using grayscale colors */ 2 3/* Light mode - code blocks only */ 4pre:has(.hljs) { 5 background: #e7e5e4; /* neutral-200 */ 6 padding: 0.5rem; 7} 8 9.hljs { 10 color: #292524; /* neutral-800 */ 11} 12 13.hljs-comment, 14.hljs-quote { 15 color: #78716c; /* neutral-500 */ 16 font-style: italic; 17} 18 19.hljs-keyword, 20.hljs-selector-tag, 21.hljs-subst { 22 color: #1c1917; /* neutral-900 */ 23 font-weight: 600; 24} 25 26.hljs-number, 27.hljs-literal, 28.hljs-variable, 29.hljs-template-variable, 30.hljs-tag .hljs-attr { 31 color: #57534e; /* neutral-600 */ 32} 33 34.hljs-string, 35.hljs-doctag { 36 color: #44403c; /* neutral-700 */ 37} 38 39.hljs-title, 40.hljs-section, 41.hljs-selector-id { 42 color: #292524; /* neutral-800 */ 43 font-weight: 600; 44} 45 46.hljs-type, 47.hljs-class .hljs-title { 48 color: #292524; /* neutral-800 */ 49 font-weight: 500; 50} 51 52.hljs-tag, 53.hljs-name, 54.hljs-attribute { 55 color: #57534e; /* neutral-600 */ 56 font-weight: normal; 57} 58 59.hljs-regexp, 60.hljs-link { 61 color: #44403c; /* neutral-700 */ 62} 63 64.hljs-symbol, 65.hljs-bullet { 66 color: #57534e; /* neutral-600 */ 67} 68 69.hljs-built_in, 70.hljs-builtin-name { 71 color: #292524; /* neutral-800 */ 72 font-weight: 500; 73} 74 75.hljs-meta { 76 color: #78716c; /* neutral-500 */ 77} 78 79.hljs-deletion { 80 background: #d4d4d4; /* neutral-300 */ 81} 82 83.hljs-addition { 84 background: #a3a3a3; /* neutral-400 */ 85} 86 87.hljs-emphasis { 88 font-style: italic; 89} 90 91.hljs-strong { 92 font-weight: 600; 93} 94 95/* Dark mode */ 96 97/* Inline code - no background */ 98 99.dark pre:has(.hljs) { 100 background: #0c0a09; /* neutral-950 */ 101 padding: 0.5rem; 102} 103 104.dark .hljs { 105 color: #e7e5e4; /* neutral-200 */ 106} 107 108.dark .hljs-comment, 109.dark .hljs-quote { 110 color: #a8a29e; /* neutral-400 */ 111 font-style: italic; 112} 113 114.dark .hljs-keyword, 115.dark .hljs-selector-tag, 116.dark .hljs-subst { 117 color: #fafaf9; /* neutral-50 */ 118 font-weight: 600; 119} 120 121.dark .hljs-number, 122.dark .hljs-literal, 123.dark .hljs-variable, 124.dark .hljs-template-variable, 125.dark .hljs-tag .hljs-attr { 126 color: #d4d4d4; /* neutral-300 */ 127} 128 129.dark .hljs-string, 130.dark .hljs-doctag { 131 color: #d6d3d1; /* neutral-300 */ 132} 133 134.dark .hljs-title, 135.dark .hljs-section, 136.dark .hljs-selector-id { 137 color: #e7e5e4; /* neutral-200 */ 138 font-weight: 600; 139} 140 141.dark .hljs-type, 142.dark .hljs-class .hljs-title { 143 color: #e7e5e4; /* neutral-200 */ 144 font-weight: 500; 145} 146 147.dark .hljs-tag, 148.dark .hljs-name, 149.dark .hljs-attribute { 150 color: #d4d4d4; /* neutral-300 */ 151 font-weight: normal; 152} 153 154.dark .hljs-regexp, 155.dark .hljs-link { 156 color: #d6d3d1; /* neutral-300 */ 157} 158 159.dark .hljs-symbol, 160.dark .hljs-bullet { 161 color: #d4d4d4; /* neutral-300 */ 162} 163 164.dark .hljs-built_in, 165.dark .hljs-builtin-name { 166 color: #e7e5e4; /* neutral-200 */ 167 font-weight: 500; 168} 169 170.dark .hljs-meta { 171 color: #a8a29e; /* neutral-400 */ 172} 173 174.dark .hljs-deletion { 175 background: #404040; /* neutral-700 */ 176} 177 178.dark .hljs-addition { 179 background: #525252; /* neutral-600 */ 180}