2023-10-25
3257
#accessibility#css#vanilla javascript
Cristian Diaz
180080
107
Oct 25, 2023 ⋅ 11 min read

Creating contrast themes with CSS prefers-contrast and JavaScript

Cristian Diaz Cristian is a frontend developer from Colombia. He enjoys writing about what he learns and is focusing his career on helping to make web content more accessible to everyone. His main areas of expertise are HTML, CSS, and web accessibility. You can reach Cristian on Bluesky: https://bsky.app/profile/itscrisdiaz.com.

Recent posts:

React ViewTransition vs. Motion: Comparing animation approaches

React ViewTransition vs. Motion: Comparing animation approaches

Compare React ViewTransition and Motion across four animation patterns. The native build saved ~38.6kB of gzipped JS, but required 179 more lines of CSS.

Chizaram Ken
Sep 26, 2026 ⋅ 7 min read

Cline + Ollama: A fully local AI coding agent

Learn how to run Cline locally with Ollama to build a secure, private AI coding agent that keeps your proprietary code off cloud servers.

Jude Miracle
Sep 21, 2026 ⋅ 10 min read
TanStack Charts vs. Recharts vs. Chart.js

TanStack Charts vs. Recharts vs. Chart.js: I found out which is best

Compare TanStack Charts, Recharts, and Chart.js by building the same React dashboard three times. See how each library’s mental model affects your code.

Emmanuel John
Sep 17, 2026 ⋅ 7 min read

Rust React Compiler vs Babel: Is 10x speed real?

Is the Rust React Compiler’s 10x speed claim real? We put Babel, Vite (Oxc), and Bun to the test on a real app to find out where the speed actually matters.

Chizaram Ken
Sep 16, 2026 ⋅ 8 min read
View all posts

Would you be interested in joining LogRocket's developer community?

Join LogRocket’s Content Advisory Board. You’ll help inform the type of content we create and get access to exclusive meetups, social accreditation, and swag.

Sign up now