---
title: "Style Tiptap UI Components"
description: "Style Tiptap UI Components to match your design system or application theme."
---

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/ui-components/getting-started/style.md)

# Style Tiptap UI Components

Style Tiptap UI Components to match your design system or application theme.

> **Upgrade to v3**
>
> To use UI components or templates you need to upgrade to Editor version 3.x. See the [upgrade
> guide](https://tiptap.dev/docs/resources/whats-new) for more details.

### Add Styles

To enable support for SCSS, install the appropriate SCSS compiler based on your framework setup.

> **Styles are only added when using the CLI**
>
> Styles are included only if you installed a component or template using the CLI. These styles come
> bundled with whatever you add through the CLI.

#### For Next.js

1. Install `sass`:

```bash
pnpm add -D sass
```

2. Import the SCSS partials in your main stylesheet:

**File:** `global.css`

```css
@import 'path-to/styles/_variables.scss';
@import 'path-to/styles/_keyframe-animations.scss';
```

#### For Vite + React

1. Install `sass-embedded`:

```bash
pnpm add -D sass-embedded
```

2. Import the SCSS partials in your main stylesheet:

**File:** `src/index.css`

```css
@import 'path-to/styles/_variables.scss';
@import 'path-to/styles/_keyframe-animations.scss';
```

Make sure the SCSS files are in the correct path so the styles load properly in your project.
