Style Tiptap UI Components
Upgrade to v3
To use UI components or templates you need to upgrade to Editor version 3.x. See the upgrade guide 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
- Install
sass:
pnpm add -D sass- Import the SCSS partials in your main stylesheet:
File: global.css
@import 'path-to/styles/_variables.scss';
@import 'path-to/styles/_keyframe-animations.scss';For Vite + React
- Install
sass-embedded:
pnpm add -D sass-embedded- Import the SCSS partials in your main stylesheet:
File: src/index.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.