Web components for the new castomo website, drawn from the Duopulse Occupation pack: 98 people at work and play in black marker line with coral and teal accents. The line work stays calm and the accents do the moving: they pop in one by one, wiggle when touched and drift with the pointer. Sliders, tiles, floating cards, product presentation, scroll scenes, sticky layouts, heroes, contact forms, onboarding, site headers and newsletter sign-ups. Every component is a custom element with its own shadow DOM and no dependencies, and takes its colours from the brand.
00
The base: <occupation-art>
Every component draws through this element. It loads a piece lazily, crops it to a square, binds coral and teal to the brand, and tags every accent so it can move on its own.
<occupation-art>
accent pop
Accents spring in one by one, from their own centres, when the art comes into view.
pop
parallax
The accents drift further than the line work as the pointer moves.
parallax="14"
mono
Any piece in ink only, for before/after, locked and “not yet” states. Most scenes also ship a -mono twin.
mono
dark section
Ink and paper are two variables, so swapping them redraws the piece for the dark.
--occupation-ink · --occupation-paper
Using it on a site
Load
Import only the components a page uses. Each one brings in the base element and the shared helpers.
<script type="module" src="/occupation/components/occupation-hero-intro.js"></script>
<!-- or everything at once -->
<script type="module" src="/occupation/index.js"></script>
Theme
The same brand slots as the other kits. Teal takes the dark stop and coral the mid stop; the line work stays ink.
:root {
--slot-0: #B8331A; /* was teal */
--slot-1: #DC4425; /* was coral */
--occupation-ink: #000;
--occupation-paper: #fff;
}
Weight, honestly
The drawings are hand-drawn paths, about 200 KB each (about 60 KB gzipped). Heroes and feature art use them; cards, marquees and trails use lite, a 15 KB WebP of the same piece.
Use it for
The new castomo website first; then any ecosystem site, recoloured by its brand slots. Occupation suits “who it’s for”, careers, services and onboarding: every job has a face.
Technique
Custom elements with shadow DOM and shared constructable stylesheets. Art is inlined SVG with each accent shape tagged as a part, carrying its index and centre, so outside CSS can pop, wiggle and drift accents in place without disturbing the drawing order.
Weight
98 pieces, 19.5 MB as SVG after rounding to one decimal (29 MB as shipped), 1.2 MB as thumbnails. A page loads only what it shows, lazily.
Licence
GetIllustrations Free: requires a visible linked credit on every page. Fine for our own sites; not for dash-b or any builder where users pick the art, unless we buy the Extended licence.