Skip to content

Commit 3c0f9bf

Browse files
committed
style: use Onlook's custom blue-500 color for drag selection
Replace Tailwind's blue-500 with Onlook's design system colors from @onlook/ui/tokens
1 parent 67dbb86 commit 3c0f9bf

File tree

1 file changed

+4
-1
lines changed
  • apps/web/client/src/app/project/[id]/_components/canvas/overlay

1 file changed

+4
-1
lines changed

apps/web/client/src/app/project/[id]/_components/canvas/overlay/drag-select.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use client';
22

3+
import { colors } from '@onlook/ui/tokens';
34
import { observer } from 'mobx-react-lite';
45

56
interface DragSelectOverlayProps {
@@ -22,12 +23,14 @@ export const DragSelectOverlay = observer(({ startX, startY, endX, endY, isSelec
2223

2324
return (
2425
<div
25-
className="absolute border border-blue-500 bg-blue-500/10 pointer-events-none"
26+
className="absolute pointer-events-none"
2627
style={{
2728
left: `${left}px`,
2829
top: `${top}px`,
2930
width: `${width}px`,
3031
height: `${height}px`,
32+
border: `1px solid ${colors.blue[500]}`,
33+
backgroundColor: `${colors.blue[500]}1A`, // 10% opacity (1A in hex)
3134
}}
3235
/>
3336
);

0 commit comments

Comments
 (0)