ChainwindCSS is a visual tool that helps you generate Tailwind CSS code through a node-based interface. Connect nodes, draw frames, and instantly get the corresponding Tailwind CSS code.
This example has been created using the tldraw SDK, offering features similar to computer.tldraw.com.
Before you begin, ensure you have:
.env
file in the root directoryOPENAI_API_KEY=your_api_key_here
npm install
npm run dev
chainwindcss/
āāā src/
ā āāā app/
ā ā āāā api/
ā ā ā āāā generate/
ā ā ā āāā tailwind/
ā ā āāā layout.tsx
ā ā āāā page.tsx
ā āāā components/
ā ā āāā draw/
ā ā ā āāā code-preview.tsx
ā ā ā āāā drawing-canvas.tsx
ā ā ā āāā error-boundary.tsx
ā ā ā āāā generate-box.tsx
ā ā āāā svg/
ā ā āāā tiptap/
ā ā ā āāā Tiptap.tsx
ā ā āāā tldraw/
ā ā āāā tailwindShape.tsx
ā ā āāā textInputShape.tsx
ā āāā tldraw-utils/
ā āāā custom.ts
āāā public/
ā āāā globe.svg
ā āāā file.svg
āāā .env
āāā next.config.js
āāā package.json
āāā postcss.config.mjs
āāā tsconfig.json
Visit chainwindcss.com to try it out!
For questions or feedback, reach out to:
Contributions are welcome! Feel free to submit issues and pull requests.