themes revisit

This commit is contained in:
nvaldez
2026-09-30 08:53:47 +02:00
parent 32920d1736
commit 3471ff9fe6
3 changed files with 183 additions and 138 deletions
+9 -7
View File
@@ -1,6 +1,6 @@
---
name: Fiona-Assistant Specification
version: 0.87.0
version: 0.87.1
title: Project Spec Sheet
created: 2026-09-23
updated: 2026-09-30
@@ -868,12 +868,14 @@ so a thin line stays visible. Hover, click, and buttons are one
teal, the complement of the amber. Pages are circles and
external links are clouds. `night-sky` draws
circle pages and star external links on a dark field.
`grayscale` runs white to black in
light mode and gray to white in its `dark` object. `dark` is that
same gray scale on a black field, with a wider step from dim nodes
to white. `professional` is a light boardroom palette: slate to
navy nodes, hairline navy stroke, navy buttons, and a quiet
radius.
`grayscale` runs charcoal to near-black on a light field, with
a dark stroke so the pale end still stands off the canvas. Its
`dark` object is a gray night: medium gray through white on a
charcoal field, not black. `dark` is a blue-slate night. Nodes
run from slate through silver to white. The page and the canvas
stay blue-gray, not black. `professional` is a light boardroom
palette: pale blue nodes, a soft blue stroke, light blue
buttons, and a quiet radius.
| Key | Meaning |
| --- | --- |
@@ -109,190 +109,221 @@
}
},
"grayscale": {
"background": "#f2f2f2",
"graph_background": "#ffffff",
"text_color": "#222222",
"background": "#e6e6e6",
"graph_background": "#f4f4f4",
"font_family": "Arial, sans-serif",
"text_color": "#141414",
"node_colors": {
"low": "#ffffff",
"mid": "#888888",
"high": "#000000"
"low": "#5a5a5a",
"mid": "#2e2e2e",
"high": "#0d0d0d"
},
"node_stroke": "#141414",
"node_radius": {
"min": 5,
"max": 36
},
"node_stroke": "#333333",
"edge_colors": {
"low": "#d9d9d9",
"mid": "#7a7a7a",
"high": "#1a1a1a"
"low": "#8f8f8f",
"mid": "#3d3d3d",
"high": "#141414"
},
"edge_width": 1,
"highlight": {
"node_color": "#444444",
"edge_color": "#222222"
"node_color": "#000000",
"edge_color": "#1a1a1a",
"size_multiplier": 1.4
},
"clicked": {
"node_color": "#111111"
"node_color": "#000000"
},
"buttons": {
"background": "#444444",
"background": "#2a2a2a",
"text": "#ffffff",
"hover": "#222222",
"disabled": "#aaaaaa"
"hover": "#111111",
"disabled": "#b0b0b0"
},
"card": {
"background": "#ffffff",
"border": "#cccccc"
"border": "#8a8a8a"
},
"subtitle_color": "#222222",
"shapes": {
"page": "circle",
"external": "cloud"
},
"subtitle_color": "#141414",
"subtitle": {
"min_radius": 0.8,
"padding": 2,
"size": 6,
"on_top": true,
"outline": false,
"outline_color": "#ffffff",
"outline_color": "#f4f4f4",
"outline_width": 3
},
"dark": {
"background": "#111111",
"graph_background": "#1b1b1b",
"text_color": "#eeeeee",
"background": "#2c2c2c",
"graph_background": "#3a3a3a",
"font_family": "Arial, sans-serif",
"text_color": "#f5f5f5",
"node_colors": {
"low": "#6a6a6a",
"mid": "#b5b5b5",
"low": "#8d8d8d",
"mid": "#d0d0d0",
"high": "#ffffff"
},
"node_stroke": "none",
"node_radius": {
"min": 5,
"max": 36
},
"edge_colors": {
"low": "#555555",
"mid": "#aaaaaa",
"low": "#6e6e6e",
"mid": "#c4c4c4",
"high": "#ffffff"
},
"edge_width": 1,
"highlight": {
"node_color": "#ffffff",
"edge_color": "#dddddd"
"edge_color": "#ffffff",
"size_multiplier": 1.4
},
"clicked": {
"node_color": "#ffffff"
},
"buttons": {
"background": "#e0e0e0",
"text": "#111111",
"background": "#e8e8e8",
"text": "#1a1a1a",
"hover": "#ffffff",
"disabled": "#555555"
"disabled": "#5a5a5a"
},
"card": {
"background": "#222222",
"border": "#555555"
"background": "#454545",
"border": "#9a9a9a"
},
"subtitle_color": "#eeeeee",
"shapes": {
"page": "circle",
"external": "cloud"
},
"subtitle_color": "#f5f5f5",
"subtitle": {
"min_radius": 0.5,
"padding": 2,
"size": 8,
"on_top": true,
"outline": true,
"outline_color": "#111111",
"outline_color": "#2c2c2c",
"outline_width": 3
}
}
},
"dark": {
"background": "#000000",
"graph_background": "#050505",
"text_color": "#ffffff",
"background": "#1e2836",
"graph_background": "#283448",
"font_family": "Segoe UI, sans-serif",
"text_color": "#e7eef8",
"node_colors": {
"low": "#3f3f3f",
"mid": "#bfbfbf",
"high": "#ffffff"
"low": "#7d8da3",
"mid": "#b7c6da",
"high": "#f7fbff"
},
"node_stroke": "#ffffff",
"edge_colors": {
"low": "#666666",
"mid": "#b3b3b3",
"high": "#ffffff"
},
"edge_width": 1,
"highlight": {
"node_color": "#ffffff",
"edge_color": "#ffffff"
},
"clicked": {
"node_color": "#ffffff"
},
"buttons": {
"background": "#ffffff",
"text": "#000000",
"hover": "#e6e6e6",
"disabled": "#4d4d4d"
},
"card": {
"background": "#111111",
"border": "#ffffff"
},
"subtitle_color": "#ffffff",
"subtitle": {
"min_radius": 0.8,
"padding": 2,
"size": 6,
"on_top": true,
"outline": false,
"outline_color": "#000000",
"outline_width": 3
}
},
"professional": {
"background": "#eef2f5",
"graph_background": "#ffffff",
"font_family": "Segoe UI, Calibri, Helvetica Neue, Arial, sans-serif",
"text_color": "#1b2838",
"node_colors": {
"low": "#c5ced6",
"mid": "#5b7c99",
"high": "#0b3a66"
},
"node_stroke": "#0b3a66",
"node_stroke": "none",
"node_radius": {
"min": 4,
"max": 26
"max": 24
},
"edge_colors": {
"low": "#d5dde4",
"mid": "#7f96ab",
"high": "#0b3a66"
"low": "#51627a",
"mid": "#8fa3bd",
"high": "#d5e2f2"
},
"edge_width": 1,
"highlight": {
"node_color": "#1a6aa5",
"edge_color": "#0b3a66",
"size_multiplier": 1.15
"node_color": "#f3d48a",
"edge_color": "#9ec5ea",
"size_multiplier": 1.45
},
"clicked": {
"node_color": "#0a2540"
"node_color": "#ffe3a3"
},
"buttons": {
"background": "#0b3a66",
"text": "#ffffff",
"hover": "#082844",
"disabled": "#b7c3ce"
"background": "#3e5674",
"text": "#f4f8fc",
"hover": "#527094",
"disabled": "#2a3648"
},
"card": {
"background": "#ffffff",
"border": "#d5dde4"
"background": "#31445c",
"border": "#5c7390"
},
"shapes": {
"page": "circle",
"external": "cloud"
},
"subtitle_color": "#1b2838",
"subtitle_color": "#e7eef8",
"subtitle": {
"min_radius": 0.8,
"padding": 2,
"size": 6,
"on_top": true,
"outline": false,
"outline_color": "#ffffff",
"outline_color": "#283448",
"outline_width": 3
}
},
"professional": {
"background": "#f7fafc",
"graph_background": "#fcfdfe",
"font_family": "Segoe UI, Calibri, Helvetica Neue, Arial, sans-serif",
"text_color": "#4a5d70",
"node_colors": {
"low": "#e4eef4",
"mid": "#a9c6d8",
"high": "#7eabc4"
},
"node_stroke": "#9bb8cb",
"node_radius": {
"min": 4,
"max": 26
},
"edge_colors": {
"low": "#e7f0f5",
"mid": "#b7d0de",
"high": "#8eb4c9"
},
"edge_width": 1,
"highlight": {
"node_color": "#6aa3c0",
"edge_color": "#7eabc4",
"size_multiplier": 1.15
},
"clicked": {
"node_color": "#5b93b0"
},
"buttons": {
"background": "#8eb4c9",
"text": "#ffffff",
"hover": "#7aa6bd",
"disabled": "#dce7ee"
},
"card": {
"background": "#ffffff",
"border": "#e6eef3"
},
"shapes": {
"page": "circle",
"external": "cloud"
},
"subtitle_color": "#4a5d70",
"subtitle": {
"min_radius": 0.8,
"padding": 2,
"size": 6,
"on_top": true,
"outline": false,
"outline_color": "#fcfdfe",
"outline_width": 3
}
}
}
}
+41 -29
View File
@@ -138,55 +138,67 @@ class TestConstellationThemes:
assert themes["night-sky"]["background"] == "#070b14"
assert themes["night-sky"]["node_radius"]["min"] == 3
assert themes["night-sky"]["node_radius"]["max"] == 20
assert themes["grayscale"]["node_colors"]["low"] == "#ffffff"
assert themes["grayscale"]["node_colors"]["high"] == "#000000"
assert themes["grayscale"]["node_colors"]["low"] == "#5a5a5a"
assert themes["grayscale"]["node_colors"]["high"] == "#0d0d0d"
assert themes["grayscale"]["node_stroke"] == "#141414"
assert themes["grayscale"]["font_family"] == themes["colorful"]["font_family"]
assert themes["grayscale"]["shapes"]["page"] == "circle"
assert themes["grayscale"]["dark"]["node_colors"]["low"] == "#6a6a6a"
assert themes["grayscale"]["shapes"]["external"] == "cloud"
assert themes["grayscale"]["node_radius"]["min"] == 5
assert themes["grayscale"]["highlight"]["size_multiplier"] == 1.4
assert themes["grayscale"]["dark"]["background"] == "#2c2c2c"
assert themes["grayscale"]["dark"]["node_colors"]["low"] == "#8d8d8d"
assert themes["grayscale"]["dark"]["node_colors"]["high"] == "#ffffff"
assert themes["grayscale"]["dark"]["font_family"] == "Arial, sans-serif"
assert themes["grayscale"]["dark"]["shapes"]["external"] == "cloud"
assert themes["grayscale"]["dark"]["edge_width"] == 1
def test_dark_theme_is_high_contrast_grayscale(self):
"""The dark theme is grayscale with a wider black-to-white step.
def test_dark_theme_is_a_blue_slate_night(self):
"""The dark theme is a blue-slate night, not a black field.
Generated by AI/LLM: 2026-09-29 - dark theme beside grayscale.
Modified by AI/LLM: 2026-09-30 - night slate instead of black.
"""
themes = load_constellation_themes()
dark = themes["dark"]
assert dark["background"] == "#000000"
assert dark["graph_background"] == "#050505"
assert dark["text_color"] == "#ffffff"
assert dark["node_colors"]["low"] == "#3f3f3f"
assert dark["node_colors"]["high"] == "#ffffff"
assert dark["edge_colors"]["low"] == "#666666"
assert dark["edge_colors"]["high"] == "#ffffff"
assert dark["node_stroke"] == "#ffffff"
assert dark["font_family"] == themes["colorful"]["font_family"]
assert dark["background"] == "#1e2836"
assert dark["graph_background"] == "#283448"
assert dark["text_color"] == "#e7eef8"
assert dark["node_colors"]["low"] == "#7d8da3"
assert dark["node_colors"]["high"] == "#f7fbff"
assert dark["edge_colors"]["low"] == "#51627a"
assert dark["edge_colors"]["high"] == "#d5e2f2"
assert dark["node_stroke"] == "none"
assert dark["font_family"] == "Segoe UI, sans-serif"
assert dark["node_radius"]["max"] == 24
assert dark["highlight"]["size_multiplier"] == 1.45
assert dark["shapes"]["page"] == "circle"
assert dark["shapes"]["external"] == "cloud"
graph = WikiGraph()
graph.add_node("wiki/file1.md")
html = HTMLGraphRenderer(graph).generate_html()
assert "#3f3f3f" in html
assert "#7d8da3" in html
def test_professional_theme_is_a_boardroom_palette(self):
"""The professional theme is a quiet navy boardroom palette.
"""The professional theme is a light boardroom palette.
Generated by AI/LLM: 2026-09-29 - corporate theme for the graph.
Modified by AI/LLM: 2026-09-30 - lighter blue instead of navy.
"""
themes = load_constellation_themes()
theme = themes["professional"]
assert theme["background"] == "#eef2f5"
assert theme["graph_background"] == "#ffffff"
assert theme["text_color"] == "#1b2838"
assert theme["node_colors"]["low"] == "#c5ced6"
assert theme["node_colors"]["mid"] == "#5b7c99"
assert theme["node_colors"]["high"] == "#0b3a66"
assert theme["node_stroke"] == "#0b3a66"
assert theme["edge_colors"]["low"] == "#d5dde4"
assert theme["edge_colors"]["high"] == "#0b3a66"
assert theme["background"] == "#f7fafc"
assert theme["graph_background"] == "#fcfdfe"
assert theme["text_color"] == "#4a5d70"
assert theme["node_colors"]["low"] == "#e4eef4"
assert theme["node_colors"]["mid"] == "#a9c6d8"
assert theme["node_colors"]["high"] == "#7eabc4"
assert theme["node_stroke"] == "#9bb8cb"
assert theme["edge_colors"]["low"] == "#e7f0f5"
assert theme["edge_colors"]["high"] == "#8eb4c9"
assert theme["edge_width"] == 1
assert theme["buttons"]["background"] == "#0b3a66"
assert theme["buttons"]["background"] == "#8eb4c9"
assert theme["buttons"]["text"] == "#ffffff"
assert theme["shapes"]["page"] == "circle"
assert theme["shapes"]["external"] == "cloud"
@@ -196,7 +208,7 @@ class TestConstellationThemes:
graph = WikiGraph()
graph.add_node("wiki/file1.md")
html = HTMLGraphRenderer(graph).generate_html()
assert "#0b3a66" in html
assert "#7eabc4" in html
assert "function edgeWidth" in html
assert "theme.edge_width" in html
@@ -1158,8 +1170,8 @@ class TestHTMLGraphRenderer:
assert grayscale["on_top"] is colorful["on_top"]
assert grayscale["outline"] is colorful["outline"]
assert themes["night-sky"]["subtitle"]["outline_color"] == "#0b1020"
assert themes["dark"]["subtitle"]["outline_color"] == "#000000"
assert themes["grayscale"]["dark"]["subtitle"]["outline_color"] == "#111111"
assert themes["dark"]["subtitle"]["outline_color"] == "#283448"
assert themes["grayscale"]["dark"]["subtitle"]["outline_color"] == "#2c2c2c"
graph = WikiGraph()
graph.add_node("wiki/file1.md")