summaryrefslogtreecommitdiff
path: root/core/themes
diff options
context:
space:
mode:
Diffstat (limited to 'core/themes')
-rw-r--r--core/themes/dark.zig55
-rw-r--r--core/themes/light.zig30
-rw-r--r--core/themes/mono.zig31
-rw-r--r--core/themes/okabe.zig32
-rw-r--r--core/themes/sepia.zig30
5 files changed, 152 insertions, 26 deletions
diff --git a/core/themes/dark.zig b/core/themes/dark.zig
index 51768f56..24506f6b 100644
--- a/core/themes/dark.zig
+++ b/core/themes/dark.zig
@@ -1,33 +1,36 @@
-//! pardes's own dark theme, and the boot default until the helix capture
-//! displaced it. It stays in the ring because it is the only one that leaves
-//! `bg`/`fg` NULL: the page keeps the host terminal's own default cell, so
-//! pardes sits inside whatever the surrounding terminal already looks like and
-//! only paints its chrome. Every other theme here dresses the whole page.
-//!
-//! The selection pair is the warm tan pardes used to paint EVERY theme's
-//! selection with, back when those six numbers were module constants. This is
-//! the theme it belongs to: a null page is the host terminal's, and a tan that
-//! reads as keyboard-driven on whatever dark cell that turns out to be is
-//! exactly what it was picked for.
+//! pardes dark: the host terminal's own page, white comments, violet stuff.
+//! The one theme that leaves `page` and `text` NULL: in a terminal the page
+//! is the host's own cell, ink and sixteen, so pardes sits inside whatever
+//! the terminal already looks like and paints only its chrome; a window
+//! draws colors.null_page (#121212) and #cccccc, and its sixteen below.
+//! DESIGN.md part C: comments the brightest ink (#f0f0f0, 16.4:1), keywords
+//! violet (#d76ef0, 6.6:1), a lilac tag, a violet grip that reads (#a58bff,
+//! 3.4:1 on the focused tag) and a violet selection (#46337a) so the hits
+//! keep amber; its own severities and sixteen (the window's).
pub const theme = .{
.name = "dark",
.page = null,
.text = null,
- .selection = .{ 0x51, 0x3c, 0x17 },
- .selection_text = .{ 0xd8, 0xc8, 0xa8 },
.tag = .{ 0x2c, 0x2a, 0x3e },
- .tag_text = .{ 0x96, 0x96, 0x96 },
- // The focused tag: its band lighter in its own hue (1.54:1 off the
- // plain one), its ink lighter to keep reading on it.
- .tag_focus = .{ 0x48, 0x45, 0x66 },
- .tag_focus_text = .{ 0xc8, 0xc8, 0xc8 },
- .accent = .{ 0x66, 0x3f, 0xe0 },
- .keyword = .{ 0xda, 0x5e, 0xea },
- .string = .{ 0x85, 0xc3, 0x6f },
- .number = .{ 0xe1, 0xcb, 0x5f },
+ .tag_text = .{ 0xab, 0xa9, 0xc3 },
+ .tag_focus_text = .{ 0xd6, 0xd4, 0xe8 },
+ .accent = .{ 0xa5, 0x8b, 0xff },
+ .selection = .{ 0x46, 0x33, 0x7a },
+ .selection_text = .{ 0xf4, 0xf0, 0xff },
+ .keyword = .{ 0xd7, 0x6e, 0xf0 },
+ .string = .{ 0x8f, 0xca, 0x78 },
+ .number = .{ 0xe3, 0xcd, 0x64 },
.comment = .{ 0xf0, 0xf0, 0xf0 },
- .line_number = .{ 0x5a, 0x5a, 0x5a },
- .rail = .{ 0x2a, 0x2a, 0x2a },
- .rail_thumb = .{ 0x52, 0x52, 0x52 },
- .ansi = null,
+ .line_number = .{ 0x5c, 0x5c, 0x66 },
+ .line_number_current = .{ 0x8e, 0x8c, 0x9e },
+ .@"error" = .{ 0xff, 0x6e, 0x7f },
+ .warning = .{ 0xff, 0xb4, 0x54 },
+ .info = .{ 0x7f, 0xa8, 0xff },
+ .hint = .{ 0x62, 0xd2, 0xc4 },
+ .ansi = .{
+ .{ 0x2c, 0x2a, 0x3e }, .{ 0xff, 0x6e, 0x7f }, .{ 0x8f, 0xca, 0x78 }, .{ 0xe3, 0xcd, 0x64 },
+ .{ 0x7f, 0xa8, 0xff }, .{ 0xd7, 0x6e, 0xf0 }, .{ 0x62, 0xd2, 0xc4 }, .{ 0xc4, 0xc4, 0xcc },
+ .{ 0x7e, 0x7b, 0x96 }, .{ 0xff, 0x95, 0xa1 }, .{ 0xae, 0xe3, 0x9a }, .{ 0xf2, 0xe0, 0x8a },
+ .{ 0xa6, 0xc3, 0xff }, .{ 0xe6, 0x9c, 0xf7 }, .{ 0x8f, 0xe6, 0xda }, .{ 0xf0, 0xf0, 0xf0 },
+ },
};
diff --git a/core/themes/light.zig b/core/themes/light.zig
new file mode 100644
index 00000000..681c000a
--- /dev/null
+++ b/core/themes/light.zig
@@ -0,0 +1,30 @@
+//! pardes light: dark's daylight sibling (DESIGN.md part D). White paper,
+//! the comments the darkest ink as dark's are the brightest, violet keywords
+//! and grip, a lilac-grey tag, a pale violet selection. For dark's users at a
+//! sunny desk, or a phone outdoors.
+pub const theme = .{
+ .name = "light",
+ .page = .{ 0xfb, 0xfb, 0xfd },
+ .text = .{ 0x34, 0x32, 0x3f },
+ .tag = .{ 0xe9, 0xe7, 0xf3 },
+ .tag_text = .{ 0x4b, 0x48, 0x62 },
+ .accent = .{ 0x6a, 0x3f, 0xd8 },
+ .selection = .{ 0xdd, 0xd3, 0xfb },
+ .selection_text = .{ 0x1c, 0x1a, 0x24 },
+ .keyword = .{ 0x8b, 0x2a, 0xb8 },
+ .string = .{ 0x2f, 0x6e, 0x1f },
+ .number = .{ 0x8a, 0x57, 0x00 },
+ .comment = .{ 0x0d, 0x0c, 0x12 },
+ .line_number = .{ 0xa3, 0xa1, 0xb0 },
+ .line_number_current = .{ 0x6e, 0x6b, 0x80 },
+ .@"error" = .{ 0xc0, 0x23, 0x3a },
+ .warning = .{ 0x9a, 0x5a, 0x00 },
+ .info = .{ 0x24, 0x57, 0xc5 },
+ .hint = .{ 0x0f, 0x76, 0x6e },
+ .ansi = .{
+ .{ 0xe9, 0xe7, 0xf3 }, .{ 0xc0, 0x23, 0x3a }, .{ 0x2f, 0x6e, 0x1f }, .{ 0x8a, 0x57, 0x00 },
+ .{ 0x24, 0x57, 0xc5 }, .{ 0x8b, 0x2a, 0xb8 }, .{ 0x0f, 0x76, 0x6e }, .{ 0x55, 0x53, 0x6a },
+ .{ 0x73, 0x71, 0x84 }, .{ 0xd2, 0x36, 0x4d }, .{ 0x35, 0x82, 0x21 }, .{ 0xa0, 0x67, 0x00 },
+ .{ 0x39, 0x6c, 0xde }, .{ 0xa4, 0x3f, 0xd4 }, .{ 0x04, 0x81, 0x77 }, .{ 0x0d, 0x0c, 0x12 },
+ },
+};
diff --git a/core/themes/mono.zig b/core/themes/mono.zig
new file mode 100644
index 00000000..f0dd109a
--- /dev/null
+++ b/core/themes/mono.zig
@@ -0,0 +1,31 @@
+//! pardes mono: acme at night (DESIGN.md part D). Syntax by lightness
+//! alone: keywords the brightest, strings a warm off-white, numbers the
+//! text's, comments a step down (5.6:1). Hue only where pardes says a state:
+//! the selection, hits, severities, added and deleted. For acme and Plan 9
+//! users, anyone who finds syntax colour noise, and screen sharing.
+pub const theme = .{
+ .name = "mono",
+ .page = .{ 0x11, 0x11, 0x13 },
+ .text = .{ 0xbf, 0xc0, 0xc6 },
+ .tag = .{ 0x1e, 0x1f, 0x24 },
+ .tag_text = .{ 0xa2, 0xa4, 0xad },
+ .accent = .{ 0xe6, 0xe7, 0xec },
+ .selection = .{ 0x3b, 0x3d, 0x47 },
+ .selection_text = .{ 0xf2, 0xf2, 0xf5 },
+ .keyword = .{ 0xf2, 0xf2, 0xf5 },
+ .string = .{ 0xd4, 0xd0, 0xc4 },
+ .number = .{ 0xbf, 0xc0, 0xc6 },
+ .comment = .{ 0x8a, 0x8b, 0x94 },
+ .line_number = .{ 0x55, 0x56, 0x5e },
+ .line_number_current = .{ 0x80, 0x81, 0x8b },
+ .@"error" = .{ 0xff, 0x7b, 0x72 },
+ .warning = .{ 0xe3, 0xb3, 0x41 },
+ .info = .{ 0x79, 0xc0, 0xff },
+ .hint = .{ 0xa5, 0xd6, 0xa7 },
+ .ansi = .{
+ .{ 0x1e, 0x1f, 0x24 }, .{ 0xff, 0x7b, 0x72 }, .{ 0x7e, 0xe7, 0x87 }, .{ 0xe3, 0xb3, 0x41 },
+ .{ 0x79, 0xc0, 0xff }, .{ 0xd2, 0xa8, 0xff }, .{ 0x76, 0xe3, 0xea }, .{ 0xbf, 0xc0, 0xc6 },
+ .{ 0x7b, 0x7d, 0x86 }, .{ 0xff, 0xa1, 0x98 }, .{ 0xa5, 0xf0, 0xb0 }, .{ 0xf2, 0xcc, 0x60 },
+ .{ 0xa5, 0xd6, 0xff }, .{ 0xe2, 0xc5, 0xff }, .{ 0xb3, 0xf0, 0xff }, .{ 0xf2, 0xf2, 0xf5 },
+ },
+};
diff --git a/core/themes/okabe.zig b/core/themes/okabe.zig
new file mode 100644
index 00000000..ba8b1888
--- /dev/null
+++ b/core/themes/okabe.zig
@@ -0,0 +1,32 @@
+//! pardes okabe: colour-blind safe (DESIGN.md part D): Okabe and Ito's
+//! eight hues, lightened for a dark page. Added is blue, deleted vermilion,
+//! errors vermilion and warnings yellow: nothing says red against green. For
+//! the 8 % of men with a colour vision deficiency, and anyone reading diffs.
+pub const theme = .{
+ .name = "okabe",
+ .page = .{ 0x0e, 0x12, 0x18 },
+ .text = .{ 0xd8, 0xde, 0xe8 },
+ .tag = .{ 0x1b, 0x22, 0x2c },
+ .tag_text = .{ 0xa9, 0xb4, 0xc4 },
+ .accent = .{ 0x56, 0xb4, 0xe9 },
+ .selection = .{ 0x27, 0x41, 0x5e },
+ .selection_text = .{ 0xee, 0xf3, 0xfa },
+ .keyword = .{ 0x6c, 0xc0, 0xf0 },
+ .string = .{ 0x3c, 0xcf, 0xa4 },
+ .number = .{ 0xf0, 0xa8, 0x30 },
+ .comment = .{ 0xd7, 0xcf, 0x7a },
+ .line_number = .{ 0x4e, 0x58, 0x66 },
+ .line_number_current = .{ 0x7d, 0x88, 0x98 },
+ .@"error" = .{ 0xff, 0x8a, 0x4c },
+ .warning = .{ 0xf0, 0xe4, 0x42 },
+ .info = .{ 0x8c, 0xc8, 0xf0 },
+ .hint = .{ 0xe5, 0x94, 0xc8 },
+ .added = .{ 0x56, 0xb4, 0xe9 },
+ .deleted = .{ 0xff, 0x8a, 0x4c },
+ .ansi = .{
+ .{ 0x1b, 0x22, 0x2c }, .{ 0xff, 0x8a, 0x4c }, .{ 0x3c, 0xcf, 0xa4 }, .{ 0xf0, 0xe4, 0x42 },
+ .{ 0x56, 0xb4, 0xe9 }, .{ 0xe5, 0x94, 0xc8 }, .{ 0x8f, 0xd8, 0xf0 }, .{ 0xc4, 0xcc, 0xd8 },
+ .{ 0x73, 0x7e, 0x8e }, .{ 0xff, 0xab, 0x7c }, .{ 0x6f, 0xe0, 0xbd }, .{ 0xf6, 0xee, 0x80 },
+ .{ 0x86, 0xcc, 0xf2 }, .{ 0xf0, 0xb4, 0xda }, .{ 0xb4, 0xe6, 0xf6 }, .{ 0xee, 0xf3, 0xfa },
+ },
+};
diff --git a/core/themes/sepia.zig b/core/themes/sepia.zig
new file mode 100644
index 00000000..06cf96c1
--- /dev/null
+++ b/core/themes/sepia.zig
@@ -0,0 +1,30 @@
+//! pardes sepia: long reading by daylight (DESIGN.md part D). Warm paper,
+//! brown-black ink, earth hues, a calm comment that still reads 5.9:1, and a
+//! cool grey-blue selection so the hits keep their amber. For prose, docs and
+//! PDFs side by side, and long sessions where white paper glares.
+pub const theme = .{
+ .name = "sepia",
+ .page = .{ 0xf4, 0xec, 0xdb },
+ .text = .{ 0x3a, 0x2e, 0x22 },
+ .tag = .{ 0xe6, 0xd8, 0xba },
+ .tag_text = .{ 0x4b, 0x3d, 0x2b },
+ .accent = .{ 0xa0, 0x56, 0x2a },
+ .selection = .{ 0xc9, 0xd4, 0xdc },
+ .selection_text = .{ 0x23, 0x1a, 0x10 },
+ .keyword = .{ 0x94, 0x35, 0x1c },
+ .string = .{ 0x4c, 0x6a, 0x1f },
+ .number = .{ 0x7b, 0x4b, 0x9a },
+ .comment = .{ 0x6a, 0x57, 0x3e },
+ .line_number = .{ 0xa8, 0x98, 0x7c },
+ .line_number_current = .{ 0x76, 0x65, 0x4b },
+ .@"error" = .{ 0xb3, 0x26, 0x1e },
+ .warning = .{ 0x8a, 0x5a, 0x00 },
+ .info = .{ 0x2f, 0x5f, 0x8f },
+ .hint = .{ 0x3f, 0x6f, 0x5f },
+ .ansi = .{
+ .{ 0xe6, 0xd8, 0xba }, .{ 0xb3, 0x26, 0x1e }, .{ 0x4c, 0x6a, 0x1f }, .{ 0x8a, 0x5a, 0x00 },
+ .{ 0x2f, 0x5f, 0x8f }, .{ 0x7b, 0x4b, 0x9a }, .{ 0x2f, 0x6f, 0x6a }, .{ 0x5a, 0x4a, 0x36 },
+ .{ 0x7a, 0x68, 0x4b }, .{ 0xc1, 0x39, 0x28 }, .{ 0x52, 0x75, 0x17 }, .{ 0x8f, 0x60, 0x00 },
+ .{ 0x36, 0x6d, 0xa2 }, .{ 0x88, 0x54, 0xa7 }, .{ 0x29, 0x76, 0x71 }, .{ 0x23, 0x1a, 0x10 },
+ },
+};