Alex Wilson (@CodeByAlex) header
Alex Wilson (@CodeByAlex) profile picture

💻 Design System Engineering Lead @TRowePrice 📣Speaker 💪Web Platform Advocate & Design Tokens Enthusiast

Joined August 2017
Photo by Alex Wilson (@CodeByAlex)Photo by Alex Wilson (@CodeByAlex)Photo by Alex Wilson (@CodeByAlex)Photo by Alex Wilson (@CodeByAlex)Photo by Alex Wilson (@CodeByAlex)Photo by Alex Wilson (@CodeByAlex)Photo by Alex Wilson (@CodeByAlex)Photo by Alex Wilson (@CodeByAlex)
Not only was styling baked into HTML at some point, it's important that it's no longer baked into it, mainly for accessibility reasons. @hdv outlines some of those reasons here: hidde.blog/why-its-good-for-… Not everything is just about DX. Separation of concerns benefits UX too.#a11y
If HTML was invented today, styling would be baked in. The idea of an external language just for styling would seem stupid.
6
21
3
186
19,084
CSS Tip! ⭐️ You can use the lh (line-height) unit on background layers to emphasize multiple lines of text responsively without extra elements! ⚡️ h1 { background: linear-gradient(white, white), grey; background-size: 100% calc(var(--lines) * 1lh), 100% 100%; background-clip: text; color: transparent; } Here you emphasize the first two lines of the heading with white using a sized background-image layer It has a size of 2lh ✨ Then the rest of the element is colored with whatever other colors you want to use as layers. If you watch the video, you can see different colors used for different lines and then fade it out if you wish. You could do whatever you like with it 😎 Neat part is that it's responsive. The font-size is set with a clamp and you can resize the viewport or the element and the number of lines emphasized will remain 🤙 Last but not least, make sure to use background-clip: text and color: transparent so the background shines through 🔥 Also, note that if you're only looking to highlight the first line, you can still use the :first-line pseudo 🫶 Have a play with it and see what you can come up with! @CodePen link below! 👇
Gecko: Intent to Prototype & Ship: Line-height Units (lh, rlh) groups.google.com/a/mozilla.…
10
94
7
983
413,868
:has() is in Firefox beta from today, have fun: mozilla.org/en-US/firefox/12…
16
64
17
395
703,840
“Systems thinking is a discipline for seeing the structures that underlie complex situations.” — Peter Senge
1
4
23
1,740
Alex Wilson retweeted
The best way to advocate for web components is to build great things with them. Actions speak louder than words. #useThePlatform
4
6
1
63
10,271
"The Web Sustainability Guidelines (WSG) 1.0" w3c.github.io/sustyweb/ — ...best practices based on measurable, evidence-based research for designing & implementing digital products & services that put people and the planet first. 🍀🙌🏻
4
12
2
52
10,879
This actually happened to Evernote. They took the advice of “keep talking to your customers and ship whatever they want” as the only guiding principle for product development. And what ended up happening was paying users liked it, but the product become unintuitive and feature overload for the new user. To the extent that they had to rebuild a version for the new user. Users don’t always know if they really want something. It’s your job to take the extra step to think on their behalf: whether they really need this. Or can what they ask be done through something much simpler. Or can you solve multiple problems of different users with one new redesign rather than a bunch of changes. The right principle is: “Keep talking and listening to your users, spend the additional time thinking on their behalf what they actually want, and ship that”.
541
1,849
444
15,380
3,565,104
Alex Wilson retweeted
Someone used CGI to add juggling balls to the ball less juggling scene from The Office. This might be the best video on the internet
36
259
39
2,668
458,939
Alex Wilson retweeted
Why web components? One reason: it's super fast and easy to use pre-built components that offer great functionality and are easy to style. Like Swiper! codepen.io/chriscoyier/pen/Q…
4
159
1
938
126,752
#CSS *is* a programming language. Don't @ me.
Replying to @argyleink
CSS explained: - check for support - no reduced-motion, it's a cross fade - share the scroll linked setup with both the nav and the h2 inside it - animate with body scroll() - clamp the range to the first 100px - nav play the box shadow keyframes
2
9
1
97
18,627
Alex Wilson retweeted
Lit is on Hacker News today! My favorite comment: “Been using Lit for a few years now, it just keeps getting better. It does what it does, and stays out the way. Please don't call it a framework though, the best part of Lit is that is basically some (very lovely!) sugar over standards built into your browser. And as browsers keep improving (at an amazing pace IMO) Lit keeps getting smaller, which might be my favorite thing about it.” news.ycombinator.com/item?id… – at New Hampshire, USA
1
13
1
71
11,885
Naming things isn't hard. Making a scalable naming system is hard.
2
7
680
Alex Wilson retweeted
Web Accessibility Checklist Define accessibility success criteria for UI components. The tool is available for web and native apps. magentaa11y.com/web/
47
2
242
23,044
On our path to achieving the double A, we sometimes encounter issues during development, which are actually problems that stem from the design phase. #CodeNewbie dev.to/ismaestro/designing-f…
1
2
2,041
Alex Wilson retweeted
Curated list of the top #DesignSystem resources, plugins, platforms, design systems, tools, libraries, podcasts, videos, books, conferences. ❤️ thedesignsystem.guide/resour…
5
49
1
314
34,185
Alex Wilson retweeted
Stripe puts web components front-and-center in a new product launch: stripe.com/docs/connect/get-…
16
57
5,574
Epic work by the @Adobe Spectrum team on open sourcing their Design Token Visualiser! Such a useful tool 🔥 👏👏 @GarthDB and Adam Portilla opensource.adobe.com/spectru…
2
31
6
269
45,761
"They don't use any front-end frameworks!" @ThePrimeagen reacting to how fast the FrontendMasters.com website is on his stream.
23
64
7
701
130,558