현재 Akan.js v1 문서를 보고 있습니다.최신 v2 문서 보기

CSS Styling Guidelines

Comprehensive styling guidelines for Akan.js components using TailwindCSS and akanjs/ui semantic tokens ensuring consistency, maintainability and proper theming across applications.

Core Principles

Follow these fundamental principles for consistent styling:
Utility-First
Use Tailwind's utility classes instead of custom CSS
Component Composition
Design for composition with className overrides
Theme Consistency
Use the semantic design-token color system
Responsive Design
Mobile-first layouts with breakpoint prefixes
Accessibility
Ensure proper contrast and focus states

Class Management (clsx)

Use clsx for conditional class handling and composition:

Component Best Practices

Forward className Prop
Semantic Color System
primarycolor기본값 theme-defined
Primary brand color
secondarycolor기본값 theme-defined
Secondary brand color
base-100color기본값 theme-defined
Base background color
Responsive Design
State Variants
Consistent Spacing

MIT 라이선스 하에 배포되었습니다.

내 AI에 이 문서 연결하기

MCPhttps://akanjs.com/mcp
Copyright © 2026 Akan.js 모든 권리 보유.시스템 관리자bassman