@eosa/presets
v0.1.1
Published
High-level semantic presets for Eosa video composition.
Downloads
21
Readme
@eosa/presets
High-level semantic presets for Eosa video composition.
🎨 Why use Presets?
AI agents and developers often find manual coordinate calculation (x, y, width, height) tedious and error-prone. Eosa Presets provide meaningful design "shorthands" that describe intent rather than raw pixels.
🚀 Usage
import { createProject } from "@eosa/core";
import { text, image, renderPreset } from "@eosa/presets";
const project = createProject("Pro Ad")
.composition(renderPreset.tiktok())
.addTrack("main", track =>
track
.addImage("bg.jpg", image.fullscreen())
.addText("BOOST YOUR PRODUCTIVITY", text.headline())
)
.build();📜 Available Presets
- Platform:
tiktok(),youtubeShorts(),instagramReel(),youtube(). - Layout:
fullscreen,center,top,bottom. - Text:
centerTitle(),bottomCaption(),headline(). - Transitions:
transition.fadeIn(),slideIn(),scaleIn().
