How are teams organizing their #DesignTokens based on the W3C @DesignTokens spec? Are they in single file, split up by theme, category, tier, etc.?
#DesignSystems
I had an interesting conversation the other day. There was a desire to make only colors adjustable for light and dark modes. The problem with that is that more than just colors need to be adjusted in those modes, like shadows, font weights, letter spacing, etc.
#designsystems
Can HTML `<template>` elements improve performance while keeping content visible to bots and AI scrapers? This dev tested 4 approaches across 100,000 items and the results for AI discoverability are surprising.
{ author: @stuffbreaker }
dev.to/stuffbreaker/content-…
One of the pain points of my #WebComponents type parser was its inability to parse types from "node_modules". Now it will parse them, and if it can't, it logs a warning with the type name, declaration location, and reason it was skipped.
wc-toolkit.com/documentation…
Are teams using #TypeScript declaration maps to provide a better go-to-definition experience for developers? I've used source maps, but I don't think I've provided declaration maps.
#SoftwareEngineering#Programming
When you are in an #html file, and you want to go-to-definition for a custom element, what do you think the behavior should be? Should it go to:
- type definition
- JS file where the class is defined
- CEM entry
- something else
#webcomponents#javascript
Flash of Unstyled Content (FOUC) can ruin a user's first impression.
Here is how to use the :defined pseudo-class and transition events to smooth out Web Component rendering.
{ author: @stuffbreaker }
dev.to/stuffbreaker/reducing…