close
Skip to main content
Image

r/reactjs


A behind the scenes look at the most popular React Newsletter: This Week in React
A behind the scenes look at the most popular React Newsletter: This Week in React
Resource

Advertisement: How do you travel, work, stream, and play all day? With the processor that gives you loooooooong battery life. That’s How.
How do you travel, work, stream, and play all day? With the processor that gives you loooooooong battery life. That’s How.
Image How do you travel, work, stream, and play all day? With the processor that gives you loooooooong battery life. That’s How.


Fixing My React Site Load Times and Phaser Load Times: Overlay Cameras, Preload Timing, and Service Worker Asset Fetches
Fixing My React Site Load Times and Phaser Load Times: Overlay Cameras, Preload Timing, and Service Worker Asset Fetches
Resource

Update to Loading UI: 8 color presets, preview all 45+ loaders in any color on the site
Update to Loading UI: 8 color presets, preview all 45+ loaders in any color on the site
Resource

Quick update on loading-ui, the open-source loading component registry I shared here before.

New: color presets. 8 colors (black, blue, violet, orange, red, green, yellow, sky) you can switch on https://loading-ui.com and instantly preview every loader in that color.

How it works in React:

Components use currentColor, so theming is just setting color on a parent:

<div style={{ color: "var(--loader-blue)" }}>
  <Ring className="size-8" />
  <TextShimmer>Loading...</TextShimmer>
</div>

CSS variables are OKLCH-based with auto-generated gradients:

--loader-violet: oklch(0.7217 0.1768 305.49);
--loader-violet-gradient: linear-gradient(in oklch 135deg, ...);

Dark mode: black preset flips to white in .dark.

Still install components the same way:

npx shadcn add @loading-ui/ring

If you use loading-ui already, curious whether preset CSS vars are useful or you'd rather stick with Tailwind text-blue-500 utilities?