shashbha14 opened a new pull request, #64268:
URL: https://github.com/apache/airflow/pull/64268

   Closes #64253
                                                                                
                                                                  
   What changed                                                                 
                                                             
   The Monaco editors in the UI were using the default `vs-light` and `vs-dark` 
themes, which clashed visually with the Chakra UI-based design system used 
across the app.                                                                 
                                                    
   This PR introduces a `useMonacoTheme` hook that defines custom 
`airflow-light` and `airflow-dark` themes derived from Chakra UI color tokens,  
 and wires them into all four Monaco editor usages: `JsonEditor`, 
`RenderedJsonField`, `Code`, and `CodeDiffViewer`.                         
    The hook is exported through the existing `colorMode` barrel index to stay 
consistent with project conventions.                                 
    How to test                                                                 
                                                               
    - Toggle between light and dark mode — editor background and syntax colors 
should update to match the app theme                              
    - Open the DAG Code tab, Variables page, and any JSON editor — all should 
look consistent                                                    
    - Run `pnpm lint` — no new errors 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to