@sxo/theme-antd 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 +29 -9
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +22 -25
- package/dist/theme-antd/src/index.d.ts +1 -0
- package/dist/{tokens.d.ts → theme-antd/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,17 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>@sxo/theme-antd</h1>
|
|
3
|
+
<p><b>Ant Design style theme for the SXO design system.</b></p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<p>
|
|
6
|
+
<a href="https://www.npmjs.com/package/@sxo/theme-antd"><img src="https://img.shields.io/npm/v/@sxo/theme-antd.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-antd.svg?style=flat-square" alt="downloads">
|
|
9
|
+
</p>
|
|
10
|
+
</div>
|
|
4
11
|
|
|
5
|
-
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
`@sxo/theme-antd` provides a set of design tokens that replicate the clean, professional, and technical look of Ant Design 5.0 for your SXO-powered application.
|
|
15
|
+
|
|
16
|
+
## ✨ Features
|
|
17
|
+
|
|
18
|
+
- 💼 **Professional UI**: Based on Ant Design 5.0 specifications.
|
|
19
|
+
- 🎨 **Balanced Palette**: Uses the classic "Technical Blue" as the primary color.
|
|
20
|
+
- 📐 **Precise Spacing**: Follows the 8px grid system for layout and typography.
|
|
21
|
+
- 🧩 **Drop-in Integration**: Works seamlessly with all SXO framework adaptors.
|
|
22
|
+
|
|
23
|
+
## 🚀 Quick Start
|
|
24
|
+
|
|
25
|
+
### Installation
|
|
6
26
|
|
|
7
27
|
```bash
|
|
8
|
-
pnpm add @sxo/theme-antd
|
|
28
|
+
pnpm add @sxo/theme-antd
|
|
9
29
|
```
|
|
10
30
|
|
|
11
|
-
|
|
31
|
+
### Usage (Vue 3 Example)
|
|
12
32
|
|
|
13
33
|
```typescript
|
|
14
|
-
import { createSxo } from 'vue
|
|
34
|
+
import { createSxo } from '@sxo/vue';
|
|
15
35
|
import antdTheme from '@sxo/theme-antd';
|
|
16
36
|
|
|
17
37
|
app.use(createSxo({
|
|
@@ -19,6 +39,6 @@ app.use(createSxo({
|
|
|
19
39
|
}));
|
|
20
40
|
```
|
|
21
41
|
|
|
22
|
-
##
|
|
23
|
-
|
|
24
|
-
|
|
42
|
+
## 📄 License
|
|
43
|
+
|
|
44
|
+
MIT License.
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@sxo/design"),o={...f.defaultTokens,color:{...f.defaultTokens.color,primary:{DEFAULT:"#1677ff",foreground:"#ffffff"},secondary:{DEFAULT:"#f5f5f5",foreground:"rgba(0, 0, 0, 0.88)"},success:{DEFAULT:"#52c41a"},warning:{DEFAULT:"#faad14"},error:{DEFAULT:"#ff4d4f"},info:{DEFAULT:"#1677ff"},neutral:{...f.defaultTokens.color.neutral,100:"#f5f5f5",200:"#f0f0f0",300:"#d9d9d9",400:"#bfbfbf",500:"#8c8c8c",600:"#595959",700:"#434343",800:"#262626",900:"#1f1f1f"},background:{primary:"#ffffff",secondary:"#fafafa",inverse:"#000000"}},modes:{dark:{primary:{DEFAULT:"#1668dc",foreground:"#ffffff"},background:{primary:"#141414",secondary:"#1f1f1f",inverse:"#ffffff"},neutral:{100:"#1f1f1f",200:"#262626",300:"#434343",400:"#595959",500:"#8c8c8c",600:"#bfbfbf",700:"#d9d9d9",800:"#f0f0f0",900:"#f5f5f5"}}},borderRadius:{...f.defaultTokens.borderRadius,none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",full:"9999px",xl:"12px"},boxShadow:{...f.defaultTokens.boxShadow,none:"none",sm:"0 2px 0 rgba(0, 0, 0, 0.02)",DEFAULT:"0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",md:"0 6px 16px 0 rgba(0, 0, 0, 0.08)",lg:"0 9px 28px 8px rgba(0, 0, 0, 0.05)",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:{...f.defaultTokens.typography,fontFamily:{...f.defaultTokens.typography.fontFamily,DEFAULT:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'"}}};exports.antdTheme=o;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("@sxo/design"),o={...f.defaultTokens,color:{...f.defaultTokens.color,primary:{DEFAULT:"#1677ff",foreground:"#ffffff"},secondary:{DEFAULT:"#f5f5f5",foreground:"rgba(0, 0, 0, 0.88)"},success:{DEFAULT:"#52c41a"},warning:{DEFAULT:"#faad14"},error:{DEFAULT:"#ff4d4f"},info:{DEFAULT:"#1677ff"},neutral:{...f.defaultTokens.color.neutral,100:"#f5f5f5",200:"#f0f0f0",300:"#d9d9d9",400:"#bfbfbf",500:"#8c8c8c",600:"#595959",700:"#434343",800:"#262626",900:"#1f1f1f"},background:{primary:"#ffffff",secondary:"#fafafa",inverse:"#000000"}},modes:{dark:{primary:{DEFAULT:"#1668dc",foreground:"#ffffff"},background:{primary:"#141414",secondary:"#1f1f1f",inverse:"#ffffff"},neutral:{100:"#1f1f1f",200:"#262626",300:"#434343",400:"#595959",500:"#8c8c8c",600:"#bfbfbf",700:"#d9d9d9",800:"#f0f0f0",900:"#f5f5f5"}}},borderRadius:{...f.defaultTokens.borderRadius,DEFAULT:"6px",none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",full:"9999px",xl:"12px"},boxShadow:{...f.defaultTokens.boxShadow,none:"none",sm:"0 2px 0 rgba(0, 0, 0, 0.02)",DEFAULT:"0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",md:"0 6px 16px 0 rgba(0, 0, 0, 0.08)",lg:"0 9px 28px 8px rgba(0, 0, 0, 0.05)",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:{...f.defaultTokens.typography,fontFamily:{...f.defaultTokens.typography.fontFamily,DEFAULT:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'"}}};exports.antdTheme=o;
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './theme-antd/src/index'
|
|
2
|
+
export {}
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,6 @@ const r = {
|
|
|
5
5
|
...f.color,
|
|
6
6
|
primary: {
|
|
7
7
|
DEFAULT: "#1677ff",
|
|
8
|
-
// Ant Design Blue
|
|
9
8
|
foreground: "#ffffff"
|
|
10
9
|
},
|
|
11
10
|
secondary: {
|
|
@@ -34,32 +33,31 @@ const r = {
|
|
|
34
33
|
inverse: "#000000"
|
|
35
34
|
}
|
|
36
35
|
},
|
|
37
|
-
modes: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
900: "#f5f5f5"
|
|
58
|
-
}
|
|
36
|
+
modes: { dark: {
|
|
37
|
+
primary: {
|
|
38
|
+
DEFAULT: "#1668dc",
|
|
39
|
+
foreground: "#ffffff"
|
|
40
|
+
},
|
|
41
|
+
background: {
|
|
42
|
+
primary: "#141414",
|
|
43
|
+
secondary: "#1f1f1f",
|
|
44
|
+
inverse: "#ffffff"
|
|
45
|
+
},
|
|
46
|
+
neutral: {
|
|
47
|
+
100: "#1f1f1f",
|
|
48
|
+
200: "#262626",
|
|
49
|
+
300: "#434343",
|
|
50
|
+
400: "#595959",
|
|
51
|
+
500: "#8c8c8c",
|
|
52
|
+
600: "#bfbfbf",
|
|
53
|
+
700: "#d9d9d9",
|
|
54
|
+
800: "#f0f0f0",
|
|
55
|
+
900: "#f5f5f5"
|
|
59
56
|
}
|
|
60
|
-
},
|
|
57
|
+
} },
|
|
61
58
|
borderRadius: {
|
|
62
59
|
...f.borderRadius,
|
|
60
|
+
DEFAULT: "6px",
|
|
63
61
|
none: "0",
|
|
64
62
|
xs: "2px",
|
|
65
63
|
sm: "4px",
|
|
@@ -76,7 +74,6 @@ const r = {
|
|
|
76
74
|
md: "0 6px 16px 0 rgba(0, 0, 0, 0.08)",
|
|
77
75
|
lg: "0 9px 28px 8px rgba(0, 0, 0, 0.05)",
|
|
78
76
|
hard: "none",
|
|
79
|
-
// Ant Design 不常用硬投影
|
|
80
77
|
"hard-accent": "none",
|
|
81
78
|
xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"
|
|
82
79
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tokens';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxo/theme-antd",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "Antd 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",
|