Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Feat: Add logo generation script and update docs

Maximilian Roosa5184aa17dd3
diff --git a/.gitignore b/.gitignore
index 3936f6b63..20e041463 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@ test-concurrent.sh
# Insta snapshot test artifacts
*.snap.new
*.snap.pending
+logo-variant-*.png
diff --git a/dev/generate-logo.sh b/dev/generate-logo.sh
new file mode 100755
index 000000000..ac2865df5
--- /dev/null
+++ b/dev/generate-logo.sh
@@ -0,0 +1,81 @@
+#!/usr/bin/env bash
+# Generate the Worktrunk logo from the JSON prompt
+#
+# Requirements:
+# - gemimg: uv tool install gemimg (or run with: uvx gemimg)
+# - imagemagick: brew install imagemagick
+#
+# Usage:
+# ./dev/generate-logo.sh
+#
+# This generates multiple variants and you pick the best one.
+# The script applies rounded corners and creates both 1x (512px) and 2x (1024px) versions.
+
+set -euo pipefail
+
+cd "$(dirname "$0")/.."
+
+PROMPT_FILE="dev/logo-prompt.json"
+OUTPUT_DIR="."
+SIZE_1X=512
+SIZE_2X=1024
+CORNER_RADIUS_1X=48
+CORNER_RADIUS_2X=96
+
+if [[ ! -f "$PROMPT_FILE" ]]; then
+ echo "Error: $PROMPT_FILE not found"
+ exit 1
+fi
+
+if ! command -v gemimg &> /dev/null; then
+ echo "Error: gemimg not found. Install with: uv tool install gemimg"
+ exit 1
+fi
+
+if ! command -v magick &> /dev/null; then
+ echo "Error: imagemagick not found. Install with: brew install imagemagick"
+ exit 1
+fi
+
+echo "Generating 3 logo variants..."
+for i in 1 2 3; do
+ echo " Generating variant $i..."
+ gemimg "$(cat "$PROMPT_FILE")" \
+ --model gemini-3-pro-image-preview \
+ --aspect-ratio 1:1 \
+ -o "$OUTPUT_DIR/logo-variant-$i.png"
+done
+
+echo ""
+echo "Applying rounded corners (1x and 2x versions)..."
+for i in 1 2 3; do
+ # 1x version (512px)
+ magick "$OUTPUT_DIR/logo-variant-$i.png" -resize "${SIZE_1X}x${SIZE_1X}" \
+ \( +clone -alpha extract \
+ -draw "fill black polygon 0,0 0,$CORNER_RADIUS_1X $CORNER_RADIUS_1X,0 fill white circle $CORNER_RADIUS_1X,$CORNER_RADIUS_1X $CORNER_RADIUS_1X,0" \
+ \( +clone -flip \) -compose Multiply -composite \
+ \( +clone -flop \) -compose Multiply -composite \
+ \) -alpha off -compose CopyOpacity -composite \
+ "$OUTPUT_DIR/logo-variant-$i-rounded.png"
+
+ # 2x version (1024px)
+ magick "$OUTPUT_DIR/logo-variant-$i.png" -resize "${SIZE_2X}x${SIZE_2X}" \
+ \( +clone -alpha extract \
+ -draw "fill black polygon 0,0 0,$CORNER_RADIUS_2X $CORNER_RADIUS_2X,0 fill white circle $CORNER_RADIUS_2X,$CORNER_RADIUS_2X $CORNER_RADIUS_2X,0" \
+ \( +clone -flip \) -compose Multiply -composite \
+ \( +clone -flop \) -compose Multiply -composite \
+ \) -alpha off -compose CopyOpacity -composite \
+ "$OUTPUT_DIR/[email protected]"
+done
+
+echo ""
+echo "Generated files:"
+ls -la "$OUTPUT_DIR"/logo-variant-*.png
+
+echo ""
+echo "Review the *-rounded.png variants and copy the best one:"
+echo " cp logo-variant-N-rounded.png docs/static/logo.png"
+echo " cp [email protected] docs/static/[email protected]"
+echo ""
+echo "Then clean up:"
+echo " rm logo-variant-*.png"
diff --git a/dev/logo-prompt.json b/dev/logo-prompt.json
new file mode 100644
index 000000000..df9229e4d
--- /dev/null
+++ b/dev/logo-prompt.json
@@ -0,0 +1,85 @@
+{
+ "image_type": "hand_drawn_sketch",
+ "medium": "colored_pencil",
+ "style_descriptors": {
+ "color_palette": ["deep indigo blue"],
+ "texture": "heavy grain, visible pencil strokes with uneven pressure, creating a textured, slightly waxy fill",
+ "line_quality": "organic, slightly imperfect, sketched, thick (approx 4-6mm stroke width), consistent density",
+ "background": "CRITICAL: The background MUST be perfectly uniform, flat, solid white (#FFFFFF) with ZERO variation, NO texture, NO grain, NO gradients, NO shadows, NO vignetting - just a completely flat uniform white that is identical in every pixel",
+ "stroke_style": "hand-drawn technical diagram, precise start and end points"
+ },
+ "subject_matter": {
+ "description": "A symmetrical abstract graph structure centered on a square canvas. It resembles a stylized trident or a branching tree. It is strictly defined by exactly 7 nodes and exactly 6 connecting lines.",
+ "spatial_definition": {
+ "aspect_ratio": {
+ "overall_target": "Square canvas (1:1)",
+ "grid_system": "Cartesian grid centered at (0,0). Y-axis is vertical, X-axis is horizontal."
+ },
+ "nodes": {
+ "count": 7,
+ "appearance": "Solid blue circular nodes, approx 0.6 units diameter, filled with dense scribbled pencil texture.",
+ "list": [
+ { "id": "n1_root", "grid_location": {"x": 0, "y": -5}, "role": "Root Node (Bottom)" },
+ { "id": "n2_hub", "grid_location": {"x": 0, "y": 0}, "role": "Central Junction (Hub)" },
+ { "id": "n3_left_elbow", "grid_location": {"x": -2, "y": 0}, "role": "Left Crossbar End" },
+ { "id": "n4_right_elbow", "grid_location": {"x": 2, "y": 0}, "role": "Right Crossbar End" },
+ { "id": "n5_top_center", "grid_location": {"x": 0, "y": 5}, "role": "Top Center Tip" },
+ { "id": "n6_top_left", "grid_location": {"x": -3.5, "y": 5}, "role": "Top Left Tip" },
+ { "id": "n7_top_right", "grid_location": {"x": 3.5, "y": 5}, "role": "Top Right Tip" }
+ ]
+ },
+ "edges": {
+ "strict_count": 6,
+ "note": "Connect ONLY the specific coordinates listed below. Do not assume any other connections.",
+ "connections": [
+ {
+ "id": "edge_1_trunk",
+ "source": "n1_root",
+ "target": "n2_hub",
+ "vector_description": "Vertical line starting at (0, -5) and ending at (0, 0)."
+ },
+ {
+ "id": "edge_2_left_arm",
+ "source": "n3_left_elbow",
+ "target": "n2_hub",
+ "vector_description": "Horizontal line starting at (-2, 0) and ending at (0, 0)."
+ },
+ {
+ "id": "edge_3_right_arm",
+ "source": "n2_hub",
+ "target": "n4_right_elbow",
+ "vector_description": "Horizontal line starting at (0, 0) and ending at (2, 0)."
+ },
+ {
+ "id": "edge_4_center_stem",
+ "source": "n2_hub",
+ "target": "n5_top_center",
+ "vector_description": "Vertical line starting at (0, 0) and ending at (0, 5). This line passes between the other two upper stems without touching them."
+ },
+ {
+ "id": "edge_5_left_stem",
+ "source": "n3_left_elbow",
+ "target": "n6_top_left",
+ "vector_description": "Steep diagonal line starting at (-2, 0) and angling outwards to (-3.5, 5)."
+ },
+ {
+ "id": "edge_6_right_stem",
+ "source": "n4_right_elbow",
+ "target": "n7_top_right",
+ "vector_description": "Steep diagonal line starting at (2, 0) and angling outwards to (3.5, 5)."
+ }
+ ]
+ },
+ "negative_constraints": {
+ "CRITICAL_AVOIDANCE": "The structure must NOT form triangles. The three upward stems are independent.",
+ "forbidden_vectors": [
+ "NO LINE from (-2, 0) to (0, 5)",
+ "NO LINE from (2, 0) to (0, 5)",
+ "NO LINE from (-3.5, 5) to (0, 5)",
+ "NO LINE from (3.5, 5) to (0, 5)"
+ ]
+ }
+ }
+ },
+ "annotations_present": false
+}
diff --git a/docs/config.toml b/docs/config.toml
index ed125fe56..f42835945 100644
--- a/docs/config.toml
+++ b/docs/config.toml
@@ -14,7 +14,7 @@ error_on_missing_highlight = true
[extra]
juice_logo_name = "Worktrunk"
-juice_logo_path = "logo.svg"
+juice_logo_path = "logo.png"
rust_crate = "worktrunk"
github_repo = "max-sixty/worktrunk"
site_description = "CLI for Git worktree management, designed for parallel AI agent workflows."
diff --git a/docs/sass/custom.scss b/docs/sass/custom.scss
index 5508044d0..fa4ff702c 100644
--- a/docs/sass/custom.scss
+++ b/docs/sass/custom.scss
@@ -98,6 +98,12 @@ header {
font-weight: 600;
font-size: 1.25rem;
color: var(--wt-color-text);
+
+ img {
+ width: 44px;
+ height: 44px;
+ object-fit: contain;
+ }
}
// Navigation
@@ -513,6 +519,8 @@ footer {
.hero-image {
max-height: 55vh;
width: auto;
+ aspect-ratio: 1;
+ object-fit: contain;
flex-shrink: 1;
}
diff --git a/docs/static/favicon.svg b/docs/static/favicon.svg
index f9cc81ed4..fdaeb97a5 100644
--- a/docs/static/favicon.svg
+++ b/docs/static/favicon.svg
@@ -1,10 +1,25 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32">
- <rect width="32" height="32" rx="4" fill="#1a1a2e"/>
- <g fill="#00d4aa">
- <rect x="14" y="16" width="4" height="10" rx="1"/>
- <rect x="9" y="11" width="14" height="3" rx="1"/>
- <rect x="11" y="7" width="10" height="2" rx="1"/>
- <circle cx="7" cy="12.5" r="1.5"/>
- <circle cx="25" cy="12.5" r="1.5"/>
+ <rect width="32" height="32" rx="6" fill="#fff"/>
+ <g stroke="#3730a3" stroke-width="2.5" stroke-linecap="round" fill="none">
+ <!-- Trunk: bottom to hub -->
+ <line x1="16" y1="27" x2="16" y2="16"/>
+ <!-- Crossbar -->
+ <line x1="10" y1="16" x2="22" y2="16"/>
+ <!-- Center stem -->
+ <line x1="16" y1="16" x2="16" y2="5"/>
+ <!-- Left stem -->
+ <line x1="10" y1="16" x2="6" y2="5"/>
+ <!-- Right stem -->
+ <line x1="22" y1="16" x2="26" y2="5"/>
+ </g>
+ <g fill="#3730a3">
+ <!-- Nodes -->
+ <circle cx="16" cy="27" r="2.5"/>
+ <circle cx="16" cy="16" r="2.5"/>
+ <circle cx="10" cy="16" r="2.5"/>
+ <circle cx="22" cy="16" r="2.5"/>
+ <circle cx="16" cy="5" r="2.5"/>
+ <circle cx="6" cy="5" r="2.5"/>
+ <circle cx="26" cy="5" r="2.5"/>
</g>
</svg>
diff --git a/docs/static/logo.png b/docs/static/logo.png
new file mode 100644
index 000000000..a7f94d2fc
Binary files /dev/null and b/docs/static/logo.png differ
diff --git a/docs/static/logo.svg b/docs/static/logo.svg
deleted file mode 100644
index a6a2ae8cd..000000000
--- a/docs/static/logo.svg
+++ /dev/null
@@ -1,16 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100">
- <rect width="100" height="100" rx="12" fill="#1a1a2e"/>
- <g fill="#00d4aa">
- <!-- Tree trunk -->
- <rect x="45" y="50" width="10" height="30" rx="2"/>
- <!-- Branches -->
- <rect x="30" y="35" width="40" height="8" rx="2"/>
- <rect x="35" y="25" width="30" height="6" rx="2"/>
- <rect x="40" y="17" width="20" height="5" rx="2"/>
- <!-- Work indicators -->
- <circle cx="25" cy="39" r="4"/>
- <circle cx="75" cy="39" r="4"/>
- <circle cx="30" cy="28" r="3"/>
- <circle cx="70" cy="28" r="3"/>
- </g>
-</svg>
diff --git a/docs/static/[email protected] b/docs/static/[email protected]
new file mode 100644
index 000000000..846cf7e0c
Binary files /dev/null and b/docs/static/[email protected] differ
diff --git a/docs/templates/base.html b/docs/templates/base.html
index 0c80b8b6c..83584625b 100644
--- a/docs/templates/base.html
+++ b/docs/templates/base.html
@@ -8,7 +8,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
-<link rel="preload" href="{{ get_url(path='logo.svg') }}" as="image" type="image/svg+xml">
+<link rel="preload" href="{{ get_url(path='logo.png') }}" as="image" type="image/png">
{% endblock fonts %}
{% block head %}
@@ -71,7 +71,7 @@
<header>
<a href="/">
<div class="logo">
- <img src="{{ get_url(path=config.extra.juice_logo_path) }}" alt="logo">
+ <img src="{{ get_url(path=config.extra.juice_logo_path) }}" srcset="{{ get_url(path='logo.png') }} 1x, {{ get_url(path='[email protected]') }} 2x" alt="logo">
{{ config.extra.juice_logo_name }}
</div>
</a>
diff --git a/docs/templates/index.html b/docs/templates/index.html
index 07f64e43d..9ee3843f6 100644
--- a/docs/templates/index.html
+++ b/docs/templates/index.html
@@ -85,7 +85,7 @@
aria-label="Star max-sixty/worktrunk on GitHub">Star</a>
</div>
</section>
-<img class="hero-image" style="width: 40%" src="{{ get_url(path='logo.svg') }}" alt="Worktrunk logo">
+<img class="hero-image" src="{{ get_url(path='logo.png') }}" srcset="{{ get_url(path='logo.png') }} 1x, {{ get_url(path='[email protected]') }} 2x" alt="Worktrunk logo">
<button class="explore-more text" onclick="window.scrollTo({top: document.querySelector('main').offsetTop - document.querySelector('header').offsetHeight, behavior: 'smooth'})" aria-label="Scroll to content">
Explore More ⇩
</button>