algorithmic-color-pale…
Derive a full UI colour palette algorithmically from one or two brand colours. Darker and lighter variants for interactive states, desaturated greys from the…
When data has both a tabular/list representation and a visual representation, show both simultaneously and keep them synchronized. Clicking a row highlights the corresponding element in the visual view, and vice versa. Applies to maps, diagrams, timelines, and charts that
$ npx -y skills add dembrandt/dembrandt-skills --skill coordinated-data-views --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/coordinated-data-viewsContext preview
The summary Claude sees to decide when to auto-load this skill.
When data has both a tabular/list representation and a visual representation, show both simultaneously and keep them synchronized. Clicking a row highlights the corresponding element in the visual view, and vice versa. Applies to maps, diagrams, timelines, and charts that
name: coordinated-data-views
description: When data has both a tabular/list representation and a visual representation, show both simultaneously and keep them synchronized. Clicking a row highlights the corresponding element in the visual view, and vice versa. Applies to maps, diagrams, timelines, and charts that accompany a data table. Use when designing any UI where data appears in two different representations at once.
metadata:
priority: 6
pathPatterns:
- "components/**"
- "src/components/**"
- "**/*.tsx"
- "**/*.jsx"
- "app/**"
promptSignals:
phrases:
- "map view"
- "chart view"
- "visualization"
- "linked views"
- "coordinated"
- "highlight"
- "synchronize"
- "side by side"
- "table and chart"
- "diagram and list"
retrieval:
aliases:
- coordinated views
- linked views
- chart and table
- map and list
- linked visualization
- synchronized views
- two representations
- dual view
- visual and tabular
intents:
- synchronize a chart with a data table
- link a map to a list
- highlight items across two views
- design a dual-view layout
- coordinate a chart with a table
- keep two views in sync
examples:
- clicking a row should highlight it in the map view
- the map and the list should stay in sync
- show a diagram and a table for the same data
- how should a visual view and a table interact
- the user should be able to select from either the chart or the listSome data has more than one natural representation. A set of locations has both a map and a list. A dependency network has both a diagram and a node table. A dataset has both a chart and a raw table. When both representations are genuinely useful for different tasks, show them simultaneously and keep them synchronized — this is called a coordinated view.
The core rule: **any selection or highlight made in one view is immediately reflected in the other.**
---
Use coordinated views when:
1. The two representations serve different tasks — the table is for finding/scanning; the visual view is for understanding arrangement or relationships 2. Users will frequently move between the two — not just glance at one occasionally 3. The dataset is large enough that the visual view alone doesn't identify individual items, and the table alone doesn't communicate how they relate
Do not add a coordinated view purely for visual richness. If users only ever look at the table and ignore the visual view, it adds complexity without benefit.
---
Selection state is owned by a single shared store, not by either view. Both views read from and write to the same state.
Table row clicked → shared highlight state updated → both views re-render Visual element clicked → shared highlight state updated → both views re-render
**What synchronization covers:**
| Interaction | Effect in table | Effect in visual view | |---|---|---| | Click row | Row highlights | Corresponding element highlighted | | Click visual element | Corresponding row highlighted, scrolled into view | Element highlighted | | Hover row | Subtle row highlight | Subtle element highlight | | Hover visual element | Subtle row highlight | Subtle element highlight | | Clear selection | Row returns to default | Element returns to default |
**Scroll-into-view:** When a visual element is clicked, the table must scroll to bring the corresponding row into view. A row that is highlighted but off-screen is useless.
---
Colour meaning must be identical in both views. If a category is orange in the table badge, it is orange in the visual view. Never use different colour assignments for the same data in different representations.
Define colours centrally:
const CATEGORY_COLORS = {
groupA: 'hsl(24, 80%, 55%)',
groupB: 'hsl(210, 70%, 55%)',
groupC: 'hsl(145, 60%, 45%)',
} as const;Both the table cell renderer and the visual element renderer import from the same source.
A shared legend appears once in the layout — not duplicated in each view.
---
The split between views depends on which is primary:
**Table-primary (exploration, data management):** Table takes 60–70% of the width; visual view is a companion panel on the right or bottom.
**Visual-primary (understanding arrangement and relationships):** Visual view takes 60–70%; table is a supporting panel.
**Equal weight:** A 50/50 split with a draggable divider. Persist the user's preferred split.
┌─────────────────────┬────────────────┐ │ │ │ │ Table (primary) │ Visual view │ │ │ │ └─────────────────────┴────────────────┘
On mobile, show one view at a time with a tab or toggle to switch. Do not attempt to show both on a small screen.
---
Controls that affect only the visual representation belong in the visual view panel, not in the table area.
Common visual-specific controls:
These controls do not affect the table. Do not put them in the table toolbar.
Controls that affect the shared data (filters, time range, category selection) belong outside both views, above or beside the layout, since they affect what appears in both.
---
These are distinct states:
**Highlight (hover):** Transient, shown while the pointer is over an element. Does not persist. Both views show a subtle version (e.g. 50% opacity overlay, or a faint row background). No interaction required to clear it — moving the pointer clea
UX and design-system skills for AI agents. Install once, and your agent knows how to design. --all installs every skill at once. They load only when a prompt needs them, so there is no runtime cost to having them all. Want to pick by hand?
Repo: dembrandt/dembrandt-skills
Derive a full UI colour palette algorithmically from one or two brand colours. Darker and lighter variants for interactive states, desaturated greys from the…
The persistent shell around an application — the top bar, the app launcher, the tenant and environment cue, and in heavy tools a status bar. In an estate of…
Product visuals — hero shots, demos, screenshots, landing-page panels — must reproduce the real product, not a stylised poster of it. Design with real content…
A brand's visual tone — playful or serious, rounded or angular — should be consistent across all UI elements. Shape language in typography, border-radius, and…
Every interactive element needs a complete set of visual states — rest, hover, active/pressed, focus, disabled, and loading. States should be derived…
Rebuild an existing web page 1:1 from measurement instead of by eye — into Figma, Penpot, or code. Captures the rendered page, the raw source and the computed…