@axis-ds/cli 1.1.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/index.js +994 -108
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,27 @@ axis add button
|
|
|
23
23
|
axis list
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
## 브랜드 테마 (`axis theme`)
|
|
27
|
+
|
|
28
|
+
프로젝트에 설치된 `@axis-ds/tokens`(1.3.0 이상)의 브랜드를 조회하고 적용합니다. 세 명령 모두 `-d, --dir <path>` 로 대상 디렉터리를 받습니다(기본: 현재 디렉터리).
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# 설치된 브랜드 목록 (이름 · 설명 · 테마)
|
|
32
|
+
axis theme list
|
|
33
|
+
|
|
34
|
+
# 브랜드 상세: import 경로 · Provider 예시 · 주요 토큰 · 보정 내역(a11y 메타)
|
|
35
|
+
axis theme info ontology
|
|
36
|
+
|
|
37
|
+
# 브랜드 적용: 전역 CSS import · package.json 의존성 · axis.config.json 의 brand
|
|
38
|
+
axis theme add ontology
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- `axis theme add` 는 `axis.config.json` 의 `globalCss` → `app/globals.css` → `src/app/globals.css` → 루트 `globals.css` 순으로 찾은 파일에 `@import "@axis-ds/tokens/css/brands/<brand>";` 를 한 줄 넣습니다. 여러 번 실행해도 같은 줄을 다시 넣지 않습니다.
|
|
42
|
+
- `package.json` 에 `@axis-ds/tokens` 가 없으면 `dependencies` 에 `^1.3.0` 을 더하고 설치 명령만 안내합니다. 설치는 실행하지 않습니다.
|
|
43
|
+
- 브랜드 CSS 는 `[data-brand="<brand>"]` 선택자로 적용되므로 `ThemeProvider defaultBrand` 나 `<html data-brand>` 가 있어야 화면이 바뀝니다. 코드는 고치지 않고 예시만 출력합니다.
|
|
44
|
+
- `@axis-ds/tokens` 가 없거나 1.3.0 미만이면 목록 대신 설치 · 업그레이드 안내를 내고 종료 코드 1 로 끝납니다.
|
|
45
|
+
- `axis check` 는 `axis.config.json` 의 `brand` 와 CSS 의 브랜드 import 가 맞는지도 봅니다.
|
|
46
|
+
|
|
26
47
|
## 문서
|
|
27
48
|
|
|
28
49
|
자세한 사용법은 [AXIS Design System 문서](https://axis.minu.best)를 참고하세요.
|