Skip to content

MukundaKatta/LayoutAI

Repository files navigation

LayoutAI

Responsive layout generator — describe layouts in natural language and get CSS grid/flexbox code

CI License: MIT Node.js 18+ TypeScript

What is LayoutAI?

LayoutAI turns natural language descriptions into production-ready CSS layouts. Describe what you want — "3 column grid with sidebar" — and get semantic HTML + responsive CSS using Grid and Flexbox.

Architecture

graph LR
  A[Text Description] --> B[Intent Parser]
  B --> C{Layout Type}
  C --> D[Grid Generator]
  C --> E[Flexbox Generator]
  C --> F[Sidebar Generator]
  C --> G[Dashboard Generator]
  C --> H[Holy Grail Generator]
  C --> I[Cards Generator]
  D & E & F & G & H & I --> J[HTML + CSS Output]
  J --> K[Preview Page]
Loading

Quick Start

npm install && npm run build
import { LayoutGenerator } from "layoutai";

const gen = new LayoutGenerator();
const result = gen.generate("3 column grid with gap");
console.log(result.html);
console.log(result.css);
// Or get a full preview page:
console.log(result.preview);

Supported Layouts

Type Keywords Description
Grid grid, columns, col CSS Grid with configurable columns
Flexbox flex, row, stack Flexbox with wrapping
Sidebar sidebar, aside Two-column with sidebar
Holy Grail holy grail, classic Header + footer + 3 columns
Dashboard dashboard, admin Admin panel with widgets
Cards cards, tiles Auto-fill card grid

Inspired By

Inspired by AI layout/design generation tools and the trend toward natural-language-driven UI development.


Built by Officethree Technologies | Made with ❤️ and AI

About

Responsive layout generator — CSS Grid, Flexbox, and responsive breakpoints from configuration in TypeScript

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors