News for hackers. Stuff that matters.
Re:Show HN: TerabyteDeals – Compare storage prices by $/TB by thrdbndndn on Wednesday January 21, 2026 @11:26PM (#46715313)
UX bug:

I don't use dark mode. Every time I open this site, it firstly shows in dark mode and then switches to light mode after 0.x seconds.

Re:Show HN: TerabyteDeals – Compare storage prices by $/TB by guessmyname on Wednesday January 21, 2026 @11:52PM (#46715470)
That’s because the HTML code is server-side rendered (SSR) with data-theme="dark" hardcoded on the <html> element, so on the initial page load the browser immediately renders with dark mode styles applied. After ± 500ms-600ms Nuxt’s JavaScript hydration kicks in (as this is a Nuxt app based on __NUXT__ at line 11,236), which detects your macOS system preference via prefers-color-scheme media query and updates data-theme to "light".
Re:Show HN: TerabyteDeals – Compare storage prices by $/TB by snvzz on Thursday January 22, 2026 @12:02AM (#46715531)
This is much better than dark mode users getting flashbanged.
Re:Show HN: TerabyteDeals – Compare storage prices by $/TB by danielroe on Thursday January 22, 2026 @06:40AM (#46717967)
it shouldn't need to do this. Nuxt has a @nuxtjs/color-mode module which ensures that the correct colour scheme is applied before the browser starts rendering the html.

if the site author is lurking anywhere - may I recommend https://color-mode.nuxtjs.org ?

Re:Show HN: TerabyteDeals – Compare storage prices by $/TB by vektor888 on Saturday January 24, 2026 @01:36PM (#46746203)
I am still checking the post, and I've already added color mode 1-2 days ago.

You can also expect some big changes to the UI very soon