@sxo/theme-fate 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,24 @@
1
+ # @sxo/theme-fate
2
+
3
+ SXO 设计系统的纠缠之缘 (Fate) 风格主题。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pnpm add @sxo/theme-fate @sxo/engine @sxo/design
9
+ ```
10
+
11
+ ## 用法
12
+
13
+ ```typescript
14
+ import { createSxo } from 'vue-sxo';
15
+ import fateTheme from '@sxo/theme-fate';
16
+
17
+ app.use(createSxo({
18
+ tokens: fateTheme
19
+ }));
20
+ ```
21
+
22
+ ## 主题特色
23
+ - **梦幻配色**: 提取自《原神》纠缠之缘的粉紫色调。
24
+ - **独特动效**: 预设了契合主题的过渡效果。
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"),r={...e.defaultTokens,color:{...e.defaultTokens.color,primary:{DEFAULT:"#4A90E2",foreground:"#FFFFFF"},secondary:{DEFAULT:"#F06292",foreground:"#FFFFFF"},accent:{DEFAULT:"#9B59B6",neon:"#48C9B0",vivid:"#F39C12"},success:{DEFAULT:"#48C9B0"},warning:{DEFAULT:"#F39C12"},error:{DEFAULT:"#E74C3C"},info:{DEFAULT:"#4A90E2"},neutral:{0:"#FFFFFF",50:"#F5F7FA",100:"#E0E6ED",200:"#D1D9E6",300:"#B0BCCB",400:"#94A3B8",500:"#7F8C8D",600:"#64748B",700:"#475569",800:"#334155",900:"#2C3E50",950:"#1E293B",1e3:"#0F172A"},background:{primary:"#F5F7FA",secondary:"rgba(255, 255, 255, 0.8)",inverse:"#0B0E14"}},borderRadius:{none:"0px",xs:"4px",sm:"12px",md:"16px",lg:"24px",full:"9999px",xl:"12px"},boxShadow:{none:"none",sm:"0 2px 10px rgba(74, 144, 226, 0.1)",DEFAULT:"0 4px 20px rgba(74, 144, 226, 0.15)",md:"0 8px 30px rgba(74, 144, 226, 0.2)",lg:"0 12px 40px rgba(74, 144, 226, 0.25)",hard:"0 0 15px rgba(240, 98, 146, 0.3)","hard-accent":"0 0 20px rgba(240, 98, 146, 0.5)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"},transition:{DEFAULT:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",fast:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",slow:"all 0.8s cubic-bezier(0.4, 0, 0.2, 1)"},modes:{dark:{primary:{DEFAULT:"#1B3B5F",foreground:"#E0E6ED"},secondary:{DEFAULT:"#880E4F",foreground:"#E0E6ED"},accent:{DEFAULT:"#4A235A",neon:"#0E6251",vivid:"#935116"},neutral:{0:"#0B0E14",50:"#1B293B",100:"#2C3E50",200:"#334155",300:"#475569",400:"#64748B",500:"#7F8C8D",600:"#94A3B8",700:"#B0BCCB",800:"#D1D9E6",900:"#E0E6ED",950:"#F5F7FA",1e3:"#FFFFFF"},background:{primary:"#0B0E14",secondary:"rgba(11, 14, 20, 0.8)",inverse:"#F5F7FA"}}}};exports.default=r;exports.fateTheme=r;
@@ -0,0 +1,2 @@
1
+ export * from './tokens';
2
+ export { default } from './tokens';
package/dist/index.js ADDED
@@ -0,0 +1,123 @@
1
+ import { defaultTokens as F } from "@sxo/design";
2
+ const e = {
3
+ ...F,
4
+ color: {
5
+ ...F.color,
6
+ primary: {
7
+ DEFAULT: "#4A90E2",
8
+ // 蓝色
9
+ foreground: "#FFFFFF"
10
+ },
11
+ secondary: {
12
+ DEFAULT: "#F06292",
13
+ // 粉色
14
+ foreground: "#FFFFFF"
15
+ },
16
+ accent: {
17
+ DEFAULT: "#9B59B6",
18
+ // 紫色
19
+ neon: "#48C9B0",
20
+ // 绿色
21
+ vivid: "#F39C12"
22
+ // 橙色
23
+ },
24
+ success: {
25
+ DEFAULT: "#48C9B0"
26
+ },
27
+ warning: {
28
+ DEFAULT: "#F39C12"
29
+ },
30
+ error: {
31
+ DEFAULT: "#E74C3C"
32
+ },
33
+ info: {
34
+ DEFAULT: "#4A90E2"
35
+ },
36
+ neutral: {
37
+ 0: "#FFFFFF",
38
+ 50: "#F5F7FA",
39
+ 100: "#E0E6ED",
40
+ 200: "#D1D9E6",
41
+ 300: "#B0BCCB",
42
+ 400: "#94A3B8",
43
+ 500: "#7F8C8D",
44
+ 600: "#64748B",
45
+ 700: "#475569",
46
+ 800: "#334155",
47
+ 900: "#2C3E50",
48
+ 950: "#1E293B",
49
+ 1e3: "#0F172A"
50
+ },
51
+ background: {
52
+ primary: "#F5F7FA",
53
+ secondary: "rgba(255, 255, 255, 0.8)",
54
+ // 模拟毛玻璃
55
+ inverse: "#0B0E14"
56
+ }
57
+ },
58
+ borderRadius: {
59
+ none: "0px",
60
+ xs: "4px",
61
+ sm: "12px",
62
+ md: "16px",
63
+ lg: "24px",
64
+ full: "9999px",
65
+ xl: "12px"
66
+ },
67
+ boxShadow: {
68
+ none: "none",
69
+ sm: "0 2px 10px rgba(74, 144, 226, 0.1)",
70
+ DEFAULT: "0 4px 20px rgba(74, 144, 226, 0.15)",
71
+ md: "0 8px 30px rgba(74, 144, 226, 0.2)",
72
+ lg: "0 12px 40px rgba(74, 144, 226, 0.25)",
73
+ hard: "0 0 15px rgba(240, 98, 146, 0.3)",
74
+ "hard-accent": "0 0 20px rgba(240, 98, 146, 0.5)",
75
+ xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"
76
+ },
77
+ transition: {
78
+ DEFAULT: "all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",
79
+ fast: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
80
+ slow: "all 0.8s cubic-bezier(0.4, 0, 0.2, 1)"
81
+ },
82
+ modes: {
83
+ dark: {
84
+ primary: {
85
+ DEFAULT: "#1B3B5F",
86
+ foreground: "#E0E6ED"
87
+ },
88
+ secondary: {
89
+ DEFAULT: "#880E4F",
90
+ foreground: "#E0E6ED"
91
+ },
92
+ accent: {
93
+ DEFAULT: "#4A235A",
94
+ neon: "#0E6251",
95
+ vivid: "#935116"
96
+ },
97
+ neutral: {
98
+ 0: "#0B0E14",
99
+ 50: "#1B293B",
100
+ 100: "#2C3E50",
101
+ 200: "#334155",
102
+ 300: "#475569",
103
+ 400: "#64748B",
104
+ 500: "#7F8C8D",
105
+ 600: "#94A3B8",
106
+ 700: "#B0BCCB",
107
+ 800: "#D1D9E6",
108
+ 900: "#E0E6ED",
109
+ 950: "#F5F7FA",
110
+ 1e3: "#FFFFFF"
111
+ },
112
+ background: {
113
+ primary: "#0B0E14",
114
+ secondary: "rgba(11, 14, 20, 0.8)",
115
+ inverse: "#F5F7FA"
116
+ }
117
+ }
118
+ }
119
+ };
120
+ export {
121
+ e as default,
122
+ e as fateTheme
123
+ };
@@ -0,0 +1,7 @@
1
+ import { DesignTokens } from '../../design/src';
2
+ /**
3
+ * 纠缠之缘 (Intertwined Fate) - 官方主题
4
+ * 支持双模式切换,模拟原神纠缠之缘配色
5
+ */
6
+ export declare const fateTheme: DesignTokens;
7
+ export default fateTheme;
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@sxo/theme-fate",
3
+ "version": "0.0.0",
4
+ "description": "Fate theme for SXO Design System.",
5
+ "keywords": [
6
+ "sxo",
7
+ "design-system",
8
+ "ui",
9
+ "components",
10
+ "theme",
11
+ "fate"
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-fate"
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-fate#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
+ }