Skip to content

Commit 5ade5f4

Browse files
authored
Fix: Clean up lineage styling (#2192)
1 parent 010292b commit 5ade5f4

File tree

11 files changed

+440
-344
lines changed

11 files changed

+440
-344
lines changed

web/client/src/index.css

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
--color-brand-20: hsla(24, 100%, 60%, 0.2);
2626
--color-brand-30: hsla(24, 100%, 60%, 0.3);
2727
--color-brand-40: hsla(24, 100%, 60%, 0.4);
28+
--color-brand-50: hsla(24, 100%, 60%, 0.5);
29+
--color-brand-75: hsla(24, 100%, 60%, 0.75);
30+
--color-brand-90: hsla(24, 100%, 60%, 0.9);
2831
--color-brand-100: hsla(37, 100%, 92%, 1);
2932
--color-brand-200: hsla(34, 100%, 84%, 1);
3033
--color-brand-300: hsla(31, 100%, 76%, 1);
@@ -78,7 +81,8 @@
7881
--color-secondary-900: hsla(226, 100%, 24%, 1);
7982

8083
/* Accent */
81-
--color-accent-5: hsla(264, 100%, 98%, 0.05);
84+
--color-accent-5: hsla(264, 100%, 60%, 0.05);
85+
--color-accent-50: hsla(264, 100%, 60%, 0.5);
8286
--color-accent-100: hsla(264, 100%, 98%, 1);
8387
--color-accent-200: hsla(260, 100%, 90%, 1);
8488
--color-accent-300: hsla(260, 100%, 80%, 1);
@@ -205,9 +209,9 @@ html[mode='dark'] {
205209
--color-theme: var(--color-dark);
206210
--color-theme-lighter: var(--color-dark-lighter);
207211

208-
--color-text-darker: var(--color-neutral-300);
209-
--color-text: var(--color-neutral-200);
210-
--color-text-lighter: var(--color-neutral-100);
212+
--color-text-darker: var(--color-neutral-400);
213+
--color-text: var(--color-neutral-300);
214+
--color-text-lighter: var(--color-neutral-200);
211215

212216
--color-divider-darker: var(--color-theme-darker);
213217
--color-divider: var(--color-theme-lighter);
@@ -220,10 +224,10 @@ html[mode='dark'] {
220224
--color-editor-text: var(--color-neutral-300);
221225
--color-editor-active-line-text: var(--color-neutral-100);
222226

223-
--color-graph-edge-secondary: var(--color-neutral-100);
224-
--color-graph-edge-main: var(--color-neutral-80);
227+
--color-graph-edge-secondary: var(--color-primary-500);
228+
--color-graph-edge-main: var(--color-primary-20);
225229
--color-graph-edge-selected: var(--color-primary-500);
226-
--color-graph-edge-direct: var(--color-neutral-500);
230+
--color-graph-edge-direct: var(--color-primary-20);
227231

228232
--color-transparent-20: var(--color-dark-transparent-20);
229233
}
@@ -233,9 +237,9 @@ html[mode='light'] {
233237
--color-theme: var(--color-light);
234238
--color-theme-lighter: var(--color-light-lighter);
235239

236-
--color-text-darker: var(--color-neutral-900);
237-
--color-text: var(--color-neutral-800);
238-
--color-text-lighter: var(--color-neutral-700);
240+
--color-text-darker: var(--color-neutral-700);
241+
--color-text: var(--color-neutral-600);
242+
--color-text-lighter: var(--color-neutral-500);
239243

240244
--color-divider-darker: var(--color-neutral-500);
241245
--color-divider: var(--color-neutral-200);
@@ -248,8 +252,8 @@ html[mode='light'] {
248252
--color-editor-text: var(--color-neutral-600);
249253
--color-editor-active-line-text: var(--color-neutral-800);
250254

251-
--color-graph-edge-secondary: var(--color-neutral-500);
252-
--color-graph-edge-main: var(--color-neutral-200);
255+
--color-graph-edge-secondary: var(--color-secondary-500);
256+
--color-graph-edge-main: var(--color-secondary-20);
253257
--color-graph-edge-selected: var(--color-secondary-500);
254258
--color-graph-edge-direct: var(--color-secondary-20);
255259

web/client/src/library/components/editor/Editor.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@
8888
}
8989

9090
.sqlmesh-expression {
91-
color: var(--color-primary-500);
92-
background: var(--color-primary-10);
91+
background: var(--color-secondary-10);
92+
box-shadow:
93+
inset 0 -1px 0 0 var(--color-secondary-500),
94+
inset 0 1px 0 0 var(--color-secondary-500);
9395
}
9496

9597
.sqlmesh-model,

web/client/src/library/components/editor/EditorPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export default function EditorPreview({
217217
<Tab.Panel
218218
unmount={false}
219219
className={clsx(
220-
'w-full h-full ring-white ring-opacity-60 ring-offset-2 ring-offset-blue-400 focus:outline-none focus:ring-2 py-2',
220+
'w-full h-full ring-white ring-opacity-60 ring-offset-2 ring-offset-blue-400 focus:outline-none focus:ring-2',
221221
)}
222222
>
223223
<ModelLineage

web/client/src/library/components/graph/Graph.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
.react-flow__node {
22
z-index: 10 !important;
33
}
4+
.react-flow__handle {
5+
background-color: currentColor;
6+
}
7+
.react-flow__node.react-flow__node-model:hover,
48
.react-flow__node.react-flow__node-model:active {
59
z-index: 20 !important;
610
}

0 commit comments

Comments
 (0)