AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
feat(diagram): keep architecture fills pale
tianma-if857534e25bc1
diff --git a/packages/shared/src/diagram-architecture-style.test.mjs b/packages/shared/src/diagram-architecture-style.test.mjsindex dc10ce48..c08e82f6 100644--- a/packages/shared/src/diagram-architecture-style.test.mjs+++ b/packages/shared/src/diagram-architecture-style.test.mjs@@ -35,6 +35,14 @@ describe("architecture semantic paint", () => {}});+ test("keeps light fills pale instead of saturated chips", () => {+ const light = resolveArchitectureSurface("light");+ for (const shape of ARCHITECTURE_COMPONENT_SHAPES) {+ expect(luminance(light.nodes[shape].fill)).toBeGreaterThan(0.75);+ expect(luminance(light.nodes[shape].fill)).toBeLessThan(luminance("#FFFFFF"));+ }+ });+test("preserves hue on dark cards instead of sharing one fill", () => {const dark = resolveArchitectureSurface("dark");const light = resolveArchitectureSurface("light");diff --git a/packages/shared/src/diagram-architecture-style.ts b/packages/shared/src/diagram-architecture-style.tsindex aa54b1b7..9f117fe2 100644--- a/packages/shared/src/diagram-architecture-style.ts+++ b/packages/shared/src/diagram-architecture-style.ts@@ -79,14 +79,14 @@ export const ARCHITECTURE_SURFACES: Record<ArchitectureAppearance, ArchitectureSboundaryStroke: "#7B8F86",boundaryText: "#1C3D31",nodes: {- client: { fill: "#C9E7EE", stroke: "#0A87A6", text: "#134F5D", accent: "#0891B2", iconFrame: "#A1D5E2" },- frontend: { fill: "#CFDDFB", stroke: "#245DDA", text: "#203A76", accent: "#2563EB", iconFrame: "#ACC4F7" },- service: { fill: "#CCEADF", stroke: "#169567", text: "#19563E", accent: "#16A06E", iconFrame: "#A6DBC8" },- database: { fill: "#E2D4FB", stroke: "#7437DC", text: "#472877", accent: "#7C3AED", iconFrame: "#CDB4F8" },- storage: { fill: "#F7E1C8", stroke: "#CA6F07", text: "#71430F", accent: "#D97706", iconFrame: "#F1CBA0" },- queue: { fill: "#FADACA", stroke: "#DA530D", text: "#793512", accent: "#EA580C", iconFrame: "#F7C0A3" },- security: { fill: "#F8CDD7", stroke: "#D11D44", text: "#751B2D", accent: "#E11D48", iconFrame: "#F4A9B9" },- external: { fill: "#DDE0E5", stroke: "#5E6D82", text: "#3C424B", accent: "#64748B", iconFrame: "#C4CAD3" },+ client: { fill: "#E1F2F6", stroke: "#0A87A6", text: "#134F5D", accent: "#0891B2", iconFrame: "#CEE9F0" },+ frontend: { fill: "#E5ECFD", stroke: "#245DDA", text: "#203A76", accent: "#2563EB", iconFrame: "#D3E0FB" },+ service: { fill: "#E3F4EE", stroke: "#169567", text: "#19563E", accent: "#16A06E", iconFrame: "#D0ECE2" },+ database: { fill: "#EFE7FD", stroke: "#7437DC", text: "#472877", accent: "#7C3AED", iconFrame: "#E5D8FB" },+ storage: { fill: "#FAEFE1", stroke: "#CA6F07", text: "#71430F", accent: "#D97706", iconFrame: "#F7E4CD" },+ queue: { fill: "#FCEBE2", stroke: "#DA530D", text: "#793512", accent: "#EA580C", iconFrame: "#FBDECE" },+ security: { fill: "#FBE4E9", stroke: "#D11D44", text: "#751B2D", accent: "#E11D48", iconFrame: "#F9D2DA" },+ external: { fill: "#ECEEF1", stroke: "#5E6D82", text: "#3C424B", accent: "#64748B", iconFrame: "#E0E3E8" },},edges: {dependency: { stroke: "#64748B", strokeWidth: 1.2, markerWidth: 7, markerHeight: 5 },