![Logo](/UrionBlade/unity-tailwindcss/raw/main/images/logo.png)
A Unity package for using Tailwind CSS in Unity UI Toolkit
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
A Unity library that let user style Unity UI Toolkit elements using Tailwind CSS. This library let users create a file to customize the default classes from Tailwind CSS and add new ones. The library will then generate a stylesheet that can be used in Unity UI Toolkit.
To get a local copy up and running follow these simple example steps.
You should have a Unity project with UI Toolkit installed.
- Open the Unity Package Manager
- Press on the
+
button on the top left corner - Select
Add package from git URL...
- Insert
git@github.com:UrionBlade/unity-tailwindcss.git
and pressAdd
- Once the package is installed create a TailwindGeneratorSettings asset by right clicking in the project window and selecting
Create > Tailwind Generator Settings
- From the generated asset inspector, click the button
Generate
to generate the stylesheet - To provide a personal configuration just create a json file (with the same structure of the tailwind one) and put it in a folder inside your project. Then drag the folder in the
Tailwind Generator Settings
inspector. The generator will use the configuration file to generate the stylesheet.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Adds some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Matteo Poli - @MatteoPoli15 - matteo.poli4@gmail.com
Project Link: https://github.com/UrionBlade/unity-tailwindcss