Breakpoints (반응형 브레이크포인트)
iCignal의 반응형 브레이크포인트는 Foundation과 완전히 동일합니다.
Foundation 상속
iCignal은 Tailwind CSS 기본 브레이크포인트를 사용합니다.
Breakpoint Scale
| Breakpoint | Min Width | 기기 | Tailwind Prefix |
|---|---|---|---|
| xs | 0px | Mobile (기본) | (prefix 없음) |
| sm | 640px | Large Mobile | sm: |
| md | 768px | Tablet | md: |
| lg | 1024px | Desktop | lg: |
| xl | 1280px | Large Desktop | xl: |
| 2xl | 1536px | Extra Large Desktop | 2xl: |
실전 예제
import { Button } from "@vortex/ui-icignal";
export default function Hero() {
return (
<section className="py-2xl lg:py-3xl px-md lg:px-xl bg-primary-50">
<div className="max-w-screen-xl mx-auto text-center">
<h1 className="text-3xl md:text-4xl lg:text-5xl font-bold text-text-primary mb-md">
iCignal Platform
</h1>
<p className="text-base md:text-lg text-text-secondary mb-xl max-w-2xl mx-auto">
Responsive design with iCignal branding
</p>
<div className="flex flex-col sm:flex-row gap-md justify-center">
<Button variant="primary">Get Started</Button>
<Button variant="outline">Learn More</Button>
</div>
</div>
</section>
);
}다음 단계
Last updated on