AutoCSS-GPT is a Django web application that generates CSS and HTML code from user prompts, empowering developers and designers to create stunning designs quickly and efficiently. π
- Interactive UI: Enter your prompt and instantly generate code.
- Output Configurations: Choose your desired format: CSS, SCSS, or LESS.
- Responsive Design: Works seamlessly across all screen sizes.
- Spinner Feedback: Displays a loading spinner while generating code.
- Typewriter Effect: Engaging placeholder animation for user input.
Follow these steps to set up the project locally:
- Python 3.8+
- Django 4.0+
- Node.js (optional, for frontend bundling if required)
-
Clone the repository:
git clone https://github.com/your-username/autocss-gpt.git cd autocss-gpt
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Run database migrations:
python manage.py migrate
-
Start the development server:
python manage.py runserver
-
Open the application in your browser: Visit
http://127.0.0.1:8000/
π
- Enter your design prompt in the input box.
- Choose the output type (CSS, SCSS, or LESS) from the configuration panel.
- Click the "Submit" button to generate the code.
- View the generated code in the output section.
- Copy and paste the generated code into your project. βοΈ
βββ autocss_gpt/
β βββ settings.py # Django settings
β βββ urls.py # URL routing
β βββ models.py # Database models
β βββ views.py # Request handling
βββ templates/
β βββ index.html # Main HTML template
βββ static/
β βββ css/ # Static CSS files
β βββ js/ # Static JavaScript files
βββ manage.py # Django management script
Contributions are welcome! π To contribute:
- Fork the repository.
- Create a feature branch (
git checkout -b feature-name
). - Commit your changes (
git commit -m 'Add feature'
). - Push to the branch (
git push origin feature-name
). - Open a pull request.
- OpenAI for inspiring the AI-driven approach.
- Django for being an awesome web framework.
- You, for using AutoCSS-GPT! β€οΈ
For any questions or feedback, feel free to reach out:
- Email: [email protected]
- GitHub: @your-username
Enjoy coding with AutoCSS-GPT! π