@sxo/theme-wechat 0.0.0 → 0.0.1
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/LICENSE.md +21 -0
- package/README.md +43 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.js +5 -16
- package/dist/theme-wechat/src/index.d.ts +2 -0
- package/dist/{tokens.d.ts → theme-wechat/src/tokens.d.ts} +1 -1
- package/package.json +5 -5
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 sxo team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,9 +1,48 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>@sxo/theme-wechat</h1>
|
|
3
|
+
<p><b>WeChat style theme for the SXO design system. A familiar, clean, and reliable aesthetic for web and mini-programs.</b></p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<p>
|
|
6
|
+
<a href="https://www.npmjs.com/package/@sxo/theme-wechat"><img src="https://img.shields.io/npm/v/@sxo/theme-wechat.svg?style=flat-square" alt="npm version"></a>
|
|
7
|
+
<img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="license">
|
|
8
|
+
<img src="https://img.shields.io/npm/dm/@sxo/theme-wechat.svg?style=flat-square" alt="downloads">
|
|
9
|
+
</p>
|
|
10
|
+
</div>
|
|
4
11
|
|
|
5
|
-
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
`@sxo/theme-wechat` provides the iconic, clean, and highly reliable visual style of WeChat (WeUI) for the SXO ecosystem. Perfect for building applications that need a familiar look and feel.
|
|
15
|
+
|
|
16
|
+
## ✨ Features
|
|
17
|
+
|
|
18
|
+
- 🟢 **WeChat Aesthetic**: Uses the signature WeChat green and neutral palette.
|
|
19
|
+
- 📱 **Mini-Program Ready**: Optimized for both web and WeChat Mini-Program environments.
|
|
20
|
+
- 🎨 **Clean & Reliable**: Focuses on content clarity and standard interface patterns.
|
|
21
|
+
- 🧩 **Universal**: Fully compatible with all SXO framework adaptors.
|
|
22
|
+
|
|
23
|
+
## 🚀 Quick Start
|
|
24
|
+
|
|
25
|
+
### Installation
|
|
6
26
|
|
|
7
27
|
```bash
|
|
8
|
-
pnpm add @sxo/theme-wechat
|
|
28
|
+
pnpm add @sxo/theme-wechat
|
|
9
29
|
```
|
|
30
|
+
|
|
31
|
+
### Usage (Vue 3 Example)
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import { createSxo } from '@sxo/vue';
|
|
35
|
+
import wechatTheme from '@sxo/theme-wechat';
|
|
36
|
+
|
|
37
|
+
app.use(createSxo({
|
|
38
|
+
tokens: wechatTheme
|
|
39
|
+
}));
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 📖 Documentation
|
|
43
|
+
|
|
44
|
+
For full documentation and theme customization, visit the [Theme Documentation](https://sxo-engine.pages.dev/zh/guide/tokens.html).
|
|
45
|
+
|
|
46
|
+
## 📄 License
|
|
47
|
+
|
|
48
|
+
MIT License.
|
package/dist/index.cjs
CHANGED
|
@@ -1 +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;
|
|
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:{DEFAULT:"8px",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;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,32 +5,21 @@ const r = {
|
|
|
5
5
|
...o.color,
|
|
6
6
|
primary: {
|
|
7
7
|
DEFAULT: "#07C160",
|
|
8
|
-
// WeChat Green
|
|
9
8
|
foreground: "#ffffff"
|
|
10
9
|
},
|
|
11
10
|
secondary: {
|
|
12
11
|
DEFAULT: "#10AEFF",
|
|
13
|
-
// WeChat Blue
|
|
14
12
|
foreground: "#ffffff"
|
|
15
13
|
},
|
|
16
14
|
accent: {
|
|
17
15
|
DEFAULT: "#07C160",
|
|
18
16
|
neon: "#07C160",
|
|
19
17
|
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
18
|
},
|
|
19
|
+
success: { DEFAULT: "#07C160" },
|
|
20
|
+
warning: { DEFAULT: "#FFBE00" },
|
|
21
|
+
error: { DEFAULT: "#FA5151" },
|
|
22
|
+
info: { DEFAULT: "#10AEFF" },
|
|
34
23
|
neutral: {
|
|
35
24
|
0: "#ffffff",
|
|
36
25
|
50: "#F7F7F7",
|
|
@@ -52,11 +41,11 @@ const r = {
|
|
|
52
41
|
}
|
|
53
42
|
},
|
|
54
43
|
borderRadius: {
|
|
44
|
+
DEFAULT: "8px",
|
|
55
45
|
none: "0px",
|
|
56
46
|
xs: "2px",
|
|
57
47
|
sm: "4px",
|
|
58
48
|
md: "8px",
|
|
59
|
-
// WeUI standard
|
|
60
49
|
lg: "12px",
|
|
61
50
|
full: "9999px",
|
|
62
51
|
xl: "12px"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxo/theme-wechat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "Wechat theme for SXO Design System.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sxo",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@sxo/design": "0.0.
|
|
30
|
+
"@sxo/design": "0.0.1"
|
|
31
31
|
},
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"
|
|
46
|
-
"vite
|
|
47
|
-
"
|
|
45
|
+
"typescript": "^5.9.3",
|
|
46
|
+
"vite": "^7.3.1",
|
|
47
|
+
"vite-plugin-dts": "^4.5.4"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "vite build",
|