devup-ui
БесплатноЗапускает вложенные скриптыНе проверенZero-runtime CSS-in-JS preprocessor for React. Transforms JSX styles to static CSS at build time. TRIGGER WHEN: - Writing/modifying Devup UI components (Box…
от dev-five-git★ 365 звёзд на GitHubОб этом скилле
Devup UI
Build-time CSS extraction. No runtime JS for styling.
Critical: Components Are Compile-Time Only
All @devup-ui/react components throw Error('Cannot run on the runtime'). They are placeholders that build plugins transform to native HTML elements with classNames.
// BEFORE BUILD (what you write):
<Box bg="red" p={4} _hover={{ bg: "blue" }} />
// AFTER BUILD (what runs in browser):
<div className="a b c" /> // + CSS: .a{background:red} .b{padding:16px} .c:hover{background:blue}
Components
@devup-ui/react (Layout Primitives)
All are polymorphic (accept as prop). Default element is <div> unless noted.
| Component | Default Element | Purpose |
|---|---|---|
Box |
div |
Base layout primitive, accepts all style props |
Flex |
div |
Flexbox container (shorthand for display: flex) |
Grid |
div |
CSS Grid container |
VStack |
div |
Vertical stack (flex column) |
Center |
div |
Centered content |
Text |
p |
Text/typography |
Image |
img |
Image element |
Input |
input |
Input element |
Button |
button |
Button element |
ThemeScript |
-- | SSR theme hydration (add to <head>) |
@devup-ui/components (Pre-built UI)
Higher-level components with built-in behavior. These are runtime components (not compile-time only).
| Component | Key Props |
|---|---|
Button |
variant (primary/default), size (sm/md/lg), loading, danger, icon, colors |
Checkbox |
children (label), onChange(checked), colors |
Input |
error, errorMessage, allowClear, icon, typography, colors |
Textarea |
error, errorMessage, typography, colors |
Radio |
variant (default/button), colors |
RadioGroup |
options[], direction (row/column), variant, value, onChange |
Toggle |
variant (default/switch), value, onChange(boolean), colors |
Select |
type (default/radio/checkbox), options[], value, onChange, colors |
Stepper |
min, max, type (input/text), value, onValueChange |
Select compound: SelectTrigger, SelectContainer, SelectOption, SelectDivider
Stepper compound: StepperContainer, StepperDecreaseButton, StepperIncreaseButton, StepperInput
Hooks: useSelect(), useStepper()
All components accept a colors prop object for runtime color customization via CSS variables.
Style Prop Syntax
Shorthand Props (ALWAYS prefer these)
Spacing (unitless number x 4 = px)
| Shorthand | CSS Property |
|---|---|
m, mt, mr, mb, ml, mx, my |
margin-* |
p, pt, pr, pb, pl, px, py |
padding-* |
Sizing
| Shorthand | CSS Property |
|---|---|
w |
width |
h |
height |
minW, maxW |
min-width, max-width |
minH, maxH |
min-height, max-height |
boxSize |
width + height (same value) |
Background
| Shorthand | CSS Property |
|---|---|
bg |
background |
bgColor |
background-color |
bgImage, bgImg, backgroundImg |
background-image |
bgSize |
background-size |
bgPosition, bgPos |
background-position |
bgPositionX, bgPosX |
background-position-x |
bgPositionY, bgPosY |
background-position-y |
bgRepeat |
background-repeat |
bgAttachment |
background-attachment |
bgClip |
background-clip |
bgOrigin |
background-origin |
bgBlendMode |
background-blend-mode |
Border
| Shorthand | CSS Property |
|---|---|
borderTopRadius |
border-top-left-radius + border-top-right-radius |
borderBottomRadius |
border-bottom-left-radius + border-bottom-right-radius |
borderLeftRadius |
border-top-left-radius + border-bottom-left-radius |
borderRightRadius |
border-top-right-radius + border-bottom-right-radius |
Layout & Position
| Shorthand | CSS Property |
|---|---|
flexDir |
flex-direction |
pos |
position |
positioning |
Helper: "top", "bottom-right", etc. (sets edges to 0) |
objectPos |
object-position |
offsetPos |
offset-position |
maskPos |
mask-position |
maskImg |
mask-image |
Typography
| Shorthand | Effect |
|---|---|
typography |
Applies theme typography token (fontFamily, fontSize, fontWeight, lineHeight, letterSpacing) |
All standard CSS properties from csstype are also accepted directly (e.g., display, gap, opacity, transform, animation, etc.).
Spacing Scale (unitless number x 4 = px)
<Box p={1} /> // padding: 4px
<Box p={4} /> // padding: 16px
<Box p="4" /> // padding: 16px (unitless string also x 4)
<Box p="20px" /> // padding: 20px (with unit = exact value)
Unitless CSS properties keep the number as written: lineHeight, zIndex, opacity, fontWeight, flexGrow, order, aspectRatio, columnCount, `strokeW
Установить devup-ui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл devup-ui?
Zero-runtime CSS-in-JS preprocessor for React. Transforms JSX styles to static CSS at build time. TRIGGER WHEN: - Writing/modifying Devup UI components (Box, Flex, Grid, Text, Button, etc.) - Using styling APIs: css(), globalCss(), keyframes() - Configuring devup.json theme (colors, typography, length, shadow, extends) - Setting up build plugins (Vite, Next.js, Webpack, Rsbuild, Bun) - Debugging "Cannot run on the runtime" errors - Working with responsive arrays, pseudo-selectors (_hover, _dark, etc.) - Using polymorphic `as` prop or `selectors` prop - Working with @devup-ui/components (Button, Input, Select, Toggle, etc.) - Using responsive length tokens ($containerX, $gutter) or shadow tokens ($card, $sm)
Как установить скилл devup-ui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл devup-ui запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic