ksk-design-system 2.3.0 → 2.5.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/DESIGN.md +3 -3
- package/README.md +6 -0
- package/contracts/components.json +1 -1
- package/contracts/token-hex-cache.json +1 -1
- package/dist/index.js +56 -27
- package/dist/native/ui.js +1778 -1662
- package/dist/{native-E7YOVABy.js → native-BsJ3ntN3.js} +8 -8
- package/dist/native.js +1 -1
- package/dist/types/components/patterns/search-bar.d.ts +1 -1
- package/dist/types/native/components/ProgressRing.d.ts +7 -2
- package/dist/types/native/components/Scrim.d.ts +40 -0
- package/dist/types/native/components/index.d.ts +1 -0
- package/dist/types/native/index.d.ts +1 -0
- package/dist/types/native/progress-ring-geometry.d.ts +32 -0
- package/dist/types/native/scrim-layout.d.ts +26 -0
- package/dist/types/tokens/native/scales.d.ts +8 -8
- package/package.json +5 -1
- package/src/native/COMPONENT_LOOKUP.md +2 -1
- package/src/preset.css +5 -9
- package/src/styles/product-theme.css +6 -0
- package/src/styles/radius.css +23 -0
- package/src/styles/typography.css +6 -6
- package/tokens.json +5 -5
|
@@ -1345,24 +1345,24 @@ var e = {
|
|
|
1345
1345
|
},
|
|
1346
1346
|
body: {
|
|
1347
1347
|
lg: {
|
|
1348
|
-
fontSize:
|
|
1348
|
+
fontSize: 18,
|
|
1349
1349
|
fontWeight: "400",
|
|
1350
|
-
lineHeight:
|
|
1350
|
+
lineHeight: 32
|
|
1351
1351
|
},
|
|
1352
1352
|
md: {
|
|
1353
|
-
fontSize:
|
|
1353
|
+
fontSize: 16,
|
|
1354
1354
|
fontWeight: "400",
|
|
1355
|
-
lineHeight:
|
|
1355
|
+
lineHeight: 28
|
|
1356
1356
|
},
|
|
1357
1357
|
sm: {
|
|
1358
|
-
fontSize:
|
|
1358
|
+
fontSize: 14,
|
|
1359
1359
|
fontWeight: "400",
|
|
1360
|
-
lineHeight:
|
|
1360
|
+
lineHeight: 21
|
|
1361
1361
|
},
|
|
1362
1362
|
xs: {
|
|
1363
|
-
fontSize:
|
|
1363
|
+
fontSize: 12,
|
|
1364
1364
|
fontWeight: "400",
|
|
1365
|
-
lineHeight:
|
|
1365
|
+
lineHeight: 18
|
|
1366
1366
|
}
|
|
1367
1367
|
},
|
|
1368
1368
|
label: {
|
package/dist/native.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, r, t as i } from "./native-
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./native-BsJ3ntN3.js";
|
|
2
2
|
export { i as getTheme, r as primitives, t as scales, n as themeNames, e as themes };
|
|
@@ -10,5 +10,5 @@ interface SearchBarProps extends Omit<React.ComponentProps<"input">, "type"> {
|
|
|
10
10
|
*/
|
|
11
11
|
asForm?: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare function SearchBar({ className, onSearch, asForm, ...props }: SearchBarProps): React.JSX.Element;
|
|
13
|
+
declare function SearchBar({ className, onSearch, asForm, onKeyDown, onCompositionStart, onCompositionEnd, ...props }: SearchBarProps): React.JSX.Element;
|
|
14
14
|
export { SearchBar };
|
|
@@ -21,7 +21,12 @@ export interface ProgressRingProps {
|
|
|
21
21
|
showLabel?: boolean;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
24
|
+
* value/max に比例した円弧を描く ProgressRing。
|
|
25
|
+
*
|
|
26
|
+
* - react-native-svg があれば strokeDasharray/strokeDashoffset で円弧を描く。
|
|
27
|
+
* - 無い環境(optional peerDependency)では View の 2 マスク方式にフォールバックする。
|
|
28
|
+
*
|
|
29
|
+
* issue #540: 以前は半円 2 枚の重ね合わせだったため角度によらず常に半周の塗りになり、
|
|
30
|
+
* 180 度ちょうど(50%)では塗りが消えていた。
|
|
26
31
|
*/
|
|
27
32
|
export declare function ProgressRing({ value, max, size, strokeWidth, thickness, showLabel, }: ProgressRingProps): React.JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type StyleProp, type ViewStyle } from "react-native";
|
|
3
|
+
import { type ScrimAlign } from "../scrim-layout";
|
|
4
|
+
export type { ScrimAlign };
|
|
5
|
+
export interface ScrimProps {
|
|
6
|
+
/**
|
|
7
|
+
* 背景タップで呼ばれる。未指定なら押下面を描かない
|
|
8
|
+
* (背面へのタッチは塞いだまま=閉じられないスクリム)。
|
|
9
|
+
*/
|
|
10
|
+
onPress?: () => void;
|
|
11
|
+
/** 押下面の読み上げ名。既定「閉じる」。 */
|
|
12
|
+
accessibilityLabel?: string;
|
|
13
|
+
/** スクリムの上に置くパネル。背景・padding・maxWidth は一切強制しない。 */
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* 子の寄せ方。既定 "center"(Dialog と同じ中央寄せ)。
|
|
17
|
+
* "stretch" は子を全面へ伸ばす。細かいレイアウトは利用側が子の中で行う。
|
|
18
|
+
*/
|
|
19
|
+
align?: ScrimAlign;
|
|
20
|
+
style?: StyleProp<ViewStyle>;
|
|
21
|
+
/** root に付く。押下面には `${testID}-backdrop` が付く。 */
|
|
22
|
+
testID?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* RN Modal を生成しない単体のスクリム(issue #555)。
|
|
26
|
+
*
|
|
27
|
+
* 親の中で `absolute` 全面に敷く。Modal を作らないため、別の RN Modal の内側や
|
|
28
|
+
* 画面内オーバーレイ(FeedbackOverlay 等)にそのまま重ねられる。
|
|
29
|
+
* 濃さは Dialog の背景と同じ `theme.overlay.dark` トークンを使う。
|
|
30
|
+
*
|
|
31
|
+
* 構造は「root(素の View・背景と寄せだけ)+ 押下面 Pressable + children」の
|
|
32
|
+
* **兄弟**並び。root を accessible にしないので、VoiceOver はパネル内の
|
|
33
|
+
* ボタン・入力欄へ個別にフォーカスできる。children は押下面より後ろの兄弟=
|
|
34
|
+
* 前面に描かれるため、パネル上のタップは押下面へ届かない(吸収用の
|
|
35
|
+
* ダミー Pressable は不要)。
|
|
36
|
+
*
|
|
37
|
+
* 背面を触らせたい(タッチを素通しさせたい)用途はこの部品の対象外。
|
|
38
|
+
* スクリムは常に背面へのタッチを塞ぐ。
|
|
39
|
+
*/
|
|
40
|
+
export declare function Scrim({ onPress, accessibilityLabel, children, align, style, testID, }: ScrimProps): React.JSX.Element;
|
|
@@ -42,6 +42,7 @@ export { FormField, type FormFieldProps } from "./FormField";
|
|
|
42
42
|
export { FormRoot, FormSection, FormActions, type FormRootProps, type FormSectionProps, type FormActionsProps, } from "./Form";
|
|
43
43
|
export { Alert, type AlertProps, type AlertTone } from "./Alert";
|
|
44
44
|
export { Dialog, type DialogProps, type DialogPosition } from "./Dialog";
|
|
45
|
+
export { Scrim, type ScrimProps, type ScrimAlign } from "./Scrim";
|
|
45
46
|
export { AlertDialog, type AlertDialogProps } from "./AlertDialog";
|
|
46
47
|
export { Sheet, type SheetProps, type SheetSide } from "./Sheet";
|
|
47
48
|
export { DetailSheetScaffold, DetailSheetHeader, DetailSheetBody, type DetailSheetScaffoldProps, type DetailSheetHeaderProps, type DetailSheetBodyProps, } from "./DetailSheetScaffold";
|
|
@@ -3,4 +3,5 @@ export { ThemeProvider, useTheme, type ThemeContextValue } from "./theme/ThemePr
|
|
|
3
3
|
export { SafeAreaInsetsProvider, useSafeAreaInsets, type SafeAreaInsetsProviderProps, } from "./theme/SafeAreaInsetsProvider";
|
|
4
4
|
export { APP_HEADER_IOS_FALLBACK_PADDING_TOP, hasInsetEdge, resolveAppHeaderPaddingTop, resolveBottomSheetTopInset, resolveFullscreenDialogPadding, resolveInsetEdge, resolveTopSheetPaddingTop, type EdgePadding, type SafeAreaEdge, type SafeAreaInsets, } from "./safe-area";
|
|
5
5
|
export { resolveTypo, type TypoVariant, type TypoStyle } from "./typography";
|
|
6
|
+
export { resolveScrimAlignment, resolveScrimContentStyle, type ScrimAlignmentStyle, type ScrimContentStyle, } from "./scrim-layout";
|
|
6
7
|
export * from "./components";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** value を 0〜max にクランプする。max<=0 は 0 として扱う(ゼロ除算ガード)。 */
|
|
2
|
+
export declare function clampProgressValue(value: number, max: number): number;
|
|
3
|
+
/** 0〜100 の実効パーセンテージ。 */
|
|
4
|
+
export declare function progressRingPct(value: number, max: number): number;
|
|
5
|
+
/** 0〜360 度の円弧角度。0/25/50/80/100% → 0/90/180/288/360 度。 */
|
|
6
|
+
export declare function progressRingAngle(value: number, max: number): number;
|
|
7
|
+
export interface ProgressRingGeometry {
|
|
8
|
+
/** ストロークの中心半径(= (size - strokeWidth) / 2) */
|
|
9
|
+
radius: number;
|
|
10
|
+
/** 中心半径の円周 */
|
|
11
|
+
circumference: number;
|
|
12
|
+
/** strokeDasharray に渡す値 */
|
|
13
|
+
dashArray: number;
|
|
14
|
+
/** strokeDashoffset に渡す値(0% で circumference、100% で 0) */
|
|
15
|
+
dashOffset: number;
|
|
16
|
+
/** 角度(度) */
|
|
17
|
+
angle: number;
|
|
18
|
+
}
|
|
19
|
+
/** SVG 円弧(strokeDasharray / strokeDashoffset)用のジオメトリ。 */
|
|
20
|
+
export declare function getProgressRingGeometry(value: number, max: number, size: number, strokeWidth: number): ProgressRingGeometry;
|
|
21
|
+
export interface ProgressRingMaskRotations {
|
|
22
|
+
/** 右半分の窓に見せる左半円の回転角(0〜180 度) */
|
|
23
|
+
rightRotation: number;
|
|
24
|
+
/** 左半分の窓に見せる右半円の回転角(0〜180 度) */
|
|
25
|
+
leftRotation: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* react-native-svg が無い環境向けの 2 マスク方式の回転角。
|
|
29
|
+
* 0〜180 度は右半分の窓だけが埋まり、180 度を超えると右は塗り切った状態のまま
|
|
30
|
+
* 左半分の窓が 0→180 度で埋まる(180 度ちょうどで塗りが消えない)。
|
|
31
|
+
*/
|
|
32
|
+
export declare function getProgressRingMaskRotations(value: number, max: number): ProgressRingMaskRotations;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** スクリムの中で子(パネル)をどこへ寄せるか。 */
|
|
2
|
+
export type ScrimAlign = "center" | "top" | "bottom" | "stretch";
|
|
3
|
+
export interface ScrimAlignmentStyle {
|
|
4
|
+
/** 交差軸(横方向)の寄せ */
|
|
5
|
+
alignItems: "center" | "stretch";
|
|
6
|
+
/** 主軸(縦方向)の寄せ */
|
|
7
|
+
justifyContent: "center" | "flex-start" | "flex-end";
|
|
8
|
+
}
|
|
9
|
+
/** 子ラッパに与えるスタイル。stretch のときだけ全面へ伸ばす。 */
|
|
10
|
+
export interface ScrimContentStyle {
|
|
11
|
+
flex?: number;
|
|
12
|
+
alignSelf?: "stretch";
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* align からコンテナの寄せスタイルを返す。
|
|
16
|
+
* "stretch" は子を全面へ伸ばす(ViewShot のキャプチャ対象など、
|
|
17
|
+
* 子が自前で全面レイアウトを持つ場合向け)。
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveScrimAlignment(align?: ScrimAlign): ScrimAlignmentStyle;
|
|
20
|
+
/**
|
|
21
|
+
* 子ラッパのスタイル。stretch 以外では何も足さない(= 子の内在サイズのまま)。
|
|
22
|
+
* 背景色・padding・maxWidth・overflow は一切与えない。
|
|
23
|
+
* ラッパは押下面 Pressable の兄弟として前面に置かれ、余白部分のタップは
|
|
24
|
+
* `pointerEvents="box-none"` で押下面へ抜ける(コンポーネント側で付与)。
|
|
25
|
+
*/
|
|
26
|
+
export declare function resolveScrimContentStyle(align?: ScrimAlign): ScrimContentStyle;
|
|
@@ -126,24 +126,24 @@ export declare const scales: {
|
|
|
126
126
|
};
|
|
127
127
|
readonly body: {
|
|
128
128
|
readonly lg: {
|
|
129
|
-
readonly fontSize:
|
|
129
|
+
readonly fontSize: 18;
|
|
130
130
|
readonly fontWeight: "400";
|
|
131
|
-
readonly lineHeight:
|
|
131
|
+
readonly lineHeight: 32;
|
|
132
132
|
};
|
|
133
133
|
readonly md: {
|
|
134
|
-
readonly fontSize:
|
|
134
|
+
readonly fontSize: 16;
|
|
135
135
|
readonly fontWeight: "400";
|
|
136
|
-
readonly lineHeight:
|
|
136
|
+
readonly lineHeight: 28;
|
|
137
137
|
};
|
|
138
138
|
readonly sm: {
|
|
139
|
-
readonly fontSize:
|
|
139
|
+
readonly fontSize: 14;
|
|
140
140
|
readonly fontWeight: "400";
|
|
141
|
-
readonly lineHeight:
|
|
141
|
+
readonly lineHeight: 21;
|
|
142
142
|
};
|
|
143
143
|
readonly xs: {
|
|
144
|
-
readonly fontSize:
|
|
144
|
+
readonly fontSize: 12;
|
|
145
145
|
readonly fontWeight: "400";
|
|
146
|
-
readonly lineHeight:
|
|
146
|
+
readonly lineHeight: 18;
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
149
|
readonly label: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ksk-design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "KSK Design System — フリーランス向けマルチテーマ対応デザインシステム",
|
|
6
6
|
"license": "MIT",
|
|
@@ -97,6 +97,10 @@
|
|
|
97
97
|
"import": "./src/styles/product-theme.css",
|
|
98
98
|
"default": "./src/styles/product-theme.css"
|
|
99
99
|
},
|
|
100
|
+
"./tokens/radius": {
|
|
101
|
+
"import": "./src/styles/radius.css",
|
|
102
|
+
"default": "./src/styles/radius.css"
|
|
103
|
+
},
|
|
100
104
|
"./glass": {
|
|
101
105
|
"import": "./src/styles/glass.css",
|
|
102
106
|
"default": "./src/styles/glass.css"
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
React Native / Expo consumer は、新規 UI を作る前にこの一覧で既存コンポーネントを確認してください。すべて `ksk-design-system/native/ui` から import します。
|
|
6
6
|
|
|
7
|
-
- Public native component exports:
|
|
7
|
+
- Public native component exports: 151
|
|
8
8
|
- Import: `import { Button, Screen } from "ksk-design-system/native/ui"`
|
|
9
9
|
|
|
10
10
|
| Component | Source | Section |
|
|
@@ -75,6 +75,7 @@ React Native / Expo consumer は、新規 UI を作る前にこの一覧で既
|
|
|
75
75
|
| `PromptCoordinatorProvider` | `src/native/components/PromptCoordinator.tsx` | Phase 3: Overlay |
|
|
76
76
|
| `ResponsiveDialog` | `src/native/components/ResponsiveDialog.tsx` | Phase 3: Overlay |
|
|
77
77
|
| `ReviewOverlay` | `src/native/components/ReviewOverlay.tsx` | Phase 3: Overlay |
|
|
78
|
+
| `Scrim` | `src/native/components/Scrim.tsx` | Phase 3: Overlay |
|
|
78
79
|
| `Sheet` | `src/native/components/Sheet.tsx` | Phase 3: Overlay |
|
|
79
80
|
| `ToastProvider` | `src/native/components/Toast.tsx` | Phase 3: Overlay |
|
|
80
81
|
| `Accordion` | `src/native/components/Accordion.tsx` | Phase 4: Selection / Disclosure |
|
package/src/preset.css
CHANGED
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
============================================================= */
|
|
16
16
|
|
|
17
17
|
@import "./styles/primitive.css";
|
|
18
|
+
/* 角丸の意味別トークン(issue #553)。定義元は styles/radius.css の1箇所で、
|
|
19
|
+
product-theme.css からも読み込まれる(個別 subpath 構成の消費側対策)。 */
|
|
20
|
+
@import "./styles/radius.css";
|
|
18
21
|
@import "./styles/semantic.css";
|
|
19
22
|
@import "./styles/categorical.css";
|
|
20
23
|
@import "./styles/typography.css";
|
|
@@ -108,15 +111,8 @@
|
|
|
108
111
|
}
|
|
109
112
|
|
|
110
113
|
/* ─── Radius Tokens ───
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
テーマ非依存(Brand / Light-Dark で変わらない固定値)。
|
|
114
|
-
面 < モーダル < シート の順に丸くなる階層。 */
|
|
115
|
-
:root {
|
|
116
|
-
--Radius-Surface: 0.875rem; /* 14px — Card / Popover パネル / 面の既定。丸くしたいならここを上げる */
|
|
117
|
-
--Radius-Modal: 1.5rem; /* 24px — 中央モーダル(Dialog / AlertDialog)。ピル/シートの丸い言語に合わせる */
|
|
118
|
-
--Radius-Sheet: 2rem; /* 32px — 端寄せ Sheet(bottom / float) */
|
|
119
|
-
}
|
|
114
|
+
定義はこのファイルから styles/radius.css へ切り出した(issue #553)。
|
|
115
|
+
ファイル先頭の @import 群で読み込んでいる。 */
|
|
120
116
|
|
|
121
117
|
/* ─── Section Spacing Tokens ───
|
|
122
118
|
コンポーネント内の 4px scale と分離した、ページセクション間の縦リズム。
|
|
@@ -35,6 +35,12 @@
|
|
|
35
35
|
prop 追加も要らない(Server Component のまま使える)。
|
|
36
36
|
============================================================= */
|
|
37
37
|
|
|
38
|
+
/* 角丸の意味別トークン(--Radius-Surface / -Modal / -Sheet)。preset を使わず
|
|
39
|
+
個別 subpath だけを import する消費側でも角丸が 0 にならないよう、ここから
|
|
40
|
+
読み込む(issue #553)。定義元は radius.css の1箇所で、値はテーマ非依存の
|
|
41
|
+
固定値。Radius だけが欲しい場合は "ksk-design-system/tokens/radius" を使う。 */
|
|
42
|
+
@import "./radius.css";
|
|
43
|
+
|
|
38
44
|
:root {
|
|
39
45
|
/* ─── Control: Button 系の内寸 ───
|
|
40
46
|
5段スケール。Button の size バリアント xs / sm / default(=Md) / lg / xl と
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* =============================================================
|
|
2
|
+
KSK Design System — Radius Tokens(issue #553)
|
|
3
|
+
|
|
4
|
+
角丸の意味別トークン。コンポーネントは rounded-[var(--Radius-*)] で参照し、
|
|
5
|
+
rounded-lg / rounded-[32px] のベタ書き(=ドリフトの元)を避ける。
|
|
6
|
+
テーマ非依存(Brand / Light-Dark で変わらない固定値)。
|
|
7
|
+
面 < モーダル < シート の順に丸くなる階層。
|
|
8
|
+
|
|
9
|
+
このファイルが Radius トークンの**唯一の定義元**。`preset.css` と
|
|
10
|
+
`product-theme.css` の両方から読み込まれる(同値の再定義なので二重読み込みは
|
|
11
|
+
無害。consumer が preset の後ろで上書きすれば従来どおり後勝ちで効く)。
|
|
12
|
+
|
|
13
|
+
preset を使わずトークン CSS を個別 import する消費側は、
|
|
14
|
+
`tokens/product-theme` を読めば自動的に含まれる。Radius だけを取りたい場合は:
|
|
15
|
+
|
|
16
|
+
@import "ksk-design-system/tokens/radius";
|
|
17
|
+
============================================================= */
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
--Radius-Surface: 0.875rem; /* 14px — Card / Popover パネル / 面の既定。丸くしたいならここを上げる */
|
|
21
|
+
--Radius-Modal: 1.5rem; /* 24px — 中央モーダル(Dialog / AlertDialog)。ピル/シートの丸い言語に合わせる */
|
|
22
|
+
--Radius-Sheet: 2rem; /* 32px — 端寄せ Sheet(bottom / float) */
|
|
23
|
+
}
|
|
@@ -66,28 +66,28 @@
|
|
|
66
66
|
/* ─── Body(本文) ─── */
|
|
67
67
|
|
|
68
68
|
@utility typo-body-lg {
|
|
69
|
-
font-size: calc(
|
|
69
|
+
font-size: calc(18px * var(--Product-Type-Scale, 1));
|
|
70
70
|
line-height: 1.75;
|
|
71
71
|
font-weight: 400;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
@utility typo-body-md {
|
|
75
|
-
font-size: calc(
|
|
75
|
+
font-size: calc(16px * var(--Product-Type-Scale, 1));
|
|
76
76
|
line-height: 1.75;
|
|
77
77
|
font-weight: 400;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
@utility typo-body-sm {
|
|
81
|
-
font-size: calc(
|
|
81
|
+
font-size: calc(14px * var(--Product-Type-Scale, 1));
|
|
82
82
|
line-height: 1.5;
|
|
83
83
|
font-weight: 400;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
/* body-xs(
|
|
87
|
-
本文の最小は typo-body-sm(
|
|
86
|
+
/* body-xs(12px) は本文禁止 — 補助ラベル/メタ情報専用。
|
|
87
|
+
本文の最小は typo-body-sm(14px)。12px を本文に使うとモバイル可読性の
|
|
88
88
|
下限(iOS HIG ~11pt / WCAG 観点)を割る。 */
|
|
89
89
|
@utility typo-body-xs {
|
|
90
|
-
font-size: calc(
|
|
90
|
+
font-size: calc(12px * var(--Product-Type-Scale, 1));
|
|
91
91
|
line-height: 1.5;
|
|
92
92
|
font-weight: 400;
|
|
93
93
|
}
|
package/tokens.json
CHANGED
|
@@ -520,25 +520,25 @@
|
|
|
520
520
|
},
|
|
521
521
|
"body": {
|
|
522
522
|
"lg": {
|
|
523
|
-
"size": "
|
|
523
|
+
"size": "18px",
|
|
524
524
|
"weight": 400,
|
|
525
525
|
"lineHeight": 1.75
|
|
526
526
|
},
|
|
527
527
|
"md": {
|
|
528
|
-
"size": "
|
|
528
|
+
"size": "16px",
|
|
529
529
|
"weight": 400,
|
|
530
530
|
"lineHeight": 1.75
|
|
531
531
|
},
|
|
532
532
|
"sm": {
|
|
533
|
-
"size": "
|
|
533
|
+
"size": "14px",
|
|
534
534
|
"weight": 400,
|
|
535
535
|
"lineHeight": 1.5
|
|
536
536
|
},
|
|
537
537
|
"xs": {
|
|
538
|
-
"size": "
|
|
538
|
+
"size": "12px",
|
|
539
539
|
"weight": 400,
|
|
540
540
|
"lineHeight": 1.5,
|
|
541
|
-
"restriction": "本文禁止。補助ラベル/メタ情報専用。本文の下限は body.sm(
|
|
541
|
+
"restriction": "本文禁止。補助ラベル/メタ情報専用。本文の下限は body.sm(14px)。"
|
|
542
542
|
}
|
|
543
543
|
},
|
|
544
544
|
"label": {
|