Commit 2b83aa2
fix(search-dialog): retone Pagefind modal to warp.dev neutral grey (#18)
* fix(search-dialog): retone Pagefind modal to warp.dev neutral grey
The Pagefind search modal still shipped Starlight's default chrome,
which paints:
- the dialog frame in --sl-color-gray-6 / gray-5 (Oz cool blue
grays #252b37 / #414651),
- the input focus ring in --sl-color-accent (Warp blue),
- result hover/focus in --sl-color-accent-high outlines and
--sl-color-accent-low fills,
- cancel + clear buttons in --sl-color-text-accent (blue).
On the neutral #121212 canvas + the warp.dev grayscale chrome system
this all reads visibly cool/blue and out of family with the trigger
button it just opened from.
Add a new §18 in warp-components.css with unlayered overrides scoped
to `site-search dialog` (so the Kapa Ask dialog stays untouched):
- dialog surface → --sl-color-bg + hairline border (one-canvas
pattern, depth from backdrop blur),
- backdrop overlay → flat neutral scrim per theme,
- --pagefind-ui-* custom props pointed at --warp-control-* so all
of Pagefind's internal surfaces inherit the new palette,
- input :focus border → --warp-control-border-hover (no blue ring),
- cancel + clear buttons → calm gray-2 / gray-3,
- result cards + tags → --warp-control-bg with a hairline,
- hover/focus-within → --warp-control-bg-hover wash + matching
border, no blue accent outline.
Stacked on top of #17 (chrome trigger retoning).
Co-Authored-By: Oz <oz-agent@warp.dev>
* fix(chrome): unify control corner radius to 4px across chrome family
Chrome corner radii were inconsistent across adjacent surfaces:
- Search trigger / Ask / Copy trigger: 4px (sm) ✓
- Search modal input + clear + tag chips: 8px (Pagefind default)
- Search modal result cards: 5px (Starlight --sl-search-corners)
- Copy dropdown items: 6px (md)
- Kapa form input + submit: 6px (md)
Establish one rule for the chrome family:
- Every clickable control surface (button, single-line input,
list/menu row, kbd chip, toast) → --sl-radius-sm (4px)
- Every floating overlay (dialog, dropdown panel, popover, chat
bubble) → --sl-radius-lg (8px)
- Content cards (code blocks, asides, file tree) keep their
--sl-radius-md (6px) — content surface, not chrome.
Changes:
- warp-components.css §18: override Pagefind's
--pagefind-ui-border-radius and Starlight's --sl-search-corners
to --sl-radius-sm so the search input, clear button, tag chips,
and result cards all land at 4px.
- CopyPageButton.astro: dropdown items 6px → 4px (panel keeps 8px).
- KapaChatLauncher.css: .sl-kapa-form input + .sl-kapa-submit
6px → 4px (matching the chrome trigger they pair with).
Co-Authored-By: Oz <oz-agent@warp.dev>
---------
Co-authored-by: Oz <oz-agent@warp.dev>1 parent 9440feb commit 2b83aa2
3 files changed
Lines changed: 132 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
304 | 308 | | |
305 | 309 | | |
306 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
| |||
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
306 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
307 | 311 | | |
308 | 312 | | |
309 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
880 | 880 | | |
881 | 881 | | |
882 | 882 | | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
0 commit comments