Trellis Visual Guidance
Quick Rules (Checklist)
- •Use the existing Trellis brand palette; do not introduce new core colors
- •Use green styling for dimensions:
bg-green-200,text-green-900, iconlucide:list - •Use blue styling for facts:
bg-blue-200,text-blue-900, iconlucide:bar-chart-3 - •Keep dimension/fact colors consistent across canvas, annotations, badges, and lists
- •Prefer Tailwind utility classes over custom CSS for UI styling
- •Avoid introducing new color tokens unless required by an existing design system
Scope
Apply these rules to all UI changes in the app, especially:
- •Canvas and lineage views
- •Node badges, labels, and annotations
- •Lists, cards, and detail panels where entity types are shown
Brand Colors
The Trellis brand color is primary (Tailwind teal). Use primary-600 as the main action color, with primary-50/100/500/700 for states and emphasis:
- •Primary actions:
bg-primary-600 text-white(hover:bg-primary-700) - •Subtle highlights:
bg-primary-50 text-primary-700 border-primary-300 - •Focus rings:
focus:ring-primary-500 focus:border-primary-500Keep the neutral scaffolding in slate grays (grayfrom Tailwind slate). Usedanger(rose) andsuccess(emerald) only for semantic status.
Highlighting and Selection
Use the primary teal for selection and interactive emphasis:
- •Selected rows/cards:
bg-primary-50 border-primary-300 text-primary-700 - •Active tabs/links:
text-primary-600(hover:text-primary-700) - •Hover states: prefer
hover:bg-gray-50for neutral surfaces; usehover:bg-primary-50only when reinforcing selection - •Toggles/checkboxes:
peer-checked:bg-primary-600withpeer-focus:ring-primary-500
Icon Style
Use simple, outline icons (lucide) to keep the UI lightweight and consistent:
- •Favor 1-color icons that inherit text color
- •Avoid mixed icon styles (filled vs outline) in the same surface
- •Dimension icon:
lucide:list; fact icon:lucide:bar-chart-3 - •Only add new icons when they map cleanly to an entity type or action
Glass Areas (Frosted Surfaces)
Glass surfaces are used sparingly to separate overlays and focus areas:
- •Use translucency and subtle blur (frosted effect), not opaque cards
- •Keep borders light and avoid heavy shadows
- •Ensure text contrast remains readable on glass surfaces