arwes-react
БесплатноБез исполняемых скриптовНе проверенWorking with @arwes/react (1.0.0-next) sci-fi UI framework — frame components, Animator lifecycle, SVG styling, bleeps, and effects. Use this skill whenever…
от starwards★ 44 звезды на GitHubОб этом скилле
Arwes React (1.0.0-next) — Working Guide
This skill covers the @arwes/react framework as used in Starwards, including hard-won debugging
lessons from actual development. The installed version is 1.0.0-next.25020502.
Not compatible with: React Strict Mode, React Server Components.
The Compatibility Layer
Starwards wraps raw Arwes components in modules/browser/src/components/arwes-compat.tsx. This
provides an alpha.19-style API (Button, Card, FrameCorners, Text, etc.) on top of the 1.0.0-next
primitives. Always check arwes-compat.tsx before modifying UI components.
Colors come from modules/browser/src/colors.ts (the HSL palette system). The theme object
in arwes-compat.tsx references hsl.primary, hsl.secondary, etc.
Frame Components
10 frame components available, all wrapping FrameBase:
| Component | Shape | Key Props |
|---|---|---|
| FrameCorners | Corner brackets | cornerLength, strokeWidth |
| FrameOctagon | Clipped corners | squareSize, leftTop/rightTop/rightBottom/leftBottom |
| FrameNefrex | Asymmetric angled cuts + lines | squareSize, smallLineLength, largeLineLength |
| FrameKranox | Complex corner blocks | squareSize, bgStrokeWidth |
| FrameNero | Decorative corner blocks | cornerLength, cornerWidth |
| FrameLines | Horizontal/vertical lines | largeLineWidth, smallLineWidth |
| FrameHeader | Header decoration | direction, align, contentLength |
| FrameUnderline | Bottom underline | squareSize |
| FrameCircle | Circular with rotating deco | separation, sideWidth |
All frames share: styled, animated, padding, strokeWidth, elementRef, className.
Critical Lesson: CSS Class Names
The SVG element rendered by FrameBase gets class arwes-frames-frame plus a component-specific
class like arwes-frames-frameoctagon.
The class arwes-react-frames-framesvg does NOT exist. This was a phantom class name that
appeared in early code but never matched anything. If you see it in CSS selectors, it's broken.
Correct CSS targeting pattern:
/* Target frame SVG elements */
.my-wrapper .arwes-frames-frame [data-name=bg] { fill: ...; }
.my-wrapper .arwes-frames-frame [data-name=line] { stroke: ...; }
.my-wrapper .arwes-frames-frame [data-name=deco] { ... }
SVG data-name Attributes
Frame SVGs contain elements with these data-name values:
bg— Background fill pathline— Border stroke paths (inside a<g>group)deco— Decorative flourishes (not all frames have these)
The styled Prop
Controls whether Arwes applies its own inline styles via CSS variables.
styled={true} (default):
bg: fill: var(--arwes-frames-bg-color, currentcolor)
line: stroke: var(--arwes-frames-line-color, currentcolor); fill: none
deco: color: var(--arwes-frames-deco-color, currentcolor)
Frames inherit color from parent via currentcolor. This is the safe default — frames are always
visible as long as the parent has a non-black color.
styled={false}:
All inline styles become undefined. SVG elements get browser defaults: fill: black; stroke: none.
On a dark background, this means invisible frames.
When to use styled={false}
Only use it when you need full CSS control AND you have correct selectors targeting
arwes-frames-frame. Always verify frames are visible after switching to styled={false}.
If you just need to change colors, prefer keeping styled={true} and setting CSS variables:
.my-component {
--arwes-frames-bg-color: rgba(0, 255, 255, 0.1);
--arwes-frames-line-color: hsl(180, 100%, 37%);
}
The animated Prop
Controls entry/exit animations on frame elements.
animated={true}(default): bg fades in, lines draw in (stroke-dasharray), decos fade inanimated={false}: Frame appears instantly, no animation- When
animated={true}, the frame needs an Animator context to trigger animations
Animation types used internally:
['fade']— Opacity transition['draw']— SVG stroke-dasharray draw effect
Animator Wrapper Requirement
Frames MUST be inside an <Animator> component for proper rendering. FrameBase calls
useAnimator() internally and the useEffect that calls createFrame() depends on the animator
reference.
// CORRECT
<Animator>
<FrameOctagon strokeWidth={2} squareSize={10} />
</Animator>
// BROKEN - frame may not render or animate
<FrameOctagon strokeWidth={2} squareSize={10} />
The parent element must have position: relative so the absolutely-positioned SVG frame fills it.
useFrameAssembler
Optional hook for coordinated assembly animations. Subscribes to Animator state and triggers synchronized enter/exit across all frame sub-elements (bg, lines, decos staggered).
const frameRef = useRef<SVGSVGElement>(null);
useFrameAssembler(frameRef);
// ...
<FrameOctagon elementRef={frameRef} ... />
Requires Animator context. Wit
Установить arwes-react в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл arwes-react?
Working with @arwes/react (1.0.0-next) sci-fi UI framework — frame components, Animator lifecycle, SVG styling, bleeps, and effects. Use this skill whenever modifying Arwes components, debugging invisible frames, styling frame SVGs, or adding new sci-fi UI elements. Also use when you see imports from @arwes/react or the arwes-compat.tsx compatibility layer.
Как установить скилл arwes-react?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл arwes-react запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic