Skip to content

Commit d797ed1

Browse files
committed
Use more of the style variables in customer-segmentation-server
1 parent 9888c6a commit d797ed1

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

examples/customer-segmentation-server/src/mcp-app.css

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,19 @@
1616
--color-border-primary: light-dark(#e5e7eb, #374151);
1717
--color-border-secondary: light-dark(#d1d5db, #4b5563);
1818

19-
/* Accent colors */
20-
--color-accent-info: light-dark(#2563eb, #3b82f6);
19+
/* Ring colors */
20+
--color-ring-info: light-dark(#2563eb, #3b82f6);
2121

2222
/* Border radius */
2323
--border-radius-sm: 6px;
2424
--border-radius-md: 8px;
25+
--border-radius-full: 9999px;
26+
27+
/* Border width */
28+
--border-width-regular: 1px;
29+
30+
/* Shadows */
31+
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
2532

2633
/* App-specific colors (not from host) */
2734
--color-enterprise: light-dark(#1e40af, #3b82f6);
@@ -94,15 +101,15 @@ html, body {
94101
.select {
95102
padding: 4px 8px;
96103
font-size: 0.8125rem;
97-
border: 1px solid var(--color-border-primary);
104+
border: var(--border-width-regular) solid var(--color-border-primary);
98105
border-radius: var(--border-radius-sm);
99106
background: var(--color-background-secondary);
100107
color: var(--color-text-primary);
101108
cursor: pointer;
102109
}
103110

104111
.select:focus {
105-
outline: 2px solid var(--color-accent-info);
112+
outline: 2px solid var(--color-ring-info);
106113
outline-offset: 1px;
107114
}
108115

@@ -113,7 +120,7 @@ html, body {
113120
background: var(--color-background-secondary);
114121
border-radius: var(--border-radius-md);
115122
padding: 8px;
116-
border: 1px solid var(--color-border-primary);
123+
border: var(--border-width-regular) solid var(--color-border-primary);
117124
}
118125

119126
.chart-container {
@@ -143,15 +150,15 @@ html, body {
143150
font-size: 0.75rem;
144151
cursor: pointer;
145152
padding: 4px 10px;
146-
border-radius: 16px;
147-
border: 1px solid var(--color-border-primary);
153+
border-radius: var(--border-radius-full);
154+
border: var(--border-width-regular) solid var(--color-border-primary);
148155
background: var(--color-background-secondary);
149156
transition: all 0.15s ease;
150157
}
151158

152159
.legend-item:hover {
153160
border-color: var(--color-text-secondary);
154-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
161+
box-shadow: var(--shadow-sm);
155162
}
156163

157164
.legend-item.hidden {
@@ -192,7 +199,7 @@ html, body {
192199
background: var(--color-background-secondary);
193200
border-radius: var(--border-radius-sm);
194201
padding: 0 12px;
195-
border: 1px solid var(--color-border-primary);
202+
border: var(--border-width-regular) solid var(--color-border-primary);
196203
font-size: 0.8125rem;
197204
}
198205

0 commit comments

Comments
 (0)