
Lorem Ipsum Generator
HTMLCSS3JS
ΒΆ Lorem Ipsum Generator
Live Demo: Click here to view

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
| Feature | Description |
|---|---|
| Paragraph Count | Slide to choose 1β10 paragraphs |
| Words per Paragraph | Slide to set 20β150 words per block |
| "Lorem ipsum" Opener | Toggle the classic opening sentence on/off |
| HTML Tags | Toggle <p>β¦</p> wrapping for direct paste into HTML |
| Copy | Copies all text to clipboard in one click |
| Download | Saves output as lorem-ipsum.txt |
| Live Stats | Shows word count, character count, and paragraph count in real time |
| Keyboard Shortcut | Ctrl + Enter / β + Enter generates new text instantly |
π How to Run
- Download or clone this folder.
- Open
index.htmlin any modern browser β no server needed.
π¨ Design Tokens (CSS Variables)
All colours, fonts, and radii are defined in css/style.css under :root.
| Variable | Value | Role |
|---|---|---|
--bg | #0B0B14 | Page background |
--accent | #6B42F0 | Primary violet |
--accent-text | #A08DFF | Muted violet for text |
--font-display | Playfair Display | Logo / headings |
--font-ui | Inter | Controls / labels |
--font-mono | Courier Prime | Generated 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.