@pierre/theme 0.0.18 → 0.0.21
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/.github/workflows/publish.yml +30 -8
- package/README.md +9 -1
- package/package.json +1 -1
- package/src/build.ts +18 -2
- package/src/palette.ts +4 -4
- package/src/zed-theme.ts +606 -0
- package/themes/pierre-dark-vibrant.json +1917 -0
- package/themes/pierre-dark.json +1917 -0
- package/themes/pierre-light-vibrant.json +1917 -0
- package/themes/pierre-light.json +1917 -0
- package/zed/README.md +25 -0
- package/zed/extension.toml +7 -0
- package/zed/themes/pierre.json +991 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
name: Publish
|
|
1
|
+
name: Publish
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
release:
|
|
5
5
|
types: [published]
|
|
6
6
|
|
|
7
7
|
jobs:
|
|
8
|
-
|
|
8
|
+
package:
|
|
9
|
+
name: Publish to VS Marketplace & Open VSX
|
|
9
10
|
runs-on: ubuntu-latest
|
|
10
11
|
|
|
11
12
|
steps:
|
|
@@ -24,17 +25,38 @@ jobs:
|
|
|
24
25
|
- name: Build theme
|
|
25
26
|
run: npm run build
|
|
26
27
|
|
|
27
|
-
- name:
|
|
28
|
-
run:
|
|
28
|
+
- name: Rename package for extension publishing
|
|
29
|
+
run: jq '.name = "pierre-theme"' package.json > tmp.json && mv tmp.json package.json
|
|
29
30
|
|
|
30
31
|
- name: Publish to VS Marketplace
|
|
31
32
|
env:
|
|
32
33
|
VSCE_PAT: ${{ secrets.VSCE_PAT }}
|
|
33
34
|
run: npx @vscode/vsce publish --pat $VSCE_PAT
|
|
34
35
|
|
|
35
|
-
- name:
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
- name: Publish to Open VSX
|
|
37
|
+
env:
|
|
38
|
+
OVSX_PAT: ${{ secrets.OPEN_VSX_TOKEN }}
|
|
39
|
+
run: npx ovsx publish --pat $OVSX_PAT
|
|
40
|
+
|
|
41
|
+
npm:
|
|
42
|
+
name: Publish to npm
|
|
43
|
+
runs-on: ubuntu-latest
|
|
44
|
+
permissions:
|
|
45
|
+
id-token: write
|
|
46
|
+
contents: read
|
|
47
|
+
|
|
48
|
+
steps:
|
|
49
|
+
- name: Checkout code
|
|
50
|
+
uses: actions/checkout@v4
|
|
51
|
+
|
|
52
|
+
- name: Setup Node.js
|
|
53
|
+
uses: actions/setup-node@v4
|
|
54
|
+
with:
|
|
55
|
+
node-version: '20'
|
|
56
|
+
cache: 'npm'
|
|
57
|
+
registry-url: 'https://registry.npmjs.org'
|
|
38
58
|
|
|
39
59
|
- name: Publish to npm
|
|
40
|
-
|
|
60
|
+
env:
|
|
61
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
62
|
+
run: npm publish --access public --provenance
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Pierre Theme
|
|
2
2
|
|
|
3
|
-
Light and dark themes for Visual Studio Code, Cursor, and Shiki. Built for [Diffs.com](https://diffs.com) by [The Pierre Computer Company](https://pierre.computer).
|
|
3
|
+
Light and dark themes for Visual Studio Code, Cursor, Zed, and Shiki. Built for [Diffs.com](https://diffs.com) by [The Pierre Computer Company](https://pierre.computer).
|
|
4
4
|
|
|
5
5
|
## Preview
|
|
6
6
|
|
|
@@ -29,6 +29,14 @@ From the menu in Cursor:
|
|
|
29
29
|
|
|
30
30
|
You can also install or download from the [Open VSX registry](https://open-vsx.org/extension/pierrecomputer/pierre-theme).
|
|
31
31
|
|
|
32
|
+
### Zed
|
|
33
|
+
|
|
34
|
+
From the menu in Zed:
|
|
35
|
+
|
|
36
|
+
- Zed > Extensions (or hit Command+Shift+X or Control+Shift+X)
|
|
37
|
+
- Search for `Pierre`
|
|
38
|
+
- Click install
|
|
39
|
+
|
|
32
40
|
## Vibrant themes (Display P3)
|
|
33
41
|
|
|
34
42
|
> [!NOTE]
|
package/package.json
CHANGED
package/src/build.ts
CHANGED
|
@@ -2,22 +2,38 @@
|
|
|
2
2
|
import { writeFileSync, mkdirSync } from "node:fs";
|
|
3
3
|
import { light as rolesLight, dark as rolesDark } from "./palette";
|
|
4
4
|
import { makeTheme } from "./theme";
|
|
5
|
+
import { makeZedThemeFamily } from "./zed-theme";
|
|
5
6
|
import { convertRolesToP3 } from "./color-p3";
|
|
6
7
|
|
|
7
8
|
mkdirSync("themes", { recursive: true });
|
|
9
|
+
mkdirSync("zed/themes", { recursive: true });
|
|
8
10
|
|
|
9
11
|
// Convert palettes to Display P3 color space
|
|
10
12
|
const rolesLightP3 = convertRolesToP3(rolesLight);
|
|
11
13
|
const rolesDarkP3 = convertRolesToP3(rolesDark);
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
// ============================================
|
|
16
|
+
// VS Code Themes
|
|
17
|
+
// ============================================
|
|
18
|
+
const vscodeThemes = [
|
|
14
19
|
{ file: "themes/pierre-light.json", theme: makeTheme("Pierre Light", "light", rolesLight) },
|
|
15
20
|
{ file: "themes/pierre-dark.json", theme: makeTheme("Pierre Dark", "dark", rolesDark) },
|
|
16
21
|
{ file: "themes/pierre-light-vibrant.json", theme: makeTheme("Pierre Light Vibrant", "light", rolesLightP3) },
|
|
17
22
|
{ file: "themes/pierre-dark-vibrant.json", theme: makeTheme("Pierre Dark Vibrant", "dark", rolesDarkP3) }
|
|
18
23
|
];
|
|
19
24
|
|
|
20
|
-
for (const {file, theme} of
|
|
25
|
+
for (const {file, theme} of vscodeThemes) {
|
|
21
26
|
writeFileSync(file, JSON.stringify(theme, null, 2), "utf8");
|
|
22
27
|
console.log("Wrote", file);
|
|
23
28
|
}
|
|
29
|
+
|
|
30
|
+
// ============================================
|
|
31
|
+
// Zed Theme Family
|
|
32
|
+
// ============================================
|
|
33
|
+
const zedTheme = makeZedThemeFamily("Pierre", "pierrecomputer", [
|
|
34
|
+
{ name: "Pierre Light", appearance: "light", roles: rolesLight },
|
|
35
|
+
{ name: "Pierre Dark", appearance: "dark", roles: rolesDark },
|
|
36
|
+
]);
|
|
37
|
+
|
|
38
|
+
writeFileSync("zed/themes/pierre.json", JSON.stringify(zedTheme, null, 2), "utf8");
|
|
39
|
+
console.log("Wrote zed/themes/pierre.json");
|
package/src/palette.ts
CHANGED
|
@@ -318,11 +318,11 @@ export const dark: Roles = {
|
|
|
318
318
|
},
|
|
319
319
|
border: {
|
|
320
320
|
window: gray["1040"],
|
|
321
|
-
editor: gray["
|
|
322
|
-
indentGuide: gray["
|
|
321
|
+
editor: gray["980"],
|
|
322
|
+
indentGuide: gray["980"],
|
|
323
323
|
indentGuideActive: gray["960"],
|
|
324
|
-
inset: gray["
|
|
325
|
-
elevated: gray["
|
|
324
|
+
inset: gray["980"],
|
|
325
|
+
elevated: gray["980"]
|
|
326
326
|
},
|
|
327
327
|
accent: {
|
|
328
328
|
primary: blue["500"],
|