@sxo/theme-github 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,17 +1,37 @@
1
- # @sxo/theme-github
1
+ <div align="center">
2
+ <h1>@sxo/theme-github</h1>
3
+ <p><b>GitHub style theme for the SXO design system. A clean, collaborative, and familiar aesthetic.</b></p>
2
4
 
3
- SXO 设计系统的 GitHub 风格主题。
5
+ <p>
6
+ <a href="https://www.npmjs.com/package/@sxo/theme-github"><img src="https://img.shields.io/npm/v/@sxo/theme-github.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-github.svg?style=flat-square" alt="downloads">
9
+ </p>
10
+ </div>
4
11
 
5
- ## 安装
12
+ ---
13
+
14
+ `@sxo/theme-github` brings the familiar look and feel of the GitHub interface to your SXO application, focusing on clarity, simplicity, and great typography.
15
+
16
+ ## ✨ Features
17
+
18
+ - 🐙 **familiar UI**: Replicates the clean visual language of GitHub.
19
+ - 🌫️ **Precise Grayscale**: Carefully picked neutral tones for borders and secondary backgrounds.
20
+ - 📈 **Productivity Focused**: Minimalist design that puts content first.
21
+ - 🧩 **Universal**: Seamlessly works with all SXO framework adaptors.
22
+
23
+ ## 🚀 Quick Start
24
+
25
+ ### Installation
6
26
 
7
27
  ```bash
8
- pnpm add @sxo/theme-github @sxo/engine @sxo/design
28
+ pnpm add @sxo/theme-github
9
29
  ```
10
30
 
11
- ## 用法
31
+ ### Usage (Vue 3 Example)
12
32
 
13
33
  ```typescript
14
- import { createSxo } from 'vue-sxo';
34
+ import { createSxo } from '@sxo/vue';
15
35
  import githubTheme from '@sxo/theme-github';
16
36
 
17
37
  app.use(createSxo({
@@ -19,6 +39,6 @@ app.use(createSxo({
19
39
  }));
20
40
  ```
21
41
 
22
- ## 主题特色
23
- - **简洁**: 还原 GitHub 网页端的视觉感受。
24
- - **灰度控制**: 精确的边框和背景中性色。
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"),e={...f.defaultTokens,color:{...f.defaultTokens.color,primary:{DEFAULT:"#0969da",foreground:"#ffffff"},secondary:{DEFAULT:"#f6f8fa",foreground:"#24292f"},accent:{DEFAULT:"#0969da",neon:"#3fb950",vivid:"#cf222e"},success:{DEFAULT:"#1a7f37"},warning:{DEFAULT:"#9a6700"},error:{DEFAULT:"#d1242f"},info:{DEFAULT:"#0969da"},neutral:{0:"#ffffff",50:"#f6f8fa",100:"#eaeef2",200:"#d0d7de",300:"#afb8c1",400:"#8c959f",500:"#6e7781",600:"#57606a",700:"#424a53",800:"#32383f",900:"#24292f",950:"#1b1f24",1e3:"#010409"},background:{primary:"#ffffff",secondary:"#f6f8fa",inverse:"#24292f"},text:{primary:"#24292f",secondary:"#57606a",muted:"#8c959f",inverse:"#ffffff"}},modes:{dark:{primary:{DEFAULT:"#58a6ff",foreground:"#ffffff"},background:{primary:"#0d1117",secondary:"#161b22",inverse:"#ffffff"},neutral:{0:"#0d1117",50:"#161b22",100:"#21262d",200:"#30363d",300:"#484f58",400:"#6e7681",500:"#8b949e",600:"#b1bac4",700:"#c9d1d9",800:"#d0d7de",900:"#f0f6fb",950:"#ffffff",1e3:"#ffffff"}}},borderRadius:{none:"0px",xs:"2px",sm:"6px",md:"8px",lg:"12px",full:"9999px",xl:"12px"},boxShadow:{none:"none",sm:"0 1px 0 rgba(27,31,36,0.04)",DEFAULT:"0 3px 6px rgba(140,149,159,0.15)",md:"0 8px 24px rgba(140,149,159,0.2)",lg:"0 12px 28px rgba(140,149,159,0.3)",hard:"0 0 0 1px rgba(27,31,36,0.15)","hard-accent":"0 0 0 1px #0969da",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:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',serif:'Georgia, "Times New Roman", serif',mono:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace'}}};exports.default=e;exports.githubTheme=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=require("@sxo/design"),e={...f.defaultTokens,color:{...f.defaultTokens.color,primary:{DEFAULT:"#0969da",foreground:"#ffffff"},secondary:{DEFAULT:"#f6f8fa",foreground:"#24292f"},accent:{DEFAULT:"#0969da",neon:"#3fb950",vivid:"#cf222e"},success:{DEFAULT:"#1a7f37"},warning:{DEFAULT:"#9a6700"},error:{DEFAULT:"#d1242f"},info:{DEFAULT:"#0969da"},neutral:{0:"#ffffff",50:"#f6f8fa",100:"#eaeef2",200:"#d0d7de",300:"#afb8c1",400:"#8c959f",500:"#6e7781",600:"#57606a",700:"#424a53",800:"#32383f",900:"#24292f",950:"#1b1f24",1e3:"#010409"},background:{primary:"#ffffff",secondary:"#f6f8fa",inverse:"#24292f"},text:{primary:"#24292f",secondary:"#57606a",muted:"#8c959f",inverse:"#ffffff"}},modes:{dark:{primary:{DEFAULT:"#58a6ff",foreground:"#ffffff"},background:{primary:"#0d1117",secondary:"#161b22",inverse:"#ffffff"},neutral:{0:"#0d1117",50:"#161b22",100:"#21262d",200:"#30363d",300:"#484f58",400:"#6e7681",500:"#8b949e",600:"#b1bac4",700:"#c9d1d9",800:"#d0d7de",900:"#f0f6fb",950:"#ffffff",1e3:"#ffffff"}}},borderRadius:{DEFAULT:"6px",none:"0px",xs:"2px",sm:"6px",md:"8px",lg:"12px",full:"9999px",xl:"12px"},boxShadow:{none:"none",sm:"0 1px 0 rgba(27,31,36,0.04)",DEFAULT:"0 3px 6px rgba(140,149,159,0.15)",md:"0 8px 24px rgba(140,149,159,0.2)",lg:"0 12px 28px rgba(140,149,159,0.3)",hard:"0 0 0 1px rgba(27,31,36,0.15)","hard-accent":"0 0 0 1px #0969da",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:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',serif:'Georgia, "Times New Roman", serif',mono:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace'}}};exports.default=e;exports.githubTheme=e;
package/dist/index.js CHANGED
@@ -5,34 +5,21 @@ const a = {
5
5
  ...f.color,
6
6
  primary: {
7
7
  DEFAULT: "#0969da",
8
- // GitHub Blue
9
8
  foreground: "#ffffff"
10
9
  },
11
10
  secondary: {
12
11
  DEFAULT: "#f6f8fa",
13
- // GitHub Secondary Background (Light Gray)
14
12
  foreground: "#24292f"
15
- // Dark Text
16
13
  },
17
14
  accent: {
18
15
  DEFAULT: "#0969da",
19
16
  neon: "#3fb950",
20
- // GitHub Success Green
21
17
  vivid: "#cf222e"
22
- // GitHub Error Red
23
- },
24
- success: {
25
- DEFAULT: "#1a7f37"
26
- },
27
- warning: {
28
- DEFAULT: "#9a6700"
29
- },
30
- error: {
31
- DEFAULT: "#d1242f"
32
- },
33
- info: {
34
- DEFAULT: "#0969da"
35
18
  },
19
+ success: { DEFAULT: "#1a7f37" },
20
+ warning: { DEFAULT: "#9a6700" },
21
+ error: { DEFAULT: "#d1242f" },
22
+ info: { DEFAULT: "#0969da" },
36
23
  neutral: {
37
24
  0: "#ffffff",
38
25
  50: "#f6f8fa",
@@ -60,39 +47,37 @@ const a = {
60
47
  inverse: "#ffffff"
61
48
  }
62
49
  },
63
- modes: {
64
- dark: {
65
- primary: {
66
- DEFAULT: "#58a6ff",
67
- foreground: "#ffffff"
68
- },
69
- background: {
70
- primary: "#0d1117",
71
- secondary: "#161b22",
72
- inverse: "#ffffff"
73
- },
74
- neutral: {
75
- 0: "#0d1117",
76
- 50: "#161b22",
77
- 100: "#21262d",
78
- 200: "#30363d",
79
- 300: "#484f58",
80
- 400: "#6e7681",
81
- 500: "#8b949e",
82
- 600: "#b1bac4",
83
- 700: "#c9d1d9",
84
- 800: "#d0d7de",
85
- 900: "#f0f6fb",
86
- 950: "#ffffff",
87
- 1e3: "#ffffff"
88
- }
50
+ modes: { dark: {
51
+ primary: {
52
+ DEFAULT: "#58a6ff",
53
+ foreground: "#ffffff"
54
+ },
55
+ background: {
56
+ primary: "#0d1117",
57
+ secondary: "#161b22",
58
+ inverse: "#ffffff"
59
+ },
60
+ neutral: {
61
+ 0: "#0d1117",
62
+ 50: "#161b22",
63
+ 100: "#21262d",
64
+ 200: "#30363d",
65
+ 300: "#484f58",
66
+ 400: "#6e7681",
67
+ 500: "#8b949e",
68
+ 600: "#b1bac4",
69
+ 700: "#c9d1d9",
70
+ 800: "#d0d7de",
71
+ 900: "#f0f6fb",
72
+ 950: "#ffffff",
73
+ 1e3: "#ffffff"
89
74
  }
90
- },
75
+ } },
91
76
  borderRadius: {
77
+ DEFAULT: "6px",
92
78
  none: "0px",
93
79
  xs: "2px",
94
80
  sm: "6px",
95
- // GitHub standard
96
81
  md: "8px",
97
82
  lg: "12px",
98
83
  full: "9999px",
@@ -1,3 +1,3 @@
1
- import { DesignTokens } from '../../design/src';
1
+ import { DesignTokens } from '../../sxo-design/src';
2
2
  export declare const githubTheme: DesignTokens;
3
3
  export default githubTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sxo/theme-github",
3
- "version": "0.0.0",
3
+ "version": "0.0.1",
4
4
  "description": "Github 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",