Style Tiptap UI Components
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.