use-prefers-color-scheme
web.dev
Our great sponsors
use-prefers-color-scheme | web.dev | |
---|---|---|
2 | 148 | |
31 | 3,547 | |
- | - | |
3.9 | 9.0 | |
9 months ago | about 2 months ago | |
TypeScript | Nunjucks | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
use-prefers-color-scheme
-
Iโve built a fully themeable and accessible dark mode toggle component for React. [Details in the comments]
Thank you! I'm not linking to any articles here. dark-mode-toggle is a controlled React component, so you can query the preferred color scheme with a hook like https://github.com/anatoliygatt/use-prefers-color-scheme and set the mode prop to whatever value you like, as long as it is either dark or light ๐.
-
Iโve built two React hooks that will help you in making your apps more accessible
๐ Repository: GitHub ๐ป Live Demo: CodeSandbox
web.dev
-
Building a realtime chat app with Next.js and Vercel
Before we start creating pages in our application, it's important to understand how Next.js renders content. The framework supports multiple rendering methods including server-side rendering (SSR), static site rendering (SSG), and client-side rendering (CSR). There are many pros and cons to each rendering method (too many to cover in this post) so if these concepts are new to you, Googleโs web.dev site has a very good introduction to rendering on the web that can help you understand rendering options.
-
Navigating the Waters of Core Web Vitals in 2024
The lifecycle of an interaction. Source: web.dev
-
How hard has code splitting been in your experience?
Probably not, it's the CSS used so far, so if there are elements you've not interacted with, that's an issue. This web.dev article gives some tools you can use https://web.dev/articles/extract-critical-css
-
Google have removed RSS support from their developer blogs
I noticed the same for Google's site https://web.dev/
The last article pushed to the feed was "Changes to the web.dev infrastructure" few months ago https://web.dev/blog/webdev-migration
The feed still there but with no updates https://web.dev/feed.xml and on the site you can see new articles published.
Is sad that on a infrastructure revamp of a modern site, the RSS feed was left out of the features list (at least for now).
-
How do websites have a prompt on unsupported browsers?
Upon testing on Firefox and Mi Browser, there was no triggering of the BeforeInstallPrompt event, as expected. However, I noticed that web.dev manages to display a prompt on these browsers, even though they theoretically lack support for the BeforeInstallPrompt event.
-
StackOverflow alternatives for web developers
web.dev, maintained by Google, including posts by Chrome developers and their co-workers,
-
Progressive vs. Incremental Rendering/(Re)Hydration
In a old web.dev articleI came across the word "Incremental (Re)Hydration" which is linked to a Glimmer.js-Blog post (also called "Incremental Rendering" there) confuses me. Is Incremental (Re)Hydration the same as Progressive (Re)Hydration? Reading the Glimmer-Blog article it seems so, but in the web.devarticle it seems to be something different.
-
Staying up to date with the industry with newsletters
Web.dev newsletter - though it's not a weekly newsletter and it's only content from web.dev (though really high quality content)
-
Is it possible to get into coding at 21 with no qualifications self taught?
Just open up a text edi web developers are self-taught. a website. That's what I did. Some people like this: https://web.dev
- Ya saben a donde anotarse si la quieren pegar en IT.
What are some alternatives?
use-color - ๐ผ๐ผ๐ผ The powerful color hook that all designers deserve. โจ Parse and stringify that just works & ๐ฆพ Strict type checking at compile time
vanilla-extract - Zero-runtime Stylesheets-in-TypeScript
react-hook - โฉ Strongly typed, concurrent mode-safe React hooks
lighthouse - Automated auditing, performance metrics, and best practices for the web.
use-prefers-reduced-motion - ๐ช React hook for subscribing to user's motion preference.
TheAnnoyingSite.com - The Annoying Site a.k.a. "The Power of the Web Platform"
react-as-prop - Type-safe `as` prop utility for flexible and semantic UI components of React
bedrock - WordPress boilerplate with Composer, easier configuration, and an improved folder structure
tab-a11y
lite-youtube-embed - A faster youtube embed.
VuePress - ๐ Minimalistic Vue-powered static site generator
WebFundamentals - Former git repo for WebFundamentals on developers.google.com