Skip to content

Design Kits

한 번의 호출로 앱 전체를 테마화합니다: 색, 둥글기, 그림자, 간격, 타이포그래피, 모션, 서피스. 컴포넌트는 토큰만 소비합니다.

공식 키트

Design성격
linear미니멀 제품 UI. 차가운 회색, 드문 그림자, 여유로운 간격. 기본값.
glass부드러운 글래스. 은은한 블러, 밝은 엣지.
editorial콘텐츠 우선. 세리프 제목, 낮은 둥글기, 거의 그림자 없음.
soft따뜻하고 친근함. 넉넉한 둥글기, 부드러운 대비.
playful생기 있지만 만화 같지는 않음. 더 강한 accent, 더 둥글고, 더 역동적인 모션.
ts
import { DESIGNS } from 'pomikit-ui'

DESIGNS.linear // DesignKit

제로 설정(createTheme / 플러그인 theme 없음)은 **linear**로 해석됩니다.

createTheme와 applyTheme

ts
import { createTheme, applyTheme, applyThemeOptions } from 'pomikit-ui'

const theme = createTheme({
  design: 'glass',
  accent: '#5B5FFF',
  mode: 'system',
})

applyTheme(theme)

// Or shortcuts:
applyThemeOptions({ design: 'editorial', accent: '#0A2540' })

옵션

OptionType참고
designThemeDesignlinear | glass | editorial | soft | playful
accentstring브랜드 accent hex
modeThemeModelight | dark | system
radiusThemeRadius축 오버라이드: sharp | soft | round
densityThemeDensitycompact | comfortable | spacious
motionThemeMotionnone | normal | expressive
elevationThemeElevationflat | soft | floating

키트는 이미 합리적인 축 기본값을 제공합니다. 키트를 넘는 하이브리드가 필요할 때만 축을 오버라이드하세요.

플러그인 경유

ts
app.use(Pomikit, {
  theme: createTheme({ design: 'soft', accent: '#7C6AEF' }),
})

일반 옵션 객체도 동작합니다: theme: { design: 'playful' }.

플레이그라운드

플레이그라운드에서 키트와 축을 실시간으로 시험해 보세요.