Connected a React design system (shadcn/ui+Tailwind v4+Storybook) to Claude Design with /design-sync.
The goal: Claude Design should use the design system's components instead of creating its own.
Wrote up a full guide, including a few gotchas 👇
#ClaudeDesign#DesignSystems
@KensioSoftware Mocking has to intercept earlier (loader hooks / Vitest / esmock). What defer gives you is control over when the side effects fire, not what the module resolves to.
Most imports run their modules immediately, even when we never use them.
import defer (TC39 Stage 3, in TypeScript 5.9) lets us load & link eagerly but defer evaluation until first use, so we only pay for code that runs.
Link below 👇🏻
#TypeScript#JavaScript#WebPerformance
@KensioSoftware Good instinct, but the eager part gets in the way. import defer only defers evaluation - loading and linking stay eager, so the imports are already bound to the real module before your code runs.
You add examples to a prompt and the model gives better answers. So it learned, right?
Not exactly. The weights are frozen. Context is just input the model processes using those same fixed weights.
I wrote an article explaining the full LLM pipeline👇
#AI#LLM#MachineLearning
"The animal didn't cross the street because it was too tired"
We know "it" = animal. An LLM doesn't - it computes that.
animal → high attention. street → low.
That's Self-Attention. Runs on every token, every prompt.
Full article in the first comment.
#AI#LLM
TypeScript tip: Use “never” to assure every case in a switch is handled.
With this example, if a case is missing, TypeScript fails to compile. 👍
#typescript
TypeScript 5.0 Beta is now out to try! 🚀
Now with ES decorators, better modes for modules in Node & bundlers, new inference tools for library authors, JSDoc support - and last but not least, some great speed and size improvements!
https://t.co/oqFN2OfPIC
As all matter is composed of atoms, so user interfaces are eventually built from fundamental building blocks. ⚛️🧱
You're welcome to join me on August 15th in Namal Tel Aviv to understand what Design Systems are and how we maintain them at @WixEng.
#webdevelopment#frontend
Mark your calendars - Wix Developer Platform meetup #2, with @nitayneeman and @GabayNissan, is coming soon - and this time we will focus on Design Systems and Production Testing. Check out the full agenda here:
https://t.co/8LAjOlmQGV
Animate opacity and not a blur() filter.
See it in this demo:
The blur() animation has awkward viewport edge blurring. Opacity animation doesn't.
Also, the effort level (CPU or GPU usage) of the opacity animation is far less than a filter.
Win. Win.
https://t.co/GMQCy7Qebv
media-queries-4 making confusing queries much simpler 😍
caniuse (Firefox only atm) https://t.co/6JWGI4A9RQ
CSS spec https://t.co/YeKFLAjrCS
PostCSS plugin https://t.co/m66y81ZO2S
⭐️ to show Chromium you want it https://t.co/vo2E04lTiS
TypeScript 4.7 beta is out to try with lots of new features and improvements around type inference, narrowing analyses, ES module integration, and more!
https://t.co/VtMlBvtezc
In case you weren't aware; Chromium browsers (Chrome, Edge), Firefox, and Safari now all support native image lazy loading.
<img loading="lazy"/>
No need for custom polyfills for major browsers anymore!
https://t.co/A1F9TC437M
React 18 is almost ready to ship. The React 18 Working Group community feedback has led to many improvements over the last year. We don’t expect big changes now but we’d like to ask for one final round of broad public community feedback before the release. https://t.co/N83n65XAse