Skip to content

Commit e314480

Browse files
committed
feat(ui-design-system): add layout design patterns and content wrapper guidelines
1 parent 7db3017 commit e314480

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

docs/development/frontend/ui-design-system.mdx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,48 @@ DeployStack implements intelligent link styling with automatic teal coloring for
7777
4. **Button Links**: Include styling classes (`bg-*`, `rounded-*`) to maintain button appearance
7878
5. **Focus States**: Ensure all interactive elements have visible focus indicators using the teal color scheme
7979

80+
## Layout Design Patterns
81+
82+
### Content Wrapper Pattern
83+
84+
DeployStack follows a **mandatory content wrapper pattern** for all tabbed content and detail pages. This pattern ensures visual consistency and proper content hierarchy throughout the application.
85+
86+
#### Design Requirements
87+
88+
The content wrapper pattern is **required** for:
89+
- Team management pages
90+
- MCP server installation pages
91+
- Settings and configuration pages
92+
- Any page using tabbed content with `DsTabs`
93+
- Detail views that need elevated content presentation
94+
95+
#### Implementation
96+
97+
Use the `ContentWrapper` component for all qualifying pages:
98+
99+
```vue
100+
<ContentWrapper>
101+
<YourTabContent />
102+
</ContentWrapper>
103+
```
104+
105+
The wrapper provides:
106+
- Gray background container (`bg-muted/50`)
107+
- Responsive max-width constraints
108+
- White card elevation with proper spacing
109+
- Consistent vertical rhythm
110+
111+
For complete implementation details, see the component source code at `services/frontend/src/components/ContentWrapper.vue`.
112+
113+
#### Visual Hierarchy
114+
115+
This pattern creates a three-tier visual hierarchy:
116+
1. **Page background** - Default dashboard background
117+
2. **Content container** - Gray muted background wrapper
118+
3. **Content card** - White elevated card with content
119+
120+
This hierarchy is a **design system requirement** and must be followed consistently across all applicable pages.
121+
80122
## Data Tables
81123

82124
For data table implementation, see the dedicated [Table Design System](/development/frontend/ui-design-system-table) guide.

0 commit comments

Comments
 (0)