Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

serverStyles.ts

35 lines907 Bytes

1// ============================================================================
2// Shared Server Styles (must be defined here since this runs on server)
3// These styles are used by server components to render with consistent styling
4// ============================================================================
5​
6export const serverBox = {
7 backgroundColor: '#e0f2fe',
8 border: '2px solid #0284c7',
9 borderRadius: '8px',
10 padding: '16px',
12​
13export const serverBadge = {
14 display: 'inline-block',
15 backgroundColor: '#0284c7',
16 color: 'white',
17 padding: '2px 8px',
18 borderRadius: '4px',
19 fontSize: '11px',
20 fontWeight: 'bold' as const,
21 letterSpacing: '0.5px',
23​
24export const serverHeader = {
25 display: 'flex',
26 justifyContent: 'space-between',
27 alignItems: 'center',
28 marginBottom: '12px',
30​
31export const timestamp = {
32 fontSize: '11px',
33 color: '#64748b',
34 fontFamily: 'monospace',