An AI tool that takes HTML as an input to generate responsive CSS with a real-time preview for instant interaction.
- Live Demo
- Features
- Technologies Used
- Getting Started
- Screenshots
- How to use the application
- Use cases and similar project ideas
- Contributing
- License
- Acknowledgments
- Contact
Live demo - CSSGeneratorGPT
- AI Powered CSS style generator
- Custom commands to generate according to UI preference
- Tailwind CSS and Chakra UI
- Next.js
- AI Integration: OpenAI's GPT-4
- Next.js
- OpenAI API key
- Clone the repository:
git clone https://github.com/0xmetaschool/code-styler
cd code-styler
- Install dependencies:
npm install
- Set up environment variables:
Create a .env.local
file in the root directory and add the following variables:
OPENAI_API_KEY=your_openai_api_key
- Run the development server:
npm run dev
- Open your browser and navigate to
http://localhost:3000
You should now see the CSSGeneratorGPT running with Next.js.
- Paste your raw HTML code in 'Input HTML field'
- In the field, design description, add what kind of design you prefer
We love contributions! Here's how you can help make the CSSGeneratorGPT even better:
- Fork the project (
gh repo fork https://github.com/0xmetaschool/code-styler
) - Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for providing the GPT-4 API
- The Chakra UI and Tailwind CSS team for their excellent React component library
Please open an issue in the GitHub repository for any queries or support.