2022-06-03 07:10:01 +02:00
2022-06-17 21:24:29 -05:00
2022-06-12 17:45:58 +02:00
2022-06-12 17:45:58 +02:00
2022-06-12 22:25:27 +02:00
2022-06-03 07:10:01 +02:00
2022-06-12 22:25:27 +02:00
2022-06-12 22:25:27 +02:00
2022-06-12 22:25:27 +02:00

Logo
Catppuccin for TailwindCSS

Usage

  1. Install the plugin
npm install -D @nekowinston/ctp-tailwindcss
  1. Configure your tailwind.config.js
module.exports = {
  // ...other settings
  plugins: [
    require('@nekowinston/ctp-tailwindcss'),
  ],
}
  1. Optional: customize the plugin
module.exports = {
  // ...other settings
  plugins: [
    require('@nekowinston/ctp-tailwindcss')({
      // prefix to use, e.g. `text-pink` becomes `text-ctp-pink`.
      // default is `false`, which means no prefix
      prefix: 'ctp',
      // which flavour of colours to use by default, in the `:root`
      defaultFlavour: 'latte'
    }),
  ],
}
  1. Use it in your markup!
<!-- switching the class for parent elements changes the flavour! -->
<body class="frappe">
  <h1 class="bg-base text-pink">
    Hello world!
  </h1>
</body>

You can find examples for Next.js and Svelte in the examples folder.

💝 Thanks to

 

Copyright © 2021-present Catppuccin Org

Description
No description provided
Readme MIT 2.3 MiB
Languages
SCSS 100%