Typography

object Typography

A quick way to obtain text styles derived from the default TextStyle. These match the functionality provided by JBFont in the IntelliJ Platform.

Properties

Link copied to clipboard

The factor to use when creating a TextStyle with a changed font size:

Link copied to clipboard

The factor to use when creating an editor TextStyle with a changed font size:

Functions

Link copied to clipboard
@Composable
fun consoleTextStyle(): TextStyle

The text style used for code consoles. Usually is a monospaced font. Can be the same as editorTextStyle.

Link copied to clipboard
@Composable
fun editorTextStyle(): TextStyle

The text style used for code editors. Usually is a monospaced font.

Link copied to clipboard
@Composable
fun h0TextStyle(): TextStyle

The text style to use for h0 titles. Derived from JewelTheme.defaultTextStyle.

Link copied to clipboard
@Composable
fun h1TextStyle(): TextStyle

The text style to use for h1 titles. Derived from JewelTheme.defaultTextStyle.

Link copied to clipboard
@Composable
fun h2TextStyle(): TextStyle

The text style to use for h2 titles. Derived from JewelTheme.defaultTextStyle.

Link copied to clipboard
@Composable
fun h3TextStyle(): TextStyle

The text style to use for h3 titles. Derived from JewelTheme.defaultTextStyle.

Link copied to clipboard
@Composable
fun h4TextStyle(): TextStyle

The text style to use for h4 titles. Derived from JewelTheme.defaultTextStyle.

Link copied to clipboard
@Composable
fun labelTextSize(): TextUnit

The text size to use for labels. Identical to the size set in JewelTheme.defaultTextStyle.

Link copied to clipboard
@Composable
fun labelTextStyle(): TextStyle

The text style to use for labels. Identical to JewelTheme.defaultTextStyle.