Skip to content

SyabAhmad/Dress_Customizer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dress Customizer — Frontend (React + Vite + Tailwind)

Beautiful, responsive UI for an AI-powered clothing design tool. Enter a natural-language prompt (e.g. “Generate a blue evening gown with lace sleeves and a long train”) and tweak details like color, pattern, sleeves, neckline, fabric texture, train length, and skirt volume. Save variants, preview, and export as SVG/PNG — all client-side.

Features

  • Prompt-based param extraction (simple heuristic parser)
  • Real-time vector mock-up with SVG (bodice, sleeves, skirt, train)
  • Patterns (solid, stripes, polka, floral, lace)
  • Fabric textures (silk, satin, lace, velvet, chiffon) via SVG filters
  • Controls: color, sleeve length, neckline, train, texture intensity, skirt volume
  • Save variants with thumbnails and one-click restore
  • Export current design to SVG or PNG
  • Light/Dark theme toggle

Getting started

npm install
npm run dev

Then open the URL from the console (usually http://localhost:5173).

Build for production:

npm run build
npm run preview

Project structure

  • src/App.jsx — Main composition and state wiring
  • src/components/Header.jsx — Top navbar with theme toggle
  • src/components/PromptBar.jsx — Prompt input and generate action
  • src/components/CustomizerPanel.jsx — Controls for parameters
  • src/components/Preview.jsx — SVG preview, export buttons
  • src/components/VariantsTray.jsx — Saved variants strip
  • src/utils/dressGenerator.jsx — SVG generator for the dress
  • src/utils/promptParser.js — Heuristic mapping of prompt → params

Notes

  • This is a frontend-only prototype; there’s no real AI model call. The prompt is parsed with keyword heuristics and mapped to visual parameters.
  • The SVG silhouette is intentionally stylized to serve as a quick mock-up.
  • Tailwind v4 utilities are used via @tailwindcss/vite and @import "tailwindcss" in src/index.css.

Theming

A single shared theme file is available at src/styles/theme.css.

  • Edit the CSS variables at the top of src/styles/theme.css to change application-wide colors and tokens (primary color, background, text, etc.).

  • You can use the CSS variables directly in components, for example:

    • Inline style in JSX: style={{ color: 'var(--color-primary)' }}
    • In CSS: .my-class { background: var(--color-surface); color: var(--color-text); }
  • A few helper classes are provided (e.g., bg-primary, text-primary, btn-primary).

Because src/index.css imports src/styles/theme.css, the variables are available throughout the app after the initial import in src/main.jsx.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.5%
  • Python 25.8%
  • CSS 4.0%
  • Other 0.7%