codeTextStyle

Default TextStyle applied to the code text: monospace font, 13 sp size, 20 sp line height.

Pass a copy to CodeBlockStyle.textStyle to override just the properties you care about:

SyntaxHighlightedCode(
code = snippet,
language = "kotlin",
style = CodeBlockStyle(
textStyle = SyntaxHighlightedCodeDefaults.codeTextStyle.copy(fontSize = 15.sp),
),
)