Skip to content

Commit 0a6c377

Browse files
committed
Update strong and code colors to inherit from parent
1 parent f06117a commit 0a6c377

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

Diff for: src/styles.js

+32-1
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,15 @@ module.exports = {
12491249
color: 'var(--tw-prose-bold)',
12501250
fontWeight: '600',
12511251
},
1252+
'a strong': {
1253+
color: 'inherit',
1254+
},
1255+
'blockquote strong': {
1256+
color: 'inherit',
1257+
},
1258+
'thead th strong': {
1259+
color: 'inherit',
1260+
},
12521261
ol: {
12531262
listStyleType: 'decimal',
12541263
},
@@ -1313,27 +1322,31 @@ module.exports = {
13131322
},
13141323
'h1 strong': {
13151324
fontWeight: '900',
1325+
color: 'inherit',
13161326
},
13171327
h2: {
13181328
color: 'var(--tw-prose-headings)',
13191329
fontWeight: '700',
13201330
},
13211331
'h2 strong': {
13221332
fontWeight: '800',
1333+
color: 'inherit',
13231334
},
13241335
h3: {
13251336
color: 'var(--tw-prose-headings)',
13261337
fontWeight: '600',
13271338
},
13281339
'h3 strong': {
13291340
fontWeight: '700',
1341+
color: 'inherit',
13301342
},
13311343
h4: {
13321344
color: 'var(--tw-prose-headings)',
13331345
fontWeight: '600',
13341346
},
13351347
'h4 strong': {
13361348
fontWeight: '700',
1349+
color: 'inherit',
13371350
},
13381351
// TODO: Figure out how to not need these, it's a merging issue
13391352
img: {},
@@ -1352,7 +1365,25 @@ module.exports = {
13521365
content: '"`"',
13531366
},
13541367
'a code': {
1355-
color: 'var(--tw-prose-links)',
1368+
color: 'inherit',
1369+
},
1370+
'h1 code': {
1371+
color: 'inherit',
1372+
},
1373+
'h2 code': {
1374+
color: 'inherit',
1375+
},
1376+
'h3 code': {
1377+
color: 'inherit',
1378+
},
1379+
'h4 code': {
1380+
color: 'inherit',
1381+
},
1382+
'blockquote code': {
1383+
color: 'inherit',
1384+
},
1385+
'thead th code': {
1386+
color: 'inherit',
13561387
},
13571388
pre: {
13581389
color: 'var(--tw-prose-pre-code)',

0 commit comments

Comments
 (0)