dark
fun MarkdownStyling.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle, editorTextStyle: TextStyle = defaultEditorTextStyle, inlinesStyling: InlinesStyling = InlinesStyling.dark(
baseTextStyle,
editorTextStyle
.copy(fontSize = baseTextStyle.fontSize * .85, background = inlineCodeBackgroundColorDark)
.toSpanStyle(),
), blockVerticalSpacing: Dp = 16.dp, paragraph: MarkdownStyling.Paragraph = Paragraph.dark(inlinesStyling), heading: MarkdownStyling.Heading = Heading.dark(baseTextStyle), blockQuote: MarkdownStyling.BlockQuote = BlockQuote.dark(textColor = baseTextStyle.color), code: MarkdownStyling.Code = Code.dark(editorTextStyle), list: MarkdownStyling.List = List.dark(baseTextStyle), image: MarkdownStyling.Image = Image.default(), thematicBreak: MarkdownStyling.ThematicBreak = ThematicBreak.dark(), htmlBlock: MarkdownStyling.HtmlBlock = HtmlBlock.dark(editorTextStyle.copy(color = blockContentColorLight))): MarkdownStyling
fun MarkdownStyling.Paragraph.Companion.dark(inlinesStyling: InlinesStyling = InlinesStyling.dark()): MarkdownStyling.Paragraph
fun MarkdownStyling.Heading.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle, h1: MarkdownStyling.Heading.H1 = Heading.H1.light(
baseTextStyle.copy(
fontSize = baseTextStyle.fontSize * 2,
lineHeight = baseTextStyle.fontSize * 2 * 1.25,
fontWeight = FontWeight.SemiBold,
),
), h2: MarkdownStyling.Heading.H2 = Heading.H2.light(
baseTextStyle.copy(
fontSize = baseTextStyle.fontSize * 1.5,
lineHeight = baseTextStyle.fontSize * 1.5 * 1.25,
fontWeight = FontWeight.SemiBold,
),
), h3: MarkdownStyling.Heading.H3 = Heading.H3.light(
baseTextStyle.copy(
fontSize = baseTextStyle.fontSize * 1.25,
lineHeight = baseTextStyle.fontSize * 1.25 * 1.25,
fontWeight = FontWeight.SemiBold,
),
), h4: MarkdownStyling.Heading.H4 = Heading.H4.light(
baseTextStyle.copy(
fontSize = baseTextStyle.fontSize,
lineHeight = baseTextStyle.fontSize * 1.25,
fontWeight = FontWeight.SemiBold,
),
), h5: MarkdownStyling.Heading.H5 = Heading.H5.light(
baseTextStyle.copy(
fontSize = baseTextStyle.fontSize * .875,
lineHeight = baseTextStyle.fontSize * .875 * 1.25,
fontWeight = FontWeight.SemiBold,
),
), h6: MarkdownStyling.Heading.H6 = Heading.H6.light(
baseTextStyle.copy(
color = Color(0xFF656d76),
fontSize = baseTextStyle.fontSize * .85,
lineHeight = baseTextStyle.fontSize * .85 * 1.25,
fontWeight = FontWeight.SemiBold,
),
)): MarkdownStyling.Heading
fun MarkdownStyling.Heading.H1.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle.copy(
fontSize = defaultTextSize * 2,
lineHeight = defaultTextSize * 2 * 1.25,
fontWeight = FontWeight.SemiBold,
), inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), underlineWidth: Dp = 1.dp, underlineColor: Color = Color(0xFF21262d), underlineGap: Dp = 10.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H1
fun MarkdownStyling.Heading.H2.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle.copy(
fontSize = defaultTextSize * 1.5,
lineHeight = defaultTextSize * 1.5 * 1.25,
fontWeight = FontWeight.SemiBold,
), inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), underlineWidth: Dp = 1.dp, underlineColor: Color = Color(0xFF21262d), underlineGap: Dp = 6.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H2
fun MarkdownStyling.Heading.H3.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle.copy(
fontSize = defaultTextSize * 1.25,
lineHeight = defaultTextSize * 1.25 * 1.25,
fontWeight = FontWeight.SemiBold,
), inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), underlineWidth: Dp = 0.dp, underlineColor: Color = Color.Unspecified, underlineGap: Dp = 0.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H3
fun MarkdownStyling.Heading.H4.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle.copy(
fontSize = defaultTextSize,
lineHeight = defaultTextSize * 1.25,
fontWeight = FontWeight.SemiBold,
), inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), underlineWidth: Dp = 0.dp, underlineColor: Color = Color.Unspecified, underlineGap: Dp = 0.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H4
fun MarkdownStyling.Heading.H5.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle.copy(
fontSize = defaultTextSize * .875,
lineHeight = defaultTextSize * .875 * 1.25,
fontWeight = FontWeight.SemiBold,
), inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), underlineWidth: Dp = 0.dp, underlineColor: Color = Color.Unspecified, underlineGap: Dp = 0.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H5
fun MarkdownStyling.Heading.H6.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle.copy(
color = Color(0xFF656d76),
fontSize = defaultTextSize * .85,
lineHeight = defaultTextSize * .85 * 1.25,
fontWeight = FontWeight.SemiBold,
), inlinesStyling: InlinesStyling = InlinesStyling.dark(baseTextStyle), underlineWidth: Dp = 0.dp, underlineColor: Color = Color.Unspecified, underlineGap: Dp = 0.dp, padding: PaddingValues = PaddingValues(top = 24.dp, bottom = 16.dp)): MarkdownStyling.Heading.H6
fun MarkdownStyling.BlockQuote.Companion.dark(padding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 8.dp), lineWidth: Dp = 4.dp, lineColor: Color = Color.DarkGray, pathEffect: PathEffect? = null, strokeCap: StrokeCap = StrokeCap.Square, textColor: Color = Color(0xFF848d97)): MarkdownStyling.BlockQuote
fun MarkdownStyling.List.Companion.dark(baseTextStyle: TextStyle = defaultTextStyle, ordered: MarkdownStyling.List.Ordered = Ordered.dark(numberStyle = baseTextStyle), unordered: MarkdownStyling.List.Unordered = Unordered.dark(bulletStyle = baseTextStyle.copy(fontWeight = FontWeight.Black))): MarkdownStyling.List
fun MarkdownStyling.List.Ordered.Companion.dark(numberStyle: TextStyle = defaultTextStyle, numberContentGap: Dp = 8.dp, numberMinWidth: Dp = 16.dp, numberTextAlign: TextAlign = TextAlign.End, itemVerticalSpacing: Dp = 16.dp, itemVerticalSpacingTight: Dp = 4.dp, padding: PaddingValues = PaddingValues(start = 16.dp)): MarkdownStyling.List.Ordered
fun MarkdownStyling.List.Unordered.Companion.dark(bullet: Char? = '•', bulletStyle: TextStyle = defaultTextStyle.copy(fontWeight = FontWeight.Black), bulletContentGap: Dp = 16.dp, itemVerticalSpacing: Dp = 16.dp, itemVerticalSpacingTight: Dp = 4.dp, padding: PaddingValues = PaddingValues(start = 16.dp)): MarkdownStyling.List.Unordered
fun MarkdownStyling.Code.Companion.dark(editorTextStyle: TextStyle = defaultEditorTextStyle.copy(color = blockContentColorDark), indented: MarkdownStyling.Code.Indented = Indented.dark(editorTextStyle), fenced: MarkdownStyling.Code.Fenced = Fenced.dark(editorTextStyle)): MarkdownStyling.Code
fun MarkdownStyling.Code.Indented.Companion.dark(editorTextStyle: TextStyle = defaultEditorTextStyle.copy(color = blockContentColorDark), padding: PaddingValues = PaddingValues(16.dp), shape: Shape = RectangleShape, background: Color = blockBackgroundColorDark, borderWidth: Dp = 0.dp, borderColor: Color = Color.Unspecified, fillWidth: Boolean = true, scrollsHorizontally: Boolean = true): MarkdownStyling.Code.Indented
fun MarkdownStyling.Code.Fenced.Companion.dark(editorTextStyle: TextStyle = defaultEditorTextStyle.copy(color = blockContentColorDark), padding: PaddingValues = PaddingValues(16.dp), shape: Shape = RectangleShape, background: Color = blockBackgroundColorDark, borderWidth: Dp = 0.dp, borderColor: Color = Color.Unspecified, fillWidth: Boolean = true, scrollsHorizontally: Boolean = true, infoTextStyle: TextStyle = TextStyle(color = Color.Gray, fontSize = 12.sp), infoPadding: PaddingValues = PaddingValues(start = 8.dp, end = 8.dp, bottom = 8.dp), infoPosition: MarkdownStyling.Code.Fenced.InfoPosition = InfoPosition.Hide): MarkdownStyling.Code.Fenced
fun MarkdownStyling.ThematicBreak.Companion.dark(padding: PaddingValues = PaddingValues(), lineWidth: Dp = 2.dp, lineColor: Color = Color.DarkGray): MarkdownStyling.ThematicBreak
fun MarkdownStyling.HtmlBlock.Companion.dark(textStyle: TextStyle = defaultEditorTextStyle.copy(color = Color.Gray), padding: PaddingValues = PaddingValues(8.dp), shape: Shape = RoundedCornerShape(4.dp), background: Color = Color.DarkGray, borderWidth: Dp = 1.dp, borderColor: Color = Color.Gray, fillWidth: Boolean = true): MarkdownStyling.HtmlBlock
fun InlinesStyling.Companion.dark(textStyle: TextStyle = defaultTextStyle, inlineCode: SpanStyle = defaultEditorTextStyle
.copy(fontSize = textStyle.fontSize * .85, background = inlineCodeBackgroundColorDark)
.toSpanStyle(), link: SpanStyle = textStyle.copy(
color = IntUiDarkTheme.colors.blue(9),
textDecoration = TextDecoration.Underline,
).toSpanStyle(), linkDisabled: SpanStyle = link.copy(color = IntUiDarkTheme.colors.grey(8)), linkHovered: SpanStyle = link, linkFocused: SpanStyle = link.copy(background = Color(0x16FFFFFF)), linkPressed: SpanStyle = link.copy(background = Color(0x26FFFFFF)), linkVisited: SpanStyle = link, emphasis: SpanStyle = textStyle.copy(fontStyle = FontStyle.Italic).toSpanStyle(), strongEmphasis: SpanStyle = textStyle.copy(fontWeight = FontWeight.Bold).toSpanStyle(), inlineHtml: SpanStyle = textStyle.toSpanStyle(), renderInlineHtml: Boolean = true): InlinesStyling