@sxo/theme-wechat 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-wechat
2
+
3
+ SXO 设计系统的微信风格主题。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pnpm add @sxo/theme-wechat @sxo/engine @sxo/design
9
+ ```
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@sxo/design"),o={...e.defaultTokens,color:{...e.defaultTokens.color,primary:{DEFAULT:"#07C160",foreground:"#ffffff"},secondary:{DEFAULT:"#10AEFF",foreground:"#ffffff"},accent:{DEFAULT:"#07C160",neon:"#07C160",vivid:"#FA5151"},success:{DEFAULT:"#07C160"},warning:{DEFAULT:"#FFBE00"},error:{DEFAULT:"#FA5151"},info:{DEFAULT:"#10AEFF"},neutral:{0:"#ffffff",50:"#F7F7F7",100:"#EDEDED",200:"#E5E5E5",300:"#D1D1D1",400:"#B2B2B2",500:"#888888",600:"#757575",700:"#4C4C4C",800:"#333333",900:"#191919",1e3:"#000000"},background:{primary:"#ffffff",secondary:"#F7F7F7",inverse:"#191919"}},borderRadius:{none:"0px",xs:"2px",sm:"4px",md:"8px",lg:"12px",full:"9999px",xl:"12px"},boxShadow:{none:"none",sm:"0 1px 2px rgba(0,0,0,0.05)",DEFAULT:"0 4px 12px rgba(0,0,0,0.05)",md:"0 8px 24px rgba(0,0,0,0.08)",lg:"0 12px 32px rgba(0,0,0,0.12)",hard:"0 0 0 1px rgba(0,0,0,0.1)","hard-accent":"0 0 0 1px #07C160",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:{sans:'-apple-system-font, "Helvetica Neue", Helvetica, sans-serif',serif:'Georgia, "Times New Roman", serif',mono:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace'}}};exports.default=o;exports.wechatTheme=o;
@@ -0,0 +1,2 @@
1
+ export * from './tokens';
2
+ export { default } from './tokens';
package/dist/index.js ADDED
@@ -0,0 +1,86 @@
1
+ import { defaultTokens as o } from "@sxo/design";
2
+ const r = {
3
+ ...o,
4
+ color: {
5
+ ...o.color,
6
+ primary: {
7
+ DEFAULT: "#07C160",
8
+ // WeChat Green
9
+ foreground: "#ffffff"
10
+ },
11
+ secondary: {
12
+ DEFAULT: "#10AEFF",
13
+ // WeChat Blue
14
+ foreground: "#ffffff"
15
+ },
16
+ accent: {
17
+ DEFAULT: "#07C160",
18
+ neon: "#07C160",
19
+ vivid: "#FA5151"
20
+ // WeChat Red (Error)
21
+ },
22
+ success: {
23
+ DEFAULT: "#07C160"
24
+ },
25
+ warning: {
26
+ DEFAULT: "#FFBE00"
27
+ },
28
+ error: {
29
+ DEFAULT: "#FA5151"
30
+ },
31
+ info: {
32
+ DEFAULT: "#10AEFF"
33
+ },
34
+ neutral: {
35
+ 0: "#ffffff",
36
+ 50: "#F7F7F7",
37
+ 100: "#EDEDED",
38
+ 200: "#E5E5E5",
39
+ 300: "#D1D1D1",
40
+ 400: "#B2B2B2",
41
+ 500: "#888888",
42
+ 600: "#757575",
43
+ 700: "#4C4C4C",
44
+ 800: "#333333",
45
+ 900: "#191919",
46
+ 1e3: "#000000"
47
+ },
48
+ background: {
49
+ primary: "#ffffff",
50
+ secondary: "#F7F7F7",
51
+ inverse: "#191919"
52
+ }
53
+ },
54
+ borderRadius: {
55
+ none: "0px",
56
+ xs: "2px",
57
+ sm: "4px",
58
+ md: "8px",
59
+ // WeUI standard
60
+ lg: "12px",
61
+ full: "9999px",
62
+ xl: "12px"
63
+ },
64
+ boxShadow: {
65
+ none: "none",
66
+ sm: "0 1px 2px rgba(0,0,0,0.05)",
67
+ DEFAULT: "0 4px 12px rgba(0,0,0,0.05)",
68
+ md: "0 8px 24px rgba(0,0,0,0.08)",
69
+ lg: "0 12px 32px rgba(0,0,0,0.12)",
70
+ hard: "0 0 0 1px rgba(0,0,0,0.1)",
71
+ "hard-accent": "0 0 0 1px #07C160",
72
+ xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"
73
+ },
74
+ typography: {
75
+ ...o.typography,
76
+ fontFamily: {
77
+ sans: '-apple-system-font, "Helvetica Neue", Helvetica, sans-serif',
78
+ serif: 'Georgia, "Times New Roman", serif',
79
+ mono: 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace'
80
+ }
81
+ }
82
+ };
83
+ export {
84
+ r as default,
85
+ r as wechatTheme
86
+ };
@@ -0,0 +1,3 @@
1
+ import { DesignTokens } from '../../design/src';
2
+ export declare const wechatTheme: DesignTokens;
3
+ export default wechatTheme;
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@sxo/theme-wechat",
3
+ "version": "0.0.0",
4
+ "description": "Wechat theme for SXO Design System.",
5
+ "keywords": [
6
+ "sxo",
7
+ "design-system",
8
+ "ui",
9
+ "components",
10
+ "theme",
11
+ "wechat"
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-wechat"
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-wechat#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
+ }