Create with ease
Build an element, set useful attributes, and add it to your page in one call.
app.addElement(options)
A tiny helper for a big part of the web
Create, select, style, and update elements with a lightweight API that keeps your JavaScript clear and your ideas moving.
Plain JavaScript. No framework required.
import LucidDOM from
'./lucidDOM.js';
const app = new LucidDOM(
document.querySelector('#app')
);
const note = app.addElement({
tag: 'p',
value: 'Hello, clearer code.'
});
note.styles({
color: '#e88718'
});
Less friction, more flow
LucidDOM wraps the everyday DOM tasks in a small, approachable set of helpers.
Build an element, set useful attributes, and add it to your page in one call.
app.addElement(options)
Use familiar CSS selectors to find elements inside the parent you choose.
app.select('.card')
Update content, listen for events, apply styles, and remove elements with a handy handle.
handle.update(options)
A hands-on hello
This tiny counter is wired up with LucidDOM. Select the buttons, listen for clicks, and update the number—no framework in sight.
See how it worksYour count
A little progress, one click at a time.