@@ -39,7 +39,7 @@ def handle_submit(self, form_data: dict):
3939def footer_link (text : str , href : str ):
4040 return rx .link (
4141 text ,
42- class_name = "font-small text-slate -9 hover:!text-slate -11 transition-color" ,
42+ class_name = "font-small text-secondary -9 hover:!text-secondary -11 transition-color" ,
4343 href = href ,
4444 underline = "none" ,
4545 )
@@ -49,7 +49,7 @@ def footer_link_flex(heading: str, links):
4949 return rx .box (
5050 rx .el .h4 (
5151 heading ,
52- class_name = "font-semibold text-slate -12 text-sm tracking-[-0.01313rem]" ,
52+ class_name = "font-semibold text-secondary -12 text-sm tracking-[-0.01313rem]" ,
5353 ),
5454 * links ,
5555 class_name = "flex flex-col gap-4" ,
@@ -311,27 +311,27 @@ def _copy_page_menu_item(
311311 row = rx .el .div (
312312 rx .el .div (
313313 icon ,
314- class_name = "flex size-8 items-center justify-center rounded-md border border-slate-5 bg-slate -2 text-slate -11 shrink-0" ,
314+ class_name = "flex size-8 items-center justify-center rounded-md border border-slate-5 bg-secondary -2 text-secondary -11 shrink-0" ,
315315 ),
316316 rx .el .div (
317317 rx .el .div (
318- rx .el .span (title , class_name = "text-sm font-medium text-slate -12" ),
318+ rx .el .span (title , class_name = "text-sm font-medium text-secondary -12" ),
319319 ui .icon (
320320 "ArrowUpRight01Icon" ,
321321 size = 12 ,
322- class_name = "! text-slate -9" ,
322+ class_name = "text-secondary -9" ,
323323 )
324324 if href
325325 else rx .fragment (),
326326 class_name = "flex items-center gap-1" ,
327327 ),
328328 rx .el .span (
329329 description ,
330- class_name = "text-xs text-slate -10" ,
330+ class_name = "text-xs text-secondary -10" ,
331331 ),
332332 class_name = "flex flex-col items-start gap-0.5" ,
333333 ),
334- class_name = "flex items-start gap-3 px-3 py-2 w-full hover:bg-slate -3 transition-colors cursor-pointer" ,
334+ class_name = "flex items-start gap-3 px-3 py-2 w-full hover:bg-secondary -3 transition-colors cursor-pointer" ,
335335 )
336336 if href :
337337 return rx .el .a (
@@ -372,43 +372,43 @@ def _build_reflex_menu_item(path: str) -> rx.Component:
372372 ui .icon (
373373 "AiMagicIcon" ,
374374 size = 16 ,
375- class_name = "! text-white " ,
375+ class_name = "text-primary-contrast " ,
376376 ),
377377 class_name = (
378378 "flex size-8 items-center justify-center rounded-md "
379- "bg-gradient-to-br from-violet -9 to-violet -11 "
380- "shadow-[0_0_0_1px_var(--violet -7),0_2px_8px_-2px_var(--violet -a8)] shrink-0"
379+ "bg-gradient-to-br from-primary -9 to-primary -11 "
380+ "shadow-[0_0_0_1px_var(--primary -7),0_2px_8px_-2px_var(--primary -a8)] shrink-0"
381381 ),
382382 ),
383383 rx .el .div (
384384 rx .el .div (
385385 rx .el .span (
386386 "Build this with AI" ,
387- class_name = "text-sm font-semibold text-slate -12" ,
387+ class_name = "text-sm font-semibold text-secondary -12" ,
388388 ),
389389 ui .icon (
390390 "ArrowUpRight01Icon" ,
391391 size = 12 ,
392- class_name = "!text-violet -11" ,
392+ class_name = "!text-primary -11" ,
393393 ),
394394 class_name = "flex items-center gap-1" ,
395395 ),
396396 rx .el .span (
397397 "Open in Reflex Build" ,
398- class_name = "text-xs text-slate -10" ,
398+ class_name = "text-xs text-secondary -10" ,
399399 ),
400400 class_name = "flex flex-col items-start gap-0.5" ,
401401 ),
402- class_name = "flex items-start gap-3 px-3 py-2.5 w-full" ,
402+ class_name = "flex items-start gap-3 px-3 py-3 w-full" ,
403403 ),
404404 href = href ,
405405 target = "_blank" ,
406406 rel = "noopener noreferrer" ,
407407 class_name = (
408408 "no-underline w-full text-left block "
409- "bg-gradient-to-br from-violet -2 to-slate -1 "
410- "hover:from-violet -3 hover:to-violet -2 "
411- "border-b border-slate -4 transition-colors cursor-pointer"
409+ "bg-gradient-to-br from-primary -2 to-secondary -1 "
410+ "hover:from-primary -3 hover:to-primary -2 "
411+ "border-b border-secondary -4 transition-colors cursor-pointer"
412412 ),
413413 )
414414
@@ -494,8 +494,8 @@ def _copy_page_button(doc_content: str, path: str = "") -> rx.Component:
494494 on_click = copy_action ,
495495 class_name = (
496496 "flex items-center justify-center px-2.5 h-8 "
497- "border border-slate -5 border-r-0 rounded-l-md text-slate -11 "
498- "hover:text-slate -12 hover:bg-slate -3 active:scale-[0.96] "
497+ "border border-secondary -5 border-r-0 rounded-l-md text-secondary -11 "
498+ "hover:text-secondary -12 hover:bg-secondary -3 active:scale-[0.96] "
499499 "transition-all cursor-pointer"
500500 ),
501501 ),
@@ -507,24 +507,24 @@ def _copy_page_button(doc_content: str, path: str = "") -> rx.Component:
507507 aria_label = "Copy page options" ,
508508 class_name = (
509509 "flex items-center justify-center px-1.5 h-8 "
510- "border border-slate -5 rounded-r-md text-slate -11 "
511- "hover:text-slate -12 hover:bg-slate -3 active:scale-[0.96] "
510+ "border border-secondary -5 rounded-r-md text-secondary -11 "
511+ "hover:text-secondary -12 hover:bg-secondary -3 active:scale-[0.96] "
512512 "transition-all cursor-pointer"
513513 ),
514514 ),
515515 ),
516516 ui .popover .portal (
517517 ui .popover .positioner (
518518 ui .popover .popup (
519- render_ = rx .el .div (
519+ rx .el .div (
520520 _build_reflex_menu_item (path = path ),
521521 _copy_page_menu_item (
522522 icon = ui .icon ("Copy01Icon" , size = 16 ),
523523 title = "Copy page" ,
524524 description = "Copy page as Markdown for LLMs" ,
525525 on_click = copy_action ,
526526 ),
527- rx .el .div (class_name = "h-px bg-slate-4 my-1 mx-2 " ),
527+ rx .el .div (class_name = "h-px bg-secondary-4 " ),
528528 _copy_page_menu_item (
529529 icon = ui .icon ("MessageProgrammingIcon" , size = 16 ),
530530 title = "Open in ChatGPT" ,
@@ -541,17 +541,12 @@ def _copy_page_button(doc_content: str, path: str = "") -> rx.Component:
541541 "https://claude.ai/new?q=" , path
542542 ),
543543 ),
544- class_name = (
545- "flex flex-col min-w-[260px] py-1 "
546- "bg-slate-1 border border-slate-5 rounded-lg shadow-lg "
547- "data-[state=open]:animate-in data-[state=open]:fade-in-0 "
548- "data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-top-2"
549- ),
544+ class_name = "flex flex-col min-w-[260px]" ,
550545 ),
546+ class_name = "p-0 overflow-hidden" ,
551547 ),
552- side = "bottom" ,
553548 align = "end" ,
554- side_offset = 6 ,
549+ align_offset = - 4 ,
555550 ),
556551 ),
557552 ),
0 commit comments