@santi020k/theme 1.0.1 → 1.1.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 +42 -0
- package/assets/chrome/images/theme_ntp_background.png +0 -0
- package/assets/chrome/images/theme_ntp_background_light.png +0 -0
- package/index.d.ts +6 -0
- package/index.js +8 -2
- package/package.json +13 -2
- package/shiki/santi020k-dark.json +1465 -0
- package/shiki/santi020k-hc-dark.json +1485 -0
- package/shiki/santi020k-hc-light.json +1465 -0
- package/shiki/santi020k-light.json +1465 -0
- package/shiki.d.ts +57 -0
- package/shiki.js +37 -0
package/README.md
CHANGED
|
@@ -26,6 +26,11 @@ This package is ESM-only and expects Node `>=22.18.0`.
|
|
|
26
26
|
| `@santi020k/theme/typography.css` | Shared Montserrat font-family variables |
|
|
27
27
|
| `@santi020k/theme/tokens.css` | CSS custom properties and Tailwind v4 `@theme` values |
|
|
28
28
|
| `@santi020k/theme/tokens.json` | Raw token data |
|
|
29
|
+
| `@santi020k/theme/shiki` | Typed dark/light and high-contrast Shiki theme exports |
|
|
30
|
+
| `@santi020k/theme/shiki/santi020k-dark.json` | Shiki-ready dark VS Code theme JSON |
|
|
31
|
+
| `@santi020k/theme/shiki/santi020k-hc-dark.json` | Shiki-ready high-contrast dark VS Code theme JSON |
|
|
32
|
+
| `@santi020k/theme/shiki/santi020k-hc-light.json` | Shiki-ready high-contrast light VS Code theme JSON |
|
|
33
|
+
| `@santi020k/theme/shiki/santi020k-light.json` | Shiki-ready light VS Code theme JSON |
|
|
29
34
|
| `@santi020k/theme/tailwind` | Tailwind-compatible theme object |
|
|
30
35
|
| `@santi020k/theme/assets/*` | Package-relative static asset imports |
|
|
31
36
|
| `@santi020k/theme/docs/*` | Packaged documentation such as brand guidance |
|
|
@@ -84,6 +89,43 @@ const project = projects.santi020kTheme
|
|
|
84
89
|
console.log(colors, config.colors, theme.colors.brand, logos, project.title)
|
|
85
90
|
```
|
|
86
91
|
|
|
92
|
+
## Shiki Themes
|
|
93
|
+
|
|
94
|
+
The VS Code theme package generates clean JSON copies for syntax highlighters that cannot read
|
|
95
|
+
JSONC comments:
|
|
96
|
+
|
|
97
|
+
```js
|
|
98
|
+
import {
|
|
99
|
+
getSanti020kShikiTheme,
|
|
100
|
+
santi020kShikiThemes,
|
|
101
|
+
santi020kShikiThemeVariants
|
|
102
|
+
} from '@santi020k/theme/shiki'
|
|
103
|
+
|
|
104
|
+
const themes = {
|
|
105
|
+
dark: santi020kShikiThemes.dark,
|
|
106
|
+
hcDark: santi020kShikiThemes.hcDark,
|
|
107
|
+
hcLight: santi020kShikiThemes.hcLight,
|
|
108
|
+
light: santi020kShikiThemes.light
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const pickerOptions = santi020kShikiThemeVariants.map(variant => ({
|
|
112
|
+
label: getSanti020kShikiTheme(variant).name,
|
|
113
|
+
value: variant
|
|
114
|
+
}))
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Raw JSON imports are available when a tool needs direct theme files:
|
|
118
|
+
|
|
119
|
+
```js
|
|
120
|
+
import darkTheme from '@santi020k/theme/shiki/santi020k-dark.json' with { type: 'json' }
|
|
121
|
+
import hcDarkTheme from '@santi020k/theme/shiki/santi020k-hc-dark.json' with { type: 'json' }
|
|
122
|
+
import hcLightTheme from '@santi020k/theme/shiki/santi020k-hc-light.json' with { type: 'json' }
|
|
123
|
+
import lightTheme from '@santi020k/theme/shiki/santi020k-light.json' with { type: 'json' }
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Use these exports with Shiki, Astro's `<Code />` component, or other VS Code theme consumers that
|
|
127
|
+
expect importable JSON.
|
|
128
|
+
|
|
87
129
|
## Assets
|
|
88
130
|
|
|
89
131
|
```js
|
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -21,9 +21,15 @@ export declare const chromeThemeVariantManifests: Record<
|
|
|
21
21
|
export declare const chromeThemeImageRequirements: Record<
|
|
22
22
|
string,
|
|
23
23
|
{
|
|
24
|
+
bitDepth: 8
|
|
25
|
+
colorType: 2
|
|
24
26
|
format: 'png'
|
|
27
|
+
height: number
|
|
28
|
+
maxHeight: number
|
|
29
|
+
maxWidth: number
|
|
25
30
|
minWidth: number
|
|
26
31
|
minHeight: number
|
|
32
|
+
width: number
|
|
27
33
|
}
|
|
28
34
|
>
|
|
29
35
|
export declare const chromeThemeSourceTokenRoles: {
|
package/index.js
CHANGED
|
@@ -21,9 +21,15 @@ export const chromeThemeVariantManifests = {
|
|
|
21
21
|
|
|
22
22
|
export const chromeThemeImageRequirements = {
|
|
23
23
|
theme_ntp_background: {
|
|
24
|
+
bitDepth: 8,
|
|
25
|
+
colorType: 2,
|
|
24
26
|
format: 'png',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
height: 1080,
|
|
28
|
+
maxHeight: 1080,
|
|
29
|
+
maxWidth: 1920,
|
|
30
|
+
minHeight: 1080,
|
|
31
|
+
minWidth: 1920,
|
|
32
|
+
width: 1920
|
|
27
33
|
}
|
|
28
34
|
}
|
|
29
35
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@santi020k/theme",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Santi020k design tokens and shared brand assets for websites, apps, and theme surfaces.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -14,6 +14,14 @@
|
|
|
14
14
|
"./typography.css": "./typography.css",
|
|
15
15
|
"./tokens.css": "./tokens/tokens.css",
|
|
16
16
|
"./tokens.json": "./tokens/tokens.json",
|
|
17
|
+
"./shiki": {
|
|
18
|
+
"types": "./shiki.d.ts",
|
|
19
|
+
"import": "./shiki.js"
|
|
20
|
+
},
|
|
21
|
+
"./shiki/santi020k-dark.json": "./shiki/santi020k-dark.json",
|
|
22
|
+
"./shiki/santi020k-hc-dark.json": "./shiki/santi020k-hc-dark.json",
|
|
23
|
+
"./shiki/santi020k-hc-light.json": "./shiki/santi020k-hc-light.json",
|
|
24
|
+
"./shiki/santi020k-light.json": "./shiki/santi020k-light.json",
|
|
17
25
|
"./site": {
|
|
18
26
|
"types": "./site.d.ts",
|
|
19
27
|
"import": "./site.js"
|
|
@@ -30,10 +38,13 @@
|
|
|
30
38
|
"files": [
|
|
31
39
|
"assets",
|
|
32
40
|
"docs",
|
|
41
|
+
"shiki",
|
|
33
42
|
"tokens",
|
|
34
43
|
"site.css",
|
|
35
44
|
"site.d.ts",
|
|
36
45
|
"site.js",
|
|
46
|
+
"shiki.d.ts",
|
|
47
|
+
"shiki.js",
|
|
37
48
|
"typography.css",
|
|
38
49
|
"index.d.ts",
|
|
39
50
|
"index.js",
|
|
@@ -69,7 +80,7 @@
|
|
|
69
80
|
},
|
|
70
81
|
"homepage": "https://theme.santi020k.com",
|
|
71
82
|
"scripts": {
|
|
72
|
-
"build": "node --check index.js && node --check site.js && node --check tailwind.js",
|
|
83
|
+
"build": "node --check index.js && node --check shiki.js && node --check site.js && node --check tailwind.js",
|
|
73
84
|
"validate": "pnpm run build"
|
|
74
85
|
}
|
|
75
86
|
}
|