Render Flow - Dark mode toggle with JavaScript
[Load HTML] -> [Parse DOM] -> [Load Tailwind CSS] -> [Apply base styles] -> [JavaScript loads] -> [Add event listener to toggle button] -> [User clicks toggle] -> [Toggle dark class on <html>] -> [Repaint with dark styles]
The browser loads the HTML and CSS, applies the base light styles, then JavaScript adds a click event to the toggle button. When clicked, it toggles the 'dark' class on the root element, triggering Tailwind's dark mode styles to repaint the page.