From duskmoon-ui
When using npm package `@duskmoon-dev/css-art`, this skill shows how to install, configure, and use the pure CSS art component library
npx claudepluginhub gsmlg-dev/code-agent --plugin duskmoon-uiThis skill uses the workspace's default tool permissions.
`@duskmoon-dev/css-art` is a pure CSS art component library — decorative illustrations built entirely with CSS. No images, no SVGs, no JavaScript. Each art piece is a self-contained CSS class with customizable properties.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Automates semantic versioning and release workflow for Claude Code plugins: bumps versions in package.json, marketplace.json, plugin.json; verifies builds; creates git tags, GitHub releases, changelogs.
@duskmoon-dev/css-art is a pure CSS art component library — decorative illustrations built entirely with CSS. No images, no SVGs, no JavaScript. Each art piece is a self-contained CSS class with customizable properties.
# Bun
bun add @duskmoon-dev/css-art
# npm
npm install @duskmoon-dev/css-art
# pnpm
pnpm add @duskmoon-dev/css-art
@import "@duskmoon-dev/css-art";
All art styles are wrapped in @layer css-art { }, so they won't conflict with @duskmoon-dev/core's @layer components { }.
@import "tailwindcss";
@import "@duskmoon-dev/core";
@import "@duskmoon-dev/css-art";
art-moon — Moon with craters, crescent variant, and animated glow
art-moon-crescent, art-moon-glowart-moon-sm (4rem), default (8rem), art-moon-lg (12rem), art-moon-xl (16rem)--art-moon-size, --art-moon-color, --art-moon-shadow, --art-moon-glowart-sun — Sun with radial gradient, spinning rays, and pulse animation
art-sun-rays, art-sun-sunset, art-sun-pulseart-sun-sm (4rem), default (8rem), art-sun-lg (12rem), art-sun-xl (16rem)--art-sun-size, --art-sun-color, --art-sun-corona, --art-sun-glowart-atom — Animated atom with three orbiting electrons and pulsing nucleus
art-atom-sm (180px), default (360px), art-atom-lg (480px).electron, .electron-alpha, .electron-omega — three electron orbits--art-atom-size, --art-atom-color, --art-atom-electron-color, --art-atom-speedart-eclipse — Solar eclipse with six animated corona layers
art-eclipse-sm (300px), default (600px), art-eclipse-lg (800px).layer.layer-1 through .layer.layer-6 — six corona layers--art-eclipse-size, --art-eclipse-bgart-mountain — Mountain peak with snow cap, range variant with multiple peaks
art-mountain-range, art-mountain-sunset, art-mountain-forestart-mountain-sm (10rem×6rem), default (16rem×10rem), art-mountain-lg (24rem×15rem).art-peak — individual peaks within a range--art-mountain-width, --art-mountain-height, --art-mountain-color, --art-mountain-shadow, --art-mountain-snowart-snowflake — Snowflake dot with optional Unicode character variant
art-snowflake-unicode (❆ character), art-snowflake-fall (falling animation)--art-snowflake-size, --art-snowflake-color, --art-snowflake-durationart-plasma-ball — Interactive plasma ball with glass sphere, electrode, electric rays, and toggle switch
art-plasma-ball-sm (200px), default (350px), art-plasma-ball-lg (500px)input:checked CSS selectors for toggle behavior (no JS required)input.switcher, .glassball, .electrode, .rays, .ray, .base, .switch--art-plasma-ball-size, --art-plasma-ball-base-colorart-circular-gallery — CSS anchor-positioned circular gallery with 20 rotating card thumbnails
art-circular-gallery-sm (400px), default (600px), art-circular-gallery-lg (800px)h1 (center title), div elements (one per card) with data-title attribute, a > img (card thumbnail)offset-path, position-anchor, and :target for hover/selection behavior — no JS--art-circular-gallery-size, --art-circular-gallery-radius, --art-circular-gallery-card-widthart-cat-stargazer — A cat in a spacesuit gazing at the night sky with stars and a glowing moon
art-cat-stargazer-sm (300px), default (500px), art-cat-stargazer-lg (700px).moon, .cat, .cat .bubble, .cat .backpack, .cat .tail, .cat .body, .cat .ear, .cat .head--art-cat-stargazer-sizeart-flower-animation — Blooming flowers with grass, light particles, and floating heart bubbles against a night sky
art-flower-animation-sm (300px), default (600px), art-flower-animation-lg (900px).night, .flowers, .flower.flower--1 through .flower--4, .bubbles, .bubble--art-flower-animation-size, --art-flower-animation-bgart-color-spin — 3D spinning Olympic-style color rings with reflections and perspective
art-color-spin-sm (385px), default (770px), art-color-spin-lg (1000px)ul (required container), ul > li × 4 (one per ring)--art-color-spin-size, --art-color-spin-color1 through --art-color-spin-color4art-synthwave-starfield — Synthwave-aesthetic 3D starfield tunnel with neon grid walls and animated stars
art-synthwave-starfield-sm (300px), default (600px), art-synthwave-starfield-lg (900px)art-synthwave-starfield-paused — pauses all animations.art-synthwave-starfield-sides.art-synthwave-starfield-lefrig, .art-synthwave-starfield-sides.art-synthwave-starfield-topbot, .art-synthwave-starfield-stars (×2)--art-synthwave-starfield-size, --art-synthwave-starfield-line-colorart-csswitch — CSS-only game controller switch (Nintendo Switch inspired)
art-csswitch-sm, default, art-csswitch-lg.controller, .joycon-left, .joycon-right, .frame, .main-frame, .mushroom, .direction, .bar, .logo, .light--art-csswitch-size, --color, --color-shadow, --joycon-left, --joycon-left-shadow, --joycon-right, --joycon-right-shadowart-snowball-preloader — Animated snowball loading spinner with orbital rings
art-snowball-preloader-sm, default, art-snowball-preloader-lg.art-snowball-preloader-ball, .art-snowball-preloader-ball-texture, .art-snowball-preloader-ball-inner-shadow, .art-snowball-preloader-ball-outer-shadow, .art-snowball-preloader-ball-side-shadows, .art-snowball-preloader-inner-ring, .art-snowball-preloader-outer-ring, .art-snowball-preloader-track-cover--art-snowball-preloader-size, --art-snowball-preloader-bgart-gemini-input — Gemini-style animated conic-gradient border with glow halo on a textarea input
art-gemini-input-sm (280px), default (450px), art-gemini-input-lg (640px).art-gemini-input-border, .art-gemini-input-inner, .art-gemini-input-btn, .art-gemini-input-field (textarea)--art-gemini-input-width, --art-gemini-input-border-size, --art-gemini-input-gradient<div class="art-moon"></div>
<div class="art-moon art-moon-crescent art-moon-glow"></div>
<div class="art-sun art-sun-rays"></div>
<div class="art-sun art-sun-sunset art-sun-rays"></div>
<div class="art-mountain"></div>
<div class="art-mountain-range">
<div class="art-peak"></div>
<div class="art-peak"></div>
<div class="art-peak"></div>
</div>
<div class="art-atom">
<div class="electron"></div>
<div class="electron-alpha"></div>
<div class="electron-omega"></div>
</div>
<div class="art-eclipse">
<div class="layer layer-1"></div>
<div class="layer layer-2"></div>
<div class="layer layer-3"></div>
<div class="layer layer-4"></div>
<div class="layer layer-5"></div>
<div class="layer layer-6"></div>
</div>
<!-- Simple dot snowflake -->
<div class="art-snowflake art-snowflake-fall"></div>
<!-- Unicode snowflake character -->
<div class="art-snowflake art-snowflake-unicode art-snowflake-fall"></div>
<div class="art-plasma-ball">
<input class="switcher" type="checkbox" />
<div class="glassball">
<div class="electrode"></div>
<div class="rays">
<div class="ray"><span></span><span></span><span></span></div>
<div class="ray bigwave"><span></span><span></span></div>
<div class="ray"><span></span><span></span><span></span></div>
<div class="ray bigwave"><span></span><span></span></div>
<div class="ray"><span></span><span></span><span></span></div>
</div>
<!-- repeat .rays block 5 more times for full coverage -->
</div>
<div class="base"><div></div><div></div><span></span></div>
<div class="switch"></div>
</div>
<div class="art-cat-stargazer">
<div class="moon"></div>
<div class="cat">
<div class="bubble"></div>
<div class="backpack"></div>
<div class="tail"></div>
<div class="body">
<div class="leg"></div>
<div class="paw"></div><div class="paw"></div>
</div>
<div class="ear"></div><div class="ear"></div>
<div class="head">
<div class="whisker"></div><div class="whisker"></div>
<div class="whisker"></div><div class="whisker"></div>
<div class="nose"></div>
<div class="eye"></div><div class="eye"></div>
</div>
</div>
</div>
<div class="art-color-spin">
<ul>
<li style="--i:1"></li>
<li style="--i:2"></li>
<li style="--i:3"></li>
<li style="--i:4"></li>
</ul>
</div>
<div class="art-synthwave-starfield">
<div class="art-synthwave-starfield-sides art-synthwave-starfield-lefrig"></div>
<div class="art-synthwave-starfield-sides art-synthwave-starfield-topbot"></div>
<div class="art-synthwave-starfield-stars"></div>
<div class="art-synthwave-starfield-stars"></div>
</div>
<div class="art-circular-gallery">
<h1>Gallery</h1>
<div style="--i:1" data-title="Photo 1"><a href="#item1"><img src="photo1.jpg" alt="Photo 1" /></a></div>
<div style="--i:2" data-title="Photo 2"><a href="#item2"><img src="photo2.jpg" alt="Photo 2" /></a></div>
<!-- repeat for up to 20 items -->
</div>
<div class="art-flower-animation">
<div class="night"></div>
<div class="flowers">
<div class="flower flower--1">
<div class="flower__leafs flower__leafs--1">
<div class="flower__leaf flower__leaf--1"></div>
<div class="flower__leaf flower__leaf--2"></div>
<div class="flower__leaf flower__leaf--3"></div>
<div class="flower__leaf flower__leaf--4"></div>
<div class="flower__white-circle"></div>
</div>
<div class="flower__line">
<div class="flower__line__leaf flower__line__leaf--1"></div>
<div class="flower__line__leaf flower__line__leaf--2"></div>
</div>
</div>
</div>
</div>
<div class="art-gemini-input">
<div class="art-gemini-input-border"></div>
<div class="art-gemini-input-inner">
<button class="art-gemini-input-btn">+</button>
<textarea class="art-gemini-input-field" placeholder="Ask Gemini..."></textarea>
<button class="art-gemini-input-btn">▶</button>
</div>
</div>
<div class="art-csswitch">
<div class="controller">
<div class="frame">
<div class="main-frame"><!-- controller frame --></div>
</div>
</div>
</div>
<div class="art-snowball-preloader">
<div class="art-snowball-preloader-outer-ring"></div>
<div class="art-snowball-preloader-inner-ring"></div>
<div class="art-snowball-preloader-track-cover"></div>
<div class="art-snowball-preloader-ball">
<div class="art-snowball-preloader-ball-texture"></div>
<div class="art-snowball-preloader-ball-outer-shadow"></div>
<div class="art-snowball-preloader-ball-inner-shadow"></div>
<div class="art-snowball-preloader-ball-side-shadows"></div>
</div>
</div>
Override CSS custom properties to customize any art piece:
<!-- Blue moon -->
<div class="art-moon" style="--art-moon-color: oklch(80% 0.08 240);"></div>
<!-- Custom-sized sun -->
<div class="art-sun" style="--art-sun-size: 6rem;"></div>
<!-- Green atom -->
<div class="art-atom" style="--art-atom-color: #00ff88;">
<div class="electron"></div>
<div class="electron-alpha"></div>
<div class="electron-omega"></div>
</div>
<div style="background: oklch(15% 0.02 260); padding: 3rem; position: relative; overflow: hidden;">
<div class="art-moon art-moon-crescent art-moon-glow" style="position: absolute; top: 1rem; right: 2rem;"></div>
<div class="art-snowflake art-snowflake-fall" style="left: 20%; --art-snowflake-duration: 6s;"></div>
<div class="art-snowflake art-snowflake-fall" style="left: 50%; --art-snowflake-duration: 4s; animation-delay: 1s;"></div>
<div class="art-snowflake art-snowflake-fall" style="left: 80%; --art-snowflake-duration: 5s; animation-delay: 2s;"></div>
<div class="art-mountain-range" style="position: absolute; bottom: 0;">
<div class="art-peak"></div>
<div class="art-peak"></div>
<div class="art-peak"></div>
</div>
</div>
.art- to avoid collisions--art- for namespacing@layer css-art to avoid cascade conflicts with other libraries@keyframes with art- prefixed names/* Import only what you need */
@import "@duskmoon-dev/css-art/art";
# Build css-art package
bun run build:css-art
# Watch mode
bun run dev:css-art
# Unit tests
cd packages/css-art && bun test tests/unit