@sxo/theme-material 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
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,44 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>@sxo/theme-material</h1>
|
|
3
|
+
<p><b>Material Design (M3) style theme for the SXO design system. A modern, tactile, and expressive aesthetic.</b></p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<p>
|
|
6
|
+
<a href="https://www.npmjs.com/package/@sxo/theme-material"><img src="https://img.shields.io/npm/v/@sxo/theme-material.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-material.svg?style=flat-square" alt="downloads">
|
|
9
|
+
</p>
|
|
10
|
+
</div>
|
|
4
11
|
|
|
5
|
-
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
`@sxo/theme-material` brings Google's Material You (M3) design philosophy to the SXO ecosystem, featuring dynamic color capabilities and a focus on tactile surfaces.
|
|
15
|
+
|
|
16
|
+
## ✨ Features
|
|
17
|
+
|
|
18
|
+
- 📐 **M3 Specifications**: Follows the latest Material Design 3 guidelines.
|
|
19
|
+
- 🎨 **Expressive Color**: Optimized for dynamic color schemes and high legibility.
|
|
20
|
+
- 🏔️ **Elevation & Depth**: Signature use of shadows and surfaces to indicate hierarchy.
|
|
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-material
|
|
28
|
+
pnpm add @sxo/theme-material
|
|
9
29
|
```
|
|
30
|
+
|
|
31
|
+
### Usage (Vue 3 Example)
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import { createSxo } from '@sxo/vue';
|
|
35
|
+
import materialTheme from '@sxo/theme-material';
|
|
36
|
+
|
|
37
|
+
app.use(createSxo({
|
|
38
|
+
tokens: materialTheme
|
|
39
|
+
}));
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 📄 License
|
|
43
|
+
|
|
44
|
+
MIT License.
|
package/dist/index.cjs
CHANGED
|
@@ -1 +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;
|
|
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:{DEFAULT:"12px",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;
|
package/dist/index.js
CHANGED
|
@@ -5,33 +5,21 @@ const r = {
|
|
|
5
5
|
...F.color,
|
|
6
6
|
primary: {
|
|
7
7
|
DEFAULT: "#6750A4",
|
|
8
|
-
// M3 Primary
|
|
9
8
|
foreground: "#FFFFFF"
|
|
10
9
|
},
|
|
11
10
|
secondary: {
|
|
12
11
|
DEFAULT: "#625B71",
|
|
13
|
-
// M3 Secondary
|
|
14
12
|
foreground: "#FFFFFF"
|
|
15
13
|
},
|
|
16
14
|
accent: {
|
|
17
15
|
DEFAULT: "#7D5260",
|
|
18
|
-
// M3 Tertiary
|
|
19
16
|
neon: "#B3261E",
|
|
20
|
-
// M3 Error
|
|
21
17
|
vivid: "#6750A4"
|
|
22
18
|
},
|
|
23
|
-
success: {
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
DEFAULT: "#FFC107"
|
|
28
|
-
},
|
|
29
|
-
error: {
|
|
30
|
-
DEFAULT: "#B3261E"
|
|
31
|
-
},
|
|
32
|
-
info: {
|
|
33
|
-
DEFAULT: "#2196F3"
|
|
34
|
-
},
|
|
19
|
+
success: { DEFAULT: "#4CAF50" },
|
|
20
|
+
warning: { DEFAULT: "#FFC107" },
|
|
21
|
+
error: { DEFAULT: "#B3261E" },
|
|
22
|
+
info: { DEFAULT: "#2196F3" },
|
|
35
23
|
neutral: {
|
|
36
24
|
0: "#FFFFFF",
|
|
37
25
|
50: "#F7F2FA",
|
|
@@ -60,6 +48,7 @@ const r = {
|
|
|
60
48
|
}
|
|
61
49
|
},
|
|
62
50
|
borderRadius: {
|
|
51
|
+
DEFAULT: "12px",
|
|
63
52
|
none: "0px",
|
|
64
53
|
xs: "4px",
|
|
65
54
|
sm: "8px",
|
|
@@ -86,46 +75,40 @@ const r = {
|
|
|
86
75
|
mono: '"Roboto Mono", monospace'
|
|
87
76
|
}
|
|
88
77
|
},
|
|
89
|
-
modes: {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
},
|
|
122
|
-
background: {
|
|
123
|
-
primary: "#1C1B1F",
|
|
124
|
-
secondary: "#1D1B20",
|
|
125
|
-
inverse: "#E6E1E5"
|
|
126
|
-
}
|
|
78
|
+
modes: { dark: {
|
|
79
|
+
primary: {
|
|
80
|
+
DEFAULT: "#D0BCFF",
|
|
81
|
+
foreground: "#381E72"
|
|
82
|
+
},
|
|
83
|
+
secondary: {
|
|
84
|
+
DEFAULT: "#CCC2DC",
|
|
85
|
+
foreground: "#332D41"
|
|
86
|
+
},
|
|
87
|
+
accent: {
|
|
88
|
+
DEFAULT: "#EFB8C8",
|
|
89
|
+
neon: "#F2B8B5",
|
|
90
|
+
vivid: "#D0BCFF"
|
|
91
|
+
},
|
|
92
|
+
neutral: {
|
|
93
|
+
0: "#1C1B1F",
|
|
94
|
+
50: "#1C1B1F",
|
|
95
|
+
100: "#1D1B20",
|
|
96
|
+
200: "#313033",
|
|
97
|
+
300: "#49454F",
|
|
98
|
+
400: "#79747E",
|
|
99
|
+
500: "#938F99",
|
|
100
|
+
600: "#CAC4D0",
|
|
101
|
+
700: "#E6E1E5",
|
|
102
|
+
800: "#F3EDF7",
|
|
103
|
+
900: "#F7F2FA",
|
|
104
|
+
1e3: "#FFFFFF"
|
|
105
|
+
},
|
|
106
|
+
background: {
|
|
107
|
+
primary: "#1C1B1F",
|
|
108
|
+
secondary: "#1D1B20",
|
|
109
|
+
inverse: "#E6E1E5"
|
|
127
110
|
}
|
|
128
|
-
}
|
|
111
|
+
} }
|
|
129
112
|
};
|
|
130
113
|
export {
|
|
131
114
|
r as default,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxo/theme-material",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "Material 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",
|
|
File without changes
|