Is it OK to use Tailwind CSS with Calcite Components?
Yes it is, there's a calcite tailwind preset package that can be found here: https://www.npmjs.com/package/@esri/calcite-tailwind-preset?activeTab=readme
How to use calcite tailwind preset package?
I tried to install the package: npm i @esri/calcite-tailwind-preset, and I got error:
Successfully installed by running
npm i @esri/calcite-tailwind-preset --force or --legacy-peer-deps
I got:
I need to import it in the Tailwind CSS configuration file:
import calcitePreset from "@esri/calcite-tailwind-preset";
export default {
presets: [calcitePreset],
content: [ /* ... */ ],
};Where is the Tailwind CSS configuration?
@DitwanDPrice
Thank you!
Forrest
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.