File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @obosbbl/grunnmuren-tailwind " : patch
3
+ ---
4
+
5
+ Add custom styling to ` <code> ` in prose content
Original file line number Diff line number Diff line change @@ -534,6 +534,20 @@ module.exports = (options = {}) => {
534
534
strong : {
535
535
fontWeight : theme ( 'fontWeight.medium' ) ,
536
536
} ,
537
+ code : {
538
+ padding : `${ theme ( 'spacing[0.5]' ) } ${ theme ( 'spacing.2' ) } ` ,
539
+ borderRadius : theme ( 'borderRadius.DEFAULT' ) ,
540
+ borderWidth : theme ( 'borderWidth.DEFAULT' ) ,
541
+ borderColor : theme ( 'colors.gray.DEFAULT' ) ,
542
+ backgroundColor : theme ( 'colors.gray.lightest' ) ,
543
+ whiteSpace : 'nowrap' ,
544
+ } ,
545
+ 'code::before' : {
546
+ content : '""' ,
547
+ } ,
548
+ 'code::after' : {
549
+ content : '""' ,
550
+ } ,
537
551
blockquote : {
538
552
// Reset defaults:
539
553
marginBottom : 'unset' ,
You can’t perform that action at this time.
0 commit comments