Sam Potts
Sam Potts
@sampotts.dev
Design Engineer @ Mux. Dad. Built plyr.io. sampotts.dev
51 followers209 following19 posts
I wasn't really famous on Twitter but did ok on GitHub by building a media player (plyr.io) about 10 years ago that gained some traction and is at almost 27k stars. Having kids kinda killed any spare time I had for it so it's been a bit dormant. Hoping to work on Vidstack (vidstack.io) one day.
A little snippet to add some vibrancy to the Tailwind gradient helpers using oklch colors. This avoids the muddy grey you often get in some gradients. 1st is before, 2nd is using oklch. Miles nicer. You can read more about it in @joshwcomeau.com's article here: www.joshwcomeau.com/css/make-bea...
A little snippet to add some vibrancy to the Tailwind gradient helpers using oklch colors. This avoids the muddy grey you often get in some gradients. 1st is before, 2nd is using oklch. Miles nicer. You can read more about it in @joshwcomeau.com's article here: www.joshwcomeau.com/css/make-bea...
I needed to monitor for changes to `color-scheme` in an embed and found this super handy little library. It needs `transition-behavior: 'allow-discrete'` which has ~73% support. I wrote a small fallback using polling for the older browsers but luckily support for `CSS.supports` is pretty decent!
Introducing @bramus/style-observer, a MutationObserver for CSS. It allows you to attach JavaScript callbacks to changes in computed values of CSS properties. 🔗 bram.us/2024/08/31/i...
@bsky.app Can we get some code styling and maybe at a stretch, syntax highlighting, please?
Is there an ideal way to do theming in Next.js? We have two themes which each have entry points that we import based on user settings. We then render via `page.tsx` files in the app directory. The issue we run into is somehow we end up with styles from both themes at once. cc @leerob.com
You are up to date.