@susu-ui/tokens 0.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @susu-ui/tokens
2
+
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 首次发布 Susu UI,提供设计令牌、主题能力和 Vue 3 组件库。
@@ -0,0 +1,32 @@
1
+ export type ThemeMode = 'light' | 'dark' | 'system';
2
+ export type ResolvedThemeMode = Exclude<ThemeMode, 'system'>;
3
+ export type ThemePreset = {
4
+ name: string;
5
+ label: string;
6
+ hue: number;
7
+ };
8
+ export declare const DEFAULT_THEME_MODE: ThemeMode;
9
+ export declare const DEFAULT_THEME_HUE = 215;
10
+ export declare const themePresets: readonly [{
11
+ readonly name: "blue";
12
+ readonly label: "海蓝";
13
+ readonly hue: 215;
14
+ }, {
15
+ readonly name: "pink";
16
+ readonly label: "樱粉";
17
+ readonly hue: 355;
18
+ }, {
19
+ readonly name: "green";
20
+ readonly label: "青绿";
21
+ readonly hue: 150;
22
+ }, {
23
+ readonly name: "purple";
24
+ readonly label: "藤紫";
25
+ readonly hue: 285;
26
+ }, {
27
+ readonly name: "orange";
28
+ readonly label: "暖橙";
29
+ readonly hue: 45;
30
+ }];
31
+ export type ThemePresetName = (typeof themePresets)[number]['name'];
32
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;AAEnD,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;AAE5D,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,SAAmB,CAAA;AAEpD,eAAO,MAAM,iBAAiB,MAAM,CAAA;AAEpC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;EA0BkB,CAAA;AAE3C,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,29 @@
1
+ export const DEFAULT_THEME_MODE = 'light';
2
+ export const DEFAULT_THEME_HUE = 215;
3
+ export const themePresets = [
4
+ {
5
+ name: 'blue',
6
+ label: '海蓝',
7
+ hue: 215,
8
+ },
9
+ {
10
+ name: 'pink',
11
+ label: '樱粉',
12
+ hue: 355,
13
+ },
14
+ {
15
+ name: 'green',
16
+ label: '青绿',
17
+ hue: 150,
18
+ },
19
+ {
20
+ name: 'purple',
21
+ label: '藤紫',
22
+ hue: 285,
23
+ },
24
+ {
25
+ name: 'orange',
26
+ label: '暖橙',
27
+ hue: 45,
28
+ },
29
+ ];
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@susu-ui/tokens",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "CHANGELOG.md"
17
+ ],
18
+ "publishConfig": {
19
+ "access": "public",
20
+ "registry": "https://registry.npmjs.org/"
21
+ },
22
+ "scripts": {
23
+ "build": "tsc -p tsconfig.json",
24
+ "typecheck": "tsc -p tsconfig.json --noEmit"
25
+ }
26
+ }