Back to Projects
Lorem Ipsum Generator

Lorem Ipsum Generator

HTMLCSS3JS

ΒΆ Lorem Ipsum Generator

Live Demo: Click here to view

Screenshot

A clean, dark-themed placeholder text generator built with vanilla HTML, CSS, and JavaScript. No frameworks, no dependencies β€” just open index.html in your browser.


πŸ“ Folder Structure

lorem-ipsum-generator/
β”œβ”€β”€ index.html          ← App entry point
β”œβ”€β”€ css/
β”‚   └── style.css       ← All styling (variables, layout, animations)
β”œβ”€β”€ js/
β”‚   └── app.js          ← Text generation logic + DOM interactions
β”œβ”€β”€ assets/             ← Reserved for future icons / images
└── README.md           ← You're reading this

✨ Features

FeatureDescription
Paragraph CountSlide to choose 1–10 paragraphs
Words per ParagraphSlide to set 20–150 words per block
"Lorem ipsum" OpenerToggle the classic opening sentence on/off
HTML TagsToggle <p>…</p> wrapping for direct paste into HTML
CopyCopies all text to clipboard in one click
DownloadSaves output as lorem-ipsum.txt
Live StatsShows word count, character count, and paragraph count in real time
Keyboard ShortcutCtrl + Enter / ⌘ + Enter generates new text instantly

πŸš€ How to Run

  1. Download or clone this folder.
  2. Open index.html in any modern browser β€” no server needed.

🎨 Design Tokens (CSS Variables)

All colours, fonts, and radii are defined in css/style.css under :root.

VariableValueRole
--bg#0B0B14Page background
--accent#6B42F0Primary violet
--accent-text#A08DFFMuted violet for text
--font-displayPlayfair DisplayLogo / headings
--font-uiInterControls / labels
--font-monoCourier PrimeGenerated text output

🧩 Word Bank

js/app.js contains a curated array of classical Latin-derived words (WORDS[]). You can extend or replace this array to customise the generated vocabulary.


πŸ›  Browser Support

Works in all modern browsers (Chrome, Firefox, Safari, Edge). Requires JavaScript enabled.