Skip to content

Commit 3d75d06

Browse files
Refine OpenChoreo theme with modern minimal design
Updates theme styling for improved readability, spacing, and visual consistency across home page, catalog, and sidebar with a modern minimal aesthetic. Color palette improvements: - Softer primary blue (#5567d5 → #6c7fd8) for reduced saturation - Enhanced text contrast for WCAG AA compliance - Expanded gray scale (50-400) for better color relationships - Lighter borders and backgrounds for cleaner look Typography enhancements: - Refined heading sizes with improved letter-spacing - Better line-height for body text (1.6/1.5) - Consistent font weights across components Component updates: - Header: reduced height (98px → 72px), subtle gradient - Cards: increased border-radius (8px → 12px), generous padding (24px) - Buttons: improved shadows, transitions, and hover states - Tables: increased cell padding, lighter borders - Search bar: enhanced focus states, subtle elevation - Badges: translucent backgrounds with softer styling - Sidebar: improved spacing and hover interactions Layout spacing: - Increased widget gaps (24px → 32px) for breathing room - More generous card content padding throughout - Consistent spacing scale based on 8px increments
1 parent 21da571 commit 3d75d06

File tree

2 files changed

+183
-110
lines changed

2 files changed

+183
-110
lines changed

packages/app/src/components/Home/styles.ts

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,24 @@ export const useStyles = makeStyles(theme => ({
88
width: '100%',
99
},
1010
searchPaper: {
11-
padding: theme.spacing(1, 2),
11+
padding: theme.spacing(1.5, 3), // More generous padding
1212
display: 'flex',
1313
alignItems: 'center',
1414
width: theme.spacing(100),
1515
backgroundColor: theme.palette.background.paper,
16-
border: `1px solid ${theme.palette.divider}`,
17-
borderRadius: theme.spacing(20),
16+
border: `2px solid ${theme.palette.grey[200]}`, // Slightly thicker, lighter border
17+
borderRadius: theme.spacing(6), // Less extreme rounding for modern look
1818
cursor: 'pointer',
1919
transition: 'all 0.2s ease-in-out',
20+
boxShadow: '0 1px 3px 0 rgba(0, 0, 0, 0.05)', // Subtle shadow
2021
'&:hover': {
21-
borderColor: theme.palette.primary.main,
22-
boxShadow: theme.shadows[2],
22+
borderColor: theme.palette.primary.light,
23+
boxShadow: '0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04)',
24+
transform: 'translateY(-1px)',
2325
},
2426
'&:focus-within': {
2527
borderColor: theme.palette.primary.main,
26-
boxShadow: `0 0 0 2px ${theme.palette.primary.main}25`,
28+
boxShadow: `0 0 0 3px ${theme.palette.primary.main}20, 0 4px 6px -1px rgba(0, 0, 0, 0.08)`,
2729
},
2830
},
2931
searchPlaceholder: {
@@ -82,8 +84,8 @@ export const useStyles = makeStyles(theme => ({
8284
},
8385
widgetContainer: {
8486
display: 'flex',
85-
gap: theme.spacing(3),
86-
marginTop: theme.spacing(3),
87+
gap: theme.spacing(4), // Increased from 3 to 4 for more breathing room
88+
marginTop: theme.spacing(4), // Increased from 3 to 4
8789
flexWrap: 'wrap',
8890
'& > *': {
8991
flex: '1 1 300px',
@@ -103,8 +105,8 @@ export const useStyles = makeStyles(theme => ({
103105
sidebarSection: {
104106
display: 'flex',
105107
flexDirection: 'column',
106-
gap: theme.spacing(3),
107-
marginTop: theme.spacing(3),
108+
gap: theme.spacing(4), // Increased from 3 to 4 for more spacing
109+
marginTop: theme.spacing(4), // Increased from 3 to 4
108110
},
109111
sidebarTitle: {
110112
marginBottom: theme.spacing(1),
@@ -143,7 +145,7 @@ export const useStyles = makeStyles(theme => ({
143145
},
144146
quickActionCardContent: {
145147
width: '100%',
146-
padding: theme.spacing(3),
148+
padding: theme.spacing(4), // Increased from 3 to 4 for more internal spacing
147149
},
148150
quickActionHeader: {
149151
display: 'flex',
@@ -175,11 +177,13 @@ export const useStyles = makeStyles(theme => ({
175177
},
176178
groupBadge: {
177179
display: 'inline-block',
178-
padding: '4px 12px',
180+
padding: '6px 14px', // More generous padding
179181
margin: '4px',
180-
borderRadius: '12px',
181-
backgroundColor: theme.palette.primary.main,
182-
color: theme.palette.primary.contrastText,
182+
borderRadius: '16px', // More rounded
183+
backgroundColor: theme.palette.primary.light + '30', // Softer, translucent background
184+
color: theme.palette.primary.dark,
183185
fontSize: '0.875rem',
186+
fontWeight: 500,
187+
border: `1px solid ${theme.palette.primary.light}60`,
184188
},
185189
}));

0 commit comments

Comments
 (0)