@pierre/theme 0.0.20 → 0.0.22

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 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
@@ -2,7 +2,7 @@
2
2
  "name": "@pierre/theme",
3
3
  "displayName": "Pierre Theme",
4
4
  "description": "Pierre theme for Shiki, VS Code, and more",
5
- "version": "0.0.20",
5
+ "version": "0.0.22",
6
6
  "publisher": "pierrecomputer",
7
7
  "icon": "icon.png",
8
8
  "galleryBanner": {
@@ -50,10 +50,10 @@
50
50
  "package": "ts-node src/package-vsix.ts"
51
51
  },
52
52
  "devDependencies": {
53
+ "@vscode/vsce": "^3.2.2",
53
54
  "nodemon": "^3.1.11",
54
55
  "ts-node": "^10.9.2",
55
- "typescript": "^5.9.3",
56
- "@vscode/vsce": "^3.2.2"
56
+ "typescript": "^5.9.3"
57
57
  },
58
58
  "publishConfig": {
59
59
  "access": "public"
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
- const out = [
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 out) {
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["920"],
322
- indentGuide: gray["940"],
321
+ editor: gray["980"],
322
+ indentGuide: gray["980"],
323
323
  indentGuideActive: gray["960"],
324
- inset: gray["920"],
325
- elevated: gray["960"]
324
+ inset: gray["980"],
325
+ elevated: gray["980"]
326
326
  },
327
327
  accent: {
328
328
  primary: blue["500"],