UNPKG

@teamsparta/stack-core

Version:
24 lines (21 loc) 668 B
import { ThemeName } from '@teamsparta/stack-tokens'; /** * 주어진 테마에 대한 CSS 스타일을 생성합니다. * semantic 색상은 테마별로 적용되며, primitive 색상은 root에 적용됩니다. * @param theme - 적용할 테마 이름 * @returns CSS 스타일 문자열 * * @example * const styles = generateThemeStyles("light"); * // 결과: * // [data-stack-color-theme="light"] { * // --stack-color-semantic-primary: #000000; * // ... * // } * // :root { * // --stack-color-primitive-gray-100: #ffffff; * // ... * // } */ declare function generateThemeStyles(theme: ThemeName): string; export { generateThemeStyles };