@sxo/theme-carbon 0.0.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 ADDED
@@ -0,0 +1,9 @@
1
+ # @sxo/theme-carbon
2
+
3
+ SXO 设计系统的 IBM Carbon 风格主题。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pnpm add @sxo/theme-carbon @sxo/engine @sxo/design
9
+ ```
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@sxo/design"),r={...e.defaultTokens,color:{...e.defaultTokens.color,primary:{DEFAULT:"#0f62fe",foreground:"#ffffff"},secondary:{DEFAULT:"#393939",foreground:"#ffffff"},success:{DEFAULT:"#24a148"},warning:{DEFAULT:"#f1c21b"},error:{DEFAULT:"#da1e28"},info:{DEFAULT:"#0043ce"},neutral:{...e.defaultTokens.color.neutral,10:"#f4f4f4",20:"#e0e0e0",30:"#c6c6c6",40:"#a8a8a8",50:"#8d8d8d",60:"#6f6f6f",70:"#525252",80:"#393939",90:"#262626",100:"#161616"},background:{primary:"#ffffff",secondary:"#f4f4f4",inverse:"#161616"}},borderRadius:{none:"0",xs:"0",sm:"0",md:"0",lg:"0",full:"9999px",xl:"12px"},boxShadow:{none:"none",sm:"0 1px 2px 0 rgba(0,0,0,0.1)",DEFAULT:"0 2px 4px 0 rgba(0,0,0,0.1)",md:"0 4px 8px 0 rgba(0,0,0,0.1)",lg:"0 8px 16px 0 rgba(0,0,0,0.1)",hard:"none","hard-accent":"none",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"},typography:{...e.defaultTokens.typography,fontFamily:{...e.defaultTokens.typography.fontFamily,DEFAULT:"'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif"}}};exports.carbonTheme=r;
@@ -0,0 +1 @@
1
+ export * from './tokens';
package/dist/index.js ADDED
@@ -0,0 +1,69 @@
1
+ import { defaultTokens as r } from "@sxo/design";
2
+ const a = {
3
+ ...r,
4
+ color: {
5
+ ...r.color,
6
+ primary: {
7
+ DEFAULT: "#0f62fe",
8
+ // IBM Blue 60
9
+ foreground: "#ffffff"
10
+ },
11
+ secondary: {
12
+ DEFAULT: "#393939",
13
+ // Gray 80
14
+ foreground: "#ffffff"
15
+ },
16
+ success: { DEFAULT: "#24a148" },
17
+ warning: { DEFAULT: "#f1c21b" },
18
+ error: { DEFAULT: "#da1e28" },
19
+ info: { DEFAULT: "#0043ce" },
20
+ neutral: {
21
+ ...r.color.neutral,
22
+ 10: "#f4f4f4",
23
+ 20: "#e0e0e0",
24
+ 30: "#c6c6c6",
25
+ 40: "#a8a8a8",
26
+ 50: "#8d8d8d",
27
+ 60: "#6f6f6f",
28
+ 70: "#525252",
29
+ 80: "#393939",
30
+ 90: "#262626",
31
+ 100: "#161616"
32
+ },
33
+ background: {
34
+ primary: "#ffffff",
35
+ secondary: "#f4f4f4",
36
+ inverse: "#161616"
37
+ }
38
+ },
39
+ borderRadius: {
40
+ none: "0",
41
+ xs: "0",
42
+ sm: "0",
43
+ md: "0",
44
+ lg: "0",
45
+ full: "9999px",
46
+ // 仅用于圆形
47
+ xl: "12px"
48
+ },
49
+ boxShadow: {
50
+ none: "none",
51
+ sm: "0 1px 2px 0 rgba(0,0,0,0.1)",
52
+ DEFAULT: "0 2px 4px 0 rgba(0,0,0,0.1)",
53
+ md: "0 4px 8px 0 rgba(0,0,0,0.1)",
54
+ lg: "0 8px 16px 0 rgba(0,0,0,0.1)",
55
+ hard: "none",
56
+ "hard-accent": "none",
57
+ xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"
58
+ },
59
+ typography: {
60
+ ...r.typography,
61
+ fontFamily: {
62
+ ...r.typography.fontFamily,
63
+ DEFAULT: "'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif"
64
+ }
65
+ }
66
+ };
67
+ export {
68
+ a as carbonTheme
69
+ };
@@ -0,0 +1,6 @@
1
+ import { DesignTokens } from '../../design/src';
2
+ /**
3
+ * IBM Carbon 风格主题
4
+ * 核心:高对比度, 无圆角, 严格的网格系统
5
+ */
6
+ export declare const carbonTheme: DesignTokens;
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@sxo/theme-carbon",
3
+ "version": "0.0.0",
4
+ "description": "Carbon theme for SXO Design System.",
5
+ "keywords": [
6
+ "sxo",
7
+ "design-system",
8
+ "ui",
9
+ "components",
10
+ "theme",
11
+ "carbon"
12
+ ],
13
+ "license": "MIT",
14
+ "author": "sxo team",
15
+ "type": "module",
16
+ "main": "./dist/index.cjs",
17
+ "module": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js",
23
+ "require": "./dist/index.cjs"
24
+ }
25
+ },
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "dependencies": {
30
+ "@sxo/design": "0.0.0"
31
+ },
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/doki-land/sxo-engine.git",
35
+ "directory": "packages/theme-carbon"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/doki-land/sxo-engine/issues"
39
+ },
40
+ "homepage": "https://github.com/doki-land/sxo-engine/tree/main/packages/theme-carbon#readme",
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "devDependencies": {
45
+ "vite": "^5.0.0",
46
+ "vite-plugin-dts": "^4.0.0",
47
+ "typescript": "^5.0.0"
48
+ },
49
+ "scripts": {
50
+ "build": "vite build",
51
+ "dev": "vite build --watch"
52
+ }
53
+ }