You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constfonts=require('./src/config/fonts');// New import
4
4
5
5
/** @type {import('tailwindcss').Config} */
6
+
/**
7
+
* fezcode: important
8
+
* tailwind.config.js affects colors through the @tailwindcss/typography plugin, which styles markdown-generated HTML. Specifically, the typography
9
+
* extension in tailwind.config.js allows customizing these styles. Our recent change modified the code element's color within the dark typography variant
10
+
* to primary.400 (red).
11
+
*
12
+
* This change resolved a conflict where tailwind.config.js's prose-dark styles were overriding react-syntax-highlighter's customTheme.js base color for
13
+
* the <code> element due to CSS specificity. By setting the code color directly in tailwind.config.js to red, we ensured the dominant styling rule for
14
+
* the code block's base text color was the desired red, while customTheme.js still colors individual <span> tokens (comments, keywords) with more
15
+
* specific rules.
16
+
*/
6
17
module.exports={
7
18
darkMode: 'class',
8
19
content: [
@@ -57,7 +68,7 @@ module.exports = {
57
68
},
58
69
59
70
code: {
60
-
color: theme('colors.gray.100'),
71
+
color: theme('colors.primary.400'),// fezcode: important default text color for codeblocks
0 commit comments