atomic-design-integration
БесплатноБез исполняемых скриптовНе проверенUse when integrating Atomic Design methodology with React, Vue, Angular, or other frameworks. Framework-specific implementation patterns.
от TheBushidoCollective★ 202 звезды на GitHubОб этом скилле
Atomic Design: Framework Integration
Master the integration of Atomic Design methodology with modern frontend frameworks. This skill covers React, Vue, Angular, and general patterns for implementing atomic component hierarchies.
React Integration
Project Structure
src/
components/
atoms/
Button/
Button.tsx
Button.module.css
Button.test.tsx
Button.stories.tsx
index.ts
index.ts # Barrel export
molecules/
FormField/
FormField.tsx
FormField.module.css
FormField.test.tsx
index.ts
index.ts
organisms/
Header/
Header.tsx
Header.module.css
useHeader.ts # Custom hook
index.ts
index.ts
templates/
MainLayout/
MainLayout.tsx
MainLayout.module.css
index.ts
index.ts
index.ts # Main barrel export
pages/ # Next.js or page components
HomePage/
HomePage.tsx
index.ts
Barrel Exports Pattern
// components/atoms/index.ts
export { Button } from './Button';
export type { ButtonProps } from './Button';
export { Input } from './Input';
export type { InputProps } from './Input';
export { Label } from './Label';
export type { LabelProps } from './Label';
export { Icon } from './Icon';
export type { IconProps } from './Icon';
// components/index.ts
export * from './atoms';
export * from './molecules';
export * from './organisms';
export * from './templates';
Component Template (React/TypeScript)
// components/atoms/Button/Button.tsx
import React, { forwardRef } from 'react';
import type { ButtonHTMLAttributes } from 'react';
import styles from './Button.module.css';
import { clsx } from 'clsx';
export type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
export type ButtonSize = 'sm' | 'md' | 'lg';
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
variant?: ButtonVariant;
size?: ButtonSize;
fullWidth?: boolean;
isLoading?: boolean;
leftIcon?: React.ReactNode;
rightIcon?: React.ReactNode;
}
export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
(
{
variant = 'primary',
size = 'md',
fullWidth = false,
isLoading = false,
leftIcon,
rightIcon,
disabled,
children,
className,
...props
},
ref
) => {
return (
<button
ref={ref}
className={clsx(
styles.button,
styles[variant],
styles[size],
fullWidth && styles.fullWidth,
isLoading && styles.loading,
className
)}
disabled={disabled || isLoading}
aria-busy={isLoading}
{...props}
>
{isLoading ? (
<span className={styles.spinner} aria-hidden="true" />
) : (
<>
{leftIcon && <span className={styles.leftIcon}>{leftIcon}</span>}
{children}
{rightIcon && <span className={styles.rightIcon}>{rightIcon}</span>}
</>
)}
</button>
);
}
);
Button.displayName = 'Button';
Custom Hooks with Atomic Design
// organisms/Header/useHeader.ts
import { useState, useCallback } from 'react';
interface UseHeaderOptions {
user?: { id: string; name: string };
onLogout?: () => void;
}
export function useHeader({ user, onLogout }: UseHeaderOptions) {
const [menuOpen, setMenuOpen] = useState(false);
const [searchQuery, setSearchQuery] = useState('');
const toggleMenu = useCallback(() => {
setMenuOpen((prev) => !prev);
}, []);
const handleSearch = useCallback((query: string) => {
setSearchQuery(query);
// Could trigger search action here
}, []);
const handleLogout = useCallback(() => {
setMenuOpen(false);
onLogout?.();
}, [onLogout]);
return {
menuOpen,
toggleMenu,
searchQuery,
handleSearch,
handleLogout,
isAuthenticated: !!user,
};
}
Context for Design Tokens
// contexts/ThemeContext.tsx
import React, { createContext, useContext, useState } from 'react';
interface Theme {
colors: {
primary: string;
secondary: string;
background: string;
text: string;
};
spacing: {
xs: string;
sm: string;
md: string;
lg: string;
};
}
const defaultTheme: Theme = {
colors: {
primary: '#2196f3',
secondary: '#f50057',
background: '#ffffff',
text: '#212121',
},
spacing: {
xs: '4px',
sm: '8px',
md: '16px',
lg: '24px',
},
};
const ThemeContext = createContext<{
theme: Theme;
setTheme: (theme: Theme) => void;
}>({
theme: defaultTheme,
setTheme: () => {},
});
export const ThemeProvider: React.FC<{ children: React.ReactNode }> = ({
children,
}) => {
const [theme, setTheme] = useState(defaultTheme);
return (
<ThemeContext.Provider val
Установить atomic-design-integration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGlobGrepFAQ
Что делает скилл atomic-design-integration?
Use when integrating Atomic Design methodology with React, Vue, Angular, or other frameworks. Framework-specific implementation patterns.
Как установить скилл atomic-design-integration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл atomic-design-integration запускает скрипты?
Нет, скилл состоит только из инструкций (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