@sxo/theme-material 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-material
2
+
3
+ SXO 设计系统的 Material Design (M3) 风格主题。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pnpm add @sxo/theme-material @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 F=require("@sxo/design"),r={...F.defaultTokens,color:{...F.defaultTokens.color,primary:{DEFAULT:"#6750A4",foreground:"#FFFFFF"},secondary:{DEFAULT:"#625B71",foreground:"#FFFFFF"},accent:{DEFAULT:"#7D5260",neon:"#B3261E",vivid:"#6750A4"},success:{DEFAULT:"#4CAF50"},warning:{DEFAULT:"#FFC107"},error:{DEFAULT:"#B3261E"},info:{DEFAULT:"#2196F3"},neutral:{0:"#FFFFFF",50:"#F7F2FA",100:"#F3EDF7",200:"#E6E1E5",300:"#CAC4D0",400:"#938F99",500:"#79747E",600:"#49454F",700:"#1D1B20",800:"#1C1B1F",900:"#19171A",950:"#000000",1e3:"#000000"},background:{primary:"#FFFBFE",secondary:"#F3EDF7",inverse:"#313033"},text:{primary:"#1C1B1F",secondary:"#49454F",muted:"#79747E",inverse:"#F4EFF4"}},borderRadius:{none:"0px",xs:"4px",sm:"8px",md:"12px",lg:"16px",full:"9999px",xl:"12px"},boxShadow:{none:"none",sm:"0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)",DEFAULT:"0px 1px 2px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15)",md:"0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3)",lg:"0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px rgba(0, 0, 0, 0.3)",hard:"0px 8px 12px 6px rgba(0, 0, 0, 0.15), 0px 4px 4px rgba(0, 0, 0, 0.3)","hard-accent":"0px 8px 12px 6px rgba(103, 80, 164, 0.15), 0px 4px 4px rgba(103, 80, 164, 0.3)",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:{sans:'"Roboto", "Segoe UI", Tahoma, sans-serif',serif:'"Roboto Serif", Georgia, serif',mono:'"Roboto Mono", monospace'}},modes:{dark:{primary:{DEFAULT:"#D0BCFF",foreground:"#381E72"},secondary:{DEFAULT:"#CCC2DC",foreground:"#332D41"},accent:{DEFAULT:"#EFB8C8",neon:"#F2B8B5",vivid:"#D0BCFF"},neutral:{0:"#1C1B1F",50:"#1C1B1F",100:"#1D1B20",200:"#313033",300:"#49454F",400:"#79747E",500:"#938F99",600:"#CAC4D0",700:"#E6E1E5",800:"#F3EDF7",900:"#F7F2FA",1e3:"#FFFFFF"},background:{primary:"#1C1B1F",secondary:"#1D1B20",inverse:"#E6E1E5"}}}};exports.default=r;exports.materialTheme=r;
@@ -0,0 +1,2 @@
1
+ export * from './tokens.ts';
2
+ export { default } from './tokens.ts';
package/dist/index.js ADDED
@@ -0,0 +1,133 @@
1
+ import { defaultTokens as F } from "@sxo/design";
2
+ const r = {
3
+ ...F,
4
+ color: {
5
+ ...F.color,
6
+ primary: {
7
+ DEFAULT: "#6750A4",
8
+ // M3 Primary
9
+ foreground: "#FFFFFF"
10
+ },
11
+ secondary: {
12
+ DEFAULT: "#625B71",
13
+ // M3 Secondary
14
+ foreground: "#FFFFFF"
15
+ },
16
+ accent: {
17
+ DEFAULT: "#7D5260",
18
+ // M3 Tertiary
19
+ neon: "#B3261E",
20
+ // M3 Error
21
+ vivid: "#6750A4"
22
+ },
23
+ success: {
24
+ DEFAULT: "#4CAF50"
25
+ },
26
+ warning: {
27
+ DEFAULT: "#FFC107"
28
+ },
29
+ error: {
30
+ DEFAULT: "#B3261E"
31
+ },
32
+ info: {
33
+ DEFAULT: "#2196F3"
34
+ },
35
+ neutral: {
36
+ 0: "#FFFFFF",
37
+ 50: "#F7F2FA",
38
+ 100: "#F3EDF7",
39
+ 200: "#E6E1E5",
40
+ 300: "#CAC4D0",
41
+ 400: "#938F99",
42
+ 500: "#79747E",
43
+ 600: "#49454F",
44
+ 700: "#1D1B20",
45
+ 800: "#1C1B1F",
46
+ 900: "#19171A",
47
+ 950: "#000000",
48
+ 1e3: "#000000"
49
+ },
50
+ background: {
51
+ primary: "#FFFBFE",
52
+ secondary: "#F3EDF7",
53
+ inverse: "#313033"
54
+ },
55
+ text: {
56
+ primary: "#1C1B1F",
57
+ secondary: "#49454F",
58
+ muted: "#79747E",
59
+ inverse: "#F4EFF4"
60
+ }
61
+ },
62
+ borderRadius: {
63
+ none: "0px",
64
+ xs: "4px",
65
+ sm: "8px",
66
+ md: "12px",
67
+ lg: "16px",
68
+ full: "9999px",
69
+ xl: "12px"
70
+ },
71
+ boxShadow: {
72
+ none: "none",
73
+ sm: "0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)",
74
+ DEFAULT: "0px 1px 2px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15)",
75
+ md: "0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3)",
76
+ lg: "0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px rgba(0, 0, 0, 0.3)",
77
+ hard: "0px 8px 12px 6px rgba(0, 0, 0, 0.15), 0px 4px 4px rgba(0, 0, 0, 0.3)",
78
+ "hard-accent": "0px 8px 12px 6px rgba(103, 80, 164, 0.15), 0px 4px 4px rgba(103, 80, 164, 0.3)",
79
+ xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"
80
+ },
81
+ typography: {
82
+ ...F.typography,
83
+ fontFamily: {
84
+ sans: '"Roboto", "Segoe UI", Tahoma, sans-serif',
85
+ serif: '"Roboto Serif", Georgia, serif',
86
+ mono: '"Roboto Mono", monospace'
87
+ }
88
+ },
89
+ modes: {
90
+ dark: {
91
+ primary: {
92
+ DEFAULT: "#D0BCFF",
93
+ // M3 Dark Primary
94
+ foreground: "#381E72"
95
+ },
96
+ secondary: {
97
+ DEFAULT: "#CCC2DC",
98
+ // M3 Dark Secondary
99
+ foreground: "#332D41"
100
+ },
101
+ accent: {
102
+ DEFAULT: "#EFB8C8",
103
+ // M3 Dark Tertiary
104
+ neon: "#F2B8B5",
105
+ // M3 Dark Error
106
+ vivid: "#D0BCFF"
107
+ },
108
+ neutral: {
109
+ 0: "#1C1B1F",
110
+ 50: "#1C1B1F",
111
+ 100: "#1D1B20",
112
+ 200: "#313033",
113
+ 300: "#49454F",
114
+ 400: "#79747E",
115
+ 500: "#938F99",
116
+ 600: "#CAC4D0",
117
+ 700: "#E6E1E5",
118
+ 800: "#F3EDF7",
119
+ 900: "#F7F2FA",
120
+ 1e3: "#FFFFFF"
121
+ },
122
+ background: {
123
+ primary: "#1C1B1F",
124
+ secondary: "#1D1B20",
125
+ inverse: "#E6E1E5"
126
+ }
127
+ }
128
+ }
129
+ };
130
+ export {
131
+ r as default,
132
+ r as materialTheme
133
+ };
@@ -0,0 +1,3 @@
1
+ import { DesignTokens } from '../../design/src';
2
+ export declare const materialTheme: DesignTokens;
3
+ export default materialTheme;
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@sxo/theme-material",
3
+ "version": "0.0.0",
4
+ "description": "Material theme for SXO Design System.",
5
+ "keywords": [
6
+ "sxo",
7
+ "design-system",
8
+ "ui",
9
+ "components",
10
+ "theme",
11
+ "material"
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-material"
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-material#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
+ }