![]() When you're adapting code from Tailwind UI for your own projects, you should break the examples down into smaller components as necessary to achieve whatever level of reuse you need for your project. Some data has been extracted into basic local variables just to clean up duplication and make the code easier to read and understand, but we've tried to do as little as possible to avoid enforcing any unnecessarily rigid opinions. #Figma icons install#Tailwind UI for React depends on Headless UI to power all of the interactive behavior and Heroicons for icons, so you'll need to add these two libraries to your project: npm install libraries and Tailwind UI itself all require React >= 16.Īll React examples are provided as a simple single component and make no assumptions about how you want to break things down, what prop APIs you want to expose, or where you get any data from. Then add "Inter var" to your "sans" font family in your Tailwind config: // Ĭonst defaultTheme = require('tailwindcss/defaultTheme') You can use any font you want in your own project of course, but if you'd like to use Inter, the easiest way is to first add it via the CDN: ![]() Using a custom font is nice because it allows us to make the components look the same on all browsers and operating systems. Explore Web design UI kits Mobile design Icons Illustrations Wireframes 5+ Icon Set Collections with 1000+ icons Hope you guys will enjoy watching this. We've used Inter font family for all of the Tailwind UI examples because it's a beautiful font for UI design and is completely open-source and free. A great place for the latest details about what’s going on at Figma Community. If you're new to Tailwind CSS, you'll want to read the Tailwind CSS documentation as well to get the most out of Tailwind UI. ![]() #Figma icons update#To make sure that you are on the latest version of Tailwind, update via npm: npm install you are previously coming from Tailwind UI for Tailwind CSS v1, check out our guide for getting updated to Tailwind CSS v2/v3.Īll of the examples in Tailwind UI rely on the default Tailwind CSS configuration, but some rely on additional first-party plugins like and an example requires any plugins or configuration changes, it will be noted in a comment at the top of the example. ![]() All of the components in Tailwind UI are designed for Tailwind CSS v2/v3. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |