Introduction
ProseKit provides a set of components that you can copy and paste into your project. These components are styled with Tailwind CSS, allowing you to create beautiful, responsive editors with minimal effort.
Installation
Section titled “Installation”-
Install Tailwind CSS
If you haven’t already, set up Tailwind CSS in your project:
pnpm add tailwindcss postcss autoprefixer
npm install tailwindcss postcss autoprefixer
yarn add tailwindcss postcss autoprefixer
bun add tailwindcss postcss autoprefixer
For detailed installation instructions, see the Tailwind CSS documentation.
-
Install recommended plugins
For the best experience with ProseKit components, install these Tailwind CSS plugins:
pnpm add tailwindcss-animate @egoist/tailwindcss-icons @iconify-json/lucide
npm install tailwindcss-animate @egoist/tailwindcss-icons @iconify-json/lucide
yarn add tailwindcss-animate @egoist/tailwindcss-icons @iconify-json/lucide
bun add tailwindcss-animate @egoist/tailwindcss-icons @iconify-json/lucide
-
Configure Tailwind CSS
Update your Tailwind CSS configuration:
tailwind.config.jsimport { iconsPlugin } from '@egoist/tailwindcss-icons' import animatePlugin from 'tailwindcss-animate' export default { content: ['./src/**/*.{html,js,jsx,ts,tsx,vue,svelte}'], plugins: [iconsPlugin(), animatePlugin], }
-
That’s it
You can now start adding components to your project.