Skip to content

Commit 56ea83d

Browse files
committed
Separate Zed themes in prep for publishing, rebuild and update
1 parent 428d1aa commit 56ea83d

6 files changed

Lines changed: 1032 additions & 10 deletions

File tree

src/build.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { makeZedThemeFamily } from "./zed-theme";
66
import { convertRolesToP3 } from "./color-p3";
77

88
mkdirSync("themes", { recursive: true });
9+
mkdirSync("zed/themes", { recursive: true });
910

1011
// Convert palettes to Display P3 color space
1112
const rolesLightP3 = convertRolesToP3(rolesLight);
@@ -32,9 +33,7 @@ for (const {file, theme} of vscodeThemes) {
3233
const zedTheme = makeZedThemeFamily("Pierre", "pierrecomputer", [
3334
{ name: "Pierre Light", appearance: "light", roles: rolesLight },
3435
{ name: "Pierre Dark", appearance: "dark", roles: rolesDark },
35-
{ name: "Pierre Light Vibrant", appearance: "light", roles: rolesLightP3 },
36-
{ name: "Pierre Dark Vibrant", appearance: "dark", roles: rolesDarkP3 },
3736
]);
3837

39-
writeFileSync("themes/pierre.zed-theme.json", JSON.stringify(zedTheme, null, 2), "utf8");
40-
console.log("Wrote themes/pierre.zed-theme.json");
38+
writeFileSync("zed/themes/pierre.json", JSON.stringify(zedTheme, null, 2), "utf8");
39+
console.log("Wrote zed/themes/pierre.json");

themes/pierre-dark-vibrant.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"editorCursor.foreground": "color(display-p3 0.308664 0.645271 1.000000)",
1313
"editorLineNumber.foreground": "color(display-p3 0.517647 0.517647 0.539124)",
1414
"editorLineNumber.activeForeground": "color(display-p3 0.678431 0.678431 0.692733)",
15-
"editorIndentGuide.background": "color(display-p3 0.223529 0.223529 0.234269)",
15+
"editorIndentGuide.background": "color(display-p3 0.121569 0.121569 0.128729)",
1616
"editorIndentGuide.activeBackground": "color(display-p3 0.180392 0.180392 0.187548)",
1717
"diffEditor.insertedTextBackground": "color(display-p3 0.309962 0.827620 0.725102 / 0.100000)",
1818
"diffEditor.deletedTextBackground": "color(display-p3 1.000000 0.250216 0.262337 / 0.100000)",
@@ -61,11 +61,11 @@
6161
"statusBarItem.remoteBackground": "color(display-p3 0.078431 0.078431 0.082008)",
6262
"statusBarItem.remoteForeground": "color(display-p3 0.678431 0.678431 0.692733)",
6363
"input.background": "color(display-p3 0.121569 0.121569 0.128729)",
64-
"input.border": "color(display-p3 0.258824 0.258824 0.269560)",
64+
"input.border": "color(display-p3 0.121569 0.121569 0.128729)",
6565
"input.foreground": "color(display-p3 0.984314 0.984314 0.984314)",
6666
"input.placeholderForeground": "color(display-p3 0.474510 0.474510 0.495991)",
6767
"dropdown.background": "color(display-p3 0.121569 0.121569 0.128729)",
68-
"dropdown.border": "color(display-p3 0.258824 0.258824 0.269560)",
68+
"dropdown.border": "color(display-p3 0.121569 0.121569 0.128729)",
6969
"dropdown.foreground": "color(display-p3 0.984314 0.984314 0.984314)",
7070
"button.background": "color(display-p3 0.308664 0.645271 1.000000)",
7171
"button.foreground": "color(display-p3 0.027451 0.027451 0.027451)",

themes/pierre-dark.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"editorCursor.foreground": "#009fff",
1313
"editorLineNumber.foreground": "#84848A",
1414
"editorLineNumber.activeForeground": "#adadb1",
15-
"editorIndentGuide.background": "#39393c",
15+
"editorIndentGuide.background": "#1F1F21",
1616
"editorIndentGuide.activeBackground": "#2e2e30",
1717
"diffEditor.insertedTextBackground": "#00cab11a",
1818
"diffEditor.deletedTextBackground": "#ff2e3f1a",
@@ -61,11 +61,11 @@
6161
"statusBarItem.remoteBackground": "#141415",
6262
"statusBarItem.remoteForeground": "#adadb1",
6363
"input.background": "#1F1F21",
64-
"input.border": "#424245",
64+
"input.border": "#1F1F21",
6565
"input.foreground": "#fbfbfb",
6666
"input.placeholderForeground": "#79797F",
6767
"dropdown.background": "#1F1F21",
68-
"dropdown.border": "#424245",
68+
"dropdown.border": "#1F1F21",
6969
"dropdown.foreground": "#fbfbfb",
7070
"button.background": "#009fff",
7171
"button.foreground": "#070707",

zed/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Pierre Theme for Zed
2+
3+
Custom themes for [Zed](https://zed.dev) from the team that built [Diffs.com](https://diffs.com), [The Pierre Computer Company]{https://pierre.computer}.
4+
5+
## Variants
6+
7+
- **Pierre Light** — Light theme with warm orange accents
8+
- **Pierre Dark** — Dark theme with warm orange accents
9+
10+
## Installation
11+
12+
Search for "Pierre" in Zed's extension manager (`Cmd+Shift+X` or `Ctrl+Shift+X`).
13+
14+
## Manual Installation
15+
16+
Copy `themes/pierre.json` to your Zed themes directory:
17+
18+
- **macOS/Linux:** `~/.config/zed/themes/`
19+
- **Windows:** `%USERPROFILE%\AppData\Roaming\Zed\themes\`
20+
21+
Then select the theme via the theme selector (`Cmd+K Cmd+T` or `Ctrl+K Ctrl+T`).
22+
23+
## License
24+
25+
MIT

zed/extension.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id = "pierre"
2+
name = "Pierre"
3+
description = "A warm, orange-accented color theme with light and dark variants"
4+
version = "0.0.1"
5+
schema_version = 1
6+
authors = ["pierrecomputer"]
7+
repository = "https://github.com/pierrecomputer/pierre-theme"

0 commit comments

Comments
 (0)