# Text Style The text style mark with color, background, font family, font size and line height controls. ## Installation ```bash npx shadcn@latest add litingyes/blocove/rich-text-editor-text-style ``` > Typography requires [shadcn/typeset](https://ui.shadcn.com/docs/typeset). Copy `typeset.css` next to your main stylesheet, import it after Tailwind and add the `.typeset-docs` preset. Each attribute item registers the text style mark it extends, so any one of them works on its own. Declaring the mark and an attribute together registers it once. ## API Reference ### EditorTextStyle Registers the text style mark that carries the other attributes. ### EditorColor Adds the color attribute to the text style mark. ### EditorBackgroundColor Adds the background color attribute to the text style mark. ### EditorFontFamily Adds the font family attribute to the text style mark. ### EditorFontSize Adds the font size attribute to the text style mark. ### EditorLineHeight Adds the line height attribute to the text style mark. ### EditorTextStyleToolbar Popover with the color, background, font family, font size and line height controls. | Prop | Type | Default | | --- | --- | --- | | `className` | `string` | - | ## Registry dependencies - `litingyes/blocove/rich-text-editor` - `litingyes/blocove/rich-text-editor-extension` - `button` - `input` - `popover` Namespace: `npx shadcn@latest add @blocove/rich-text-editor-text-style`