HTML to Image is a modern web application that converts HTML and CSS code into high-quality images. It provides a live editor with instant preview and multiple export options for developers and designers.
The application is built with modern web technologies that ensure performance and user experience:
Frontend Framework
- React with TypeScript for type-safe component development
- Vite as the build tool for a fast and lightweight development experience
UI & Design System
- TailwindCSS for utility-first styling
- Shadcn/ui on top of Radix primitives for accessible components
Editor Features:
- β Real-time HTML/CSS code editor
- β Instant live preview
- β Configurable options panel
- β Canvas and resolution configuration
Export Options:
- β Multiple formats: PNG, JPEG, SVG
- β Customizable dimensions
Interface Features:
- β Collapsible accordion options panel
- β Resizable panels (editor, preview, and options)
- β Flexible panel distribution (rearrange editor, preview, and options layout)
Requirements:
- Node.js (+v18.x) installed
- npm installed
- Visual Studio Code with recommended extensions
Steps:
-
Fork this project.
-
Clone the repository:
git clone https://github.com/@username/html-to-image.git- Install dependencies:
npm install- Run the development server:
npm run devOpen http://localhost:5173 with your browser π
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.