Skip to content

UrionBlade/unity-tailwindcss

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Unity Tailwind CSS

A Unity package for using Tailwind CSS in Unity UI Toolkit
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. License
  5. Contact

About The Project

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.

(back to top)

Built With

  • Tailwindcss
  • C#

(back to top)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

You should have a Unity project with UI Toolkit installed.

Installation

  1. Open the Unity Package Manager
  2. Press on the + button on the top left corner
  3. Select Add package from git URL...
  4. Insert git@github.com:UrionBlade/unity-tailwindcss.git and press Add
  5. Once the package is installed create a TailwindGeneratorSettings asset by right clicking in the project window and selecting Create > Tailwind Generator Settings
  6. From the generated asset inspector, click the button Generate to generate the stylesheet
  7. 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.

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Adds some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Matteo Poli - @MatteoPoli15 - matteo.poli4@gmail.com

Project Link: https://github.com/UrionBlade/unity-tailwindcss

(back to top)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages