This project is a Tailwind CSS-enabled variant of the Example Component Library. It demonstrates how to create custom components for Ignition Perspective using Tailwind CSS for styling, providing a utility-first approach to component design.
This variant adds Tailwind CSS integration to the base Example Component Library, allowing developers to:
If you're looking for the base example without Tailwind CSS, please see the original Example Component Library.
The project follows the same structure as the base Example Component Library, with additional configuration for Tailwind CSS:
common
: Shared code used by both the Gateway and Designerdesigner
: Designer-specific codegateway
: Gateway-specific codeweb
: Frontend React components and Tailwind CSS configurationtailwind.config.js
: Tailwind CSS configurationpostcss.config.js
: PostCSS configurationsrc/css/styles.css
: Main CSS file with Tailwind directivesdocker
: Contains Docker-related files for development and testingThis variant includes these additional configurations:
Currently, this project includes one example component:
Button
: A customizable button component (web/src/components/Button.tsx
) demonstrating Tailwind CSS styling patternsAll the base technologies from the Example Component Library, plus:
Follow these steps to get started with the Tailwind CSS variant:
Ensure you have Java 11, Gradle, and Node.js installed.
Clone this repository:
git clone https://github.com/keith-gamble/ignition-module-with-tailwind-css.git
cd ignition-module-with-tailwind-css
Build the web components:
cd web
npm install
npm run build
Build the entire module:
cd ..
./gradlew build
For detailed setup instructions, see our Environment Setup Guide.
The development workflow remains the same as the base example, with these Tailwind-specific additions:
web/src/css/styles.css
if neededtailwind.config.js
npm run watch
in the web
directory to see CSS changes in real-timeSee the Web Technologies Guide for detailed information about working with Tailwind CSS in this project.
Choose this variant if you:
If you don't need Tailwind CSS, consider using the base Example Component Library instead.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE.txt file for details.