@sxo/theme-fluent 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
- # @sxo/theme-fluent
1
+ <div align="center">
2
+ <h1>@sxo/theme-fluent</h1>
3
+ <p><b>Microsoft Fluent style theme for the SXO design system. A modern, multi-layered, and accessible aesthetic.</b></p>
2
4
 
3
- SXO 设计系统的 Microsoft Fluent 风格主题。
5
+ <p>
6
+ <a href="https://www.npmjs.com/package/@sxo/theme-fluent"><img src="https://img.shields.io/npm/v/@sxo/theme-fluent.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-fluent.svg?style=flat-square" alt="downloads">
9
+ </p>
10
+ </div>
4
11
 
5
- ## 安装
12
+ ---
13
+
14
+ `@sxo/theme-fluent` brings the modern, accessible, and multi-layered visual language of Microsoft's Fluent Design System to the SXO ecosystem.
15
+
16
+ ## ✨ Features
17
+
18
+ - 💎 **Acrylic & Mica**: Signature translucent and layered effects for depth and focus.
19
+ - 🎨 **Inclusive Design**: High-contrast support and accessibility-first color choices.
20
+ - 📐 **Adaptive Layout**: Designed to work across different screen sizes and input methods.
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-fluent @sxo/engine @sxo/design
28
+ pnpm add @sxo/theme-fluent
9
29
  ```
30
+
31
+ ### Usage (Vue 3 Example)
32
+
33
+ ```typescript
34
+ import { createSxo } from '@sxo/vue';
35
+ import fluentTheme from '@sxo/theme-fluent';
36
+
37
+ app.use(createSxo({
38
+ tokens: fluentTheme
39
+ }));
40
+ ```
41
+
42
+ ## 📄 License
43
+
44
+ MIT License.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@sxo/design"),o={...e.defaultTokens,color:{...e.defaultTokens.color,primary:{DEFAULT:"#0078d4",foreground:"#ffffff"},secondary:{DEFAULT:"#edebe9",foreground:"#323130"},success:{DEFAULT:"#107c10"},warning:{DEFAULT:"#ffb900"},error:{DEFAULT:"#a4262c"},info:{DEFAULT:"#0078d4"},neutral:{...e.defaultTokens.color.neutral,100:"#faf9f8",200:"#f3f2f1",300:"#edebe9",400:"#e1dfdd",500:"#c8c6c4",600:"#a19f9d",700:"#605e5c",800:"#323130",900:"#201f1e"},background:{primary:"#ffffff",secondary:"#faf9f8",inverse:"#201f1e"}},borderRadius:{...e.defaultTokens.borderRadius,none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",full:"9999px",xl:"12px"},boxShadow:{...e.defaultTokens.boxShadow,none:"none",sm:"0 1.6px 3.6px 0 rgba(0,0,0,0.132), 0 0.3px 0.9px 0 rgba(0,0,0,0.108)",DEFAULT:"0 6.4px 14.4px 0 rgba(0,0,0,0.132), 0 1.2px 3.6px 0 rgba(0,0,0,0.108)",md:"0 12.8px 28.8px 0 rgba(0,0,0,0.132), 0 2.4px 7.2px 0 rgba(0,0,0,0.108)",lg:"0 25.6px 57.6px 0 rgba(0,0,0,0.22), 0 4.8px 14.4px 0 rgba(0,0,0,0.18)",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:{...e.defaultTokens.typography,fontFamily:{...e.defaultTokens.typography.fontFamily,DEFAULT:"'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"}}};exports.fluentTheme=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@sxo/design"),o={...e.defaultTokens,color:{...e.defaultTokens.color,primary:{DEFAULT:"#0078d4",foreground:"#ffffff"},secondary:{DEFAULT:"#edebe9",foreground:"#323130"},success:{DEFAULT:"#107c10"},warning:{DEFAULT:"#ffb900"},error:{DEFAULT:"#a4262c"},info:{DEFAULT:"#0078d4"},neutral:{...e.defaultTokens.color.neutral,100:"#faf9f8",200:"#f3f2f1",300:"#edebe9",400:"#e1dfdd",500:"#c8c6c4",600:"#a19f9d",700:"#605e5c",800:"#323130",900:"#201f1e"},background:{primary:"#ffffff",secondary:"#faf9f8",inverse:"#201f1e"}},borderRadius:{...e.defaultTokens.borderRadius,DEFAULT:"4px",none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",full:"9999px",xl:"12px"},boxShadow:{...e.defaultTokens.boxShadow,none:"none",sm:"0 1.6px 3.6px 0 rgba(0,0,0,0.132), 0 0.3px 0.9px 0 rgba(0,0,0,0.108)",DEFAULT:"0 6.4px 14.4px 0 rgba(0,0,0,0.132), 0 1.2px 3.6px 0 rgba(0,0,0,0.108)",md:"0 12.8px 28.8px 0 rgba(0,0,0,0.132), 0 2.4px 7.2px 0 rgba(0,0,0,0.108)",lg:"0 25.6px 57.6px 0 rgba(0,0,0,0.22), 0 4.8px 14.4px 0 rgba(0,0,0,0.18)",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:{...e.defaultTokens.typography,fontFamily:{...e.defaultTokens.typography.fontFamily,DEFAULT:"'Segoe UI', 'Segoe UI Web (West European)', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"}}};exports.fluentTheme=o;
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
- export * from './tokens';
1
+ export * from './theme-fluent/src/index'
2
+ export {}
package/dist/index.js CHANGED
@@ -5,7 +5,6 @@ const o = {
5
5
  ...e.color,
6
6
  primary: {
7
7
  DEFAULT: "#0078d4",
8
- // Microsoft Brand Blue
9
8
  foreground: "#ffffff"
10
9
  },
11
10
  secondary: {
@@ -36,6 +35,7 @@ const o = {
36
35
  },
37
36
  borderRadius: {
38
37
  ...e.borderRadius,
38
+ DEFAULT: "4px",
39
39
  none: "0",
40
40
  xs: "2px",
41
41
  sm: "4px",
@@ -0,0 +1 @@
1
+ export * from './tokens';
@@ -1,4 +1,4 @@
1
- import { DesignTokens } from '../../design/src';
1
+ import { DesignTokens } from '../../sxo-design/src';
2
2
  /**
3
3
  * Microsoft Fluent 风格主题
4
4
  * 核心:Brand Blue, 现代感, 深度感 (Shadow), 细腻圆角
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sxo/theme-fluent",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "description": "Fluent 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.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
- "vite": "^5.0.0",
46
- "vite-plugin-dts": "^4.0.0",
47
- "typescript": "^5.0.0"
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",