{"repo":"NativeScript/tailwind","free":true,"listed":false,"github":"https://github.com/NativeScript/tailwind","clone":"git clone https://github.com/NativeScript/tailwind.git","description":"Makes using TailwindCSS in NativeScript a whole lot easier!","language":"JavaScript","stars":161,"topics":["tailwind","nativescript","tailwindcss","css","postcss"],"license":null,"category":"ui-components","readme_excerpt":"@nativescript/tailwind Warning : :warning: For Tailwind CSS v3 , @nativescript/core@8.2.0 is required for colors to work properly. You may see wrong colors on older core versions, because Tailwind CSS v3 uses the RGB/A color notation, which has been implemented for 8.2.0. Tailwind CSS v4 uses Lightning CSS which handles this automatically. Makes using Tailwind CSS in NativeScript a whole lot easier! Usage Note: This guide assumes you are using @nativescript/webpack@5.x or higher. If you have not upgraded yet, please read the docs below for usage with older @nativescript/webpack versions (applicable to Tailwind CSS v3). Tailwind CSS v4 If you need to use Tailwind CSS v4, follow these steps. Tailwind CSS v4 support simplifies the setup significantly over v3. Install dependencies: Import Tailwind: Add the following to your app.css or app.scss : Upgrading from Tailwind CSS 3 Update dependencies: Open your app.css or app.scss and replace any existing Tailwind imports with: Tailwind CSS v3 If you need to use Tailwind CSS v3, follow these steps: Install dependencies: Generate tailwind.config.js : Configure tailwind.config.js : When the NativeScript CLI creates a new project, it may put code into a src folder instead of the app referenced below. Adjust content , darkMode , corePlugins plus any other settings you need. Here are the values we recommend. If you're struggling to get Tailwind working for the first time, check the content setting. Include Tailwind directives: Change your a","default_branch":null,"files":null,"tree":[],"storefront":"/r/NativeScript","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/NativeScript/tailwind/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}