Smashing Newsletter #269: Git, Design Systems, TypeScript, CSS clamp()

With linear scale with CSS clamp(), TypeScript, Git cheatsheets, design systems and 3D keyboards. Issue #269 Tue, Oct. 6, 2020 View in the browser 💨

Smashing Newsletter

Dear Friend,

Our experiences shape our expectations. Conventions that used to be just a natural way of working and living in the past need rethinking to remain viable — just because the way we work and live has changed entirely. I asked myself: what will be the new default in the new reality? How should we all change to accommodate for it — be it small agencies, mid-size product teams or small companies like ourselves here at Smashing?

For many of us, it didn't take long to get used to the idea of online conferences and online workshops. The experience online is always different, but in times when we don’t really have a choice, it seems that we have found ways to make them work online still.

a6a687b2-7737-4634-b758-3466b4d43773.jpg
Behind the scenes of SmashingConfs that we now run online as well.

Nobody wants to spend more time on screen, so instead, we could chunk the entire experience into manageable segments, and make sure attendees stay connected in-between sessions. E.g. by breaking online workshops into 2.5h-chunks spread across weeks, with enough breaks for networking — and adding interactive live teamwork and live Q&A into the mix.

With new online events being announced every other day, everyone is in competition with everyone else. So it’s not surprising then to see very theme-specific, niche events, along with events dedicated to a particular audience, e.g. run in Russian or Spanish.

On the other hand, it shouldn’t be too surprising to have live streams becoming a default feature of any in-person events in the future, too. Not only because flying will remain expensive, cumbersome and damaging for the environment, but also because companies have been noticing that it’s just much more reasonable to “send” employees to multiple online events instead of just one in-person gathering.

In all of that, we shouldn’t forget that digital really is different. It’s not necessarily as rewarding as in-person experiences are, but it has its advantages, too. Online makes it possible for everyone to attend without leaving the comfort of their desks, as well as learn and network at their own individual pace. It’s also more affordable and makes traveling optional, which makes events accessible for young families and people who prefer not to travel.

It’s up to us to invent that better digital future, and figure out how we can provide the offering that our attendees, readers and customers will fall in love with — albeit digitally. One thing is certain though: the new default expectations will be different, and that’s not necessarily a bad thing.

— Vitaly (@smashingmag)


Table of Contents

1. Linear Scale For Typography With CSS clamp()
2. The State Of Design Systems And Prototyping 2020
3. Git Cheatsheets
4. Master TypeScript In 50 Short Lessons
5. Customize Illustrations With A Few Clicks
6. Growing List Of Accessibility Resources
7. Designing And Testing 3D Keyboards
8. Coming Up Next on Smashing
9. New On Smashing Job Board
10. Our Current Most Popular Articles

1. Linear Scale For Typography With CSS clamp()

It doesn’t sound like a difficult problem, but it’s actually not that straightforward: make the font-size or line-height grow automatically between two values, from small to large screens. For years, we’ve been using some sort of combination of calc, vh and vw units, trying to achieve growth between two values within a particular viewport range. Now, we can achieve the same much easier, with CSS clamp().

Linear Scale For Typography With CSS clamp()

In the article “Linearly Scale font-size with CSS clamp() Based on the Viewport”, Pedro Rodriguez explains how CSS clamp() actually works. It actually takes 3 values:

clamp(minimum, preferred, maximum);

The value it returns will be the preferred value, until that preferred value is lower than the minimum value or higher than the maximum value. So once you pick your minimum and maximum font sizes, and your minimum and maximum viewport widths (and convert the widths to rem units), we can use a bit of school math to calculate the slope and let the font-size grow within its boundaries.

Great for responsive typography and so many other things, be it icon sizes or spacing. Browser support? All modern browsers (no good news from IE and Opera Mini though). (vf)


2. The State Of Design Systems And Prototyping 2020

It’s always interesting to explore what worked or failed for other professionals, so we can take some of the lessons and apply them to our context. The 2020 Design Systems Survey by Sparkbox highlights the results of the annual survey among organizations that have heavily invested in making design systems work well. The survey dives into common design system challenges and strategies to overcome them. The survey also dives into in-house design systems, design system maturity and the contributions of a design system to a positive culture within those organizations.

The State of Design Systems and Prototyping 2020

Conducted by the team behind Framer, The State of Prototyping 2020, provides a 31-pages PDF report exploring current challenges and benefits of prototyping. Only a third of respondents is able to provide a prototype within 12h. The common challenges are steep learning curves when starting to use a tool for the first time, and often the prototyping tool doesn’t fit exact requirements. A registration via email is required.

Not good enough? You can also explore the State of Email 2020, featuring current trends in email design and development, provided by Litmus. (vf)


From our sponsor

Build In-Demand Skills In Northwestern’s Online MS In Information Design And Strategy

Work at the Intersection of Data, Design and Technology. Earn your master’s degree online at Northwestern Information Design and Strategy.
Earn your master’s degree online.


3. Git Cheatsheets

Aw, Git! It’s always quite a challenge to remember all the right commands at just the right time, so having a few cheatsheets around can be quite useful. Git log features common ways to use the Git log to track what changed or search for commits. Git Branch cheatsheet shows how to list branches, create new ones, rename and switch branches, as well as delete them.

Git Cheatsheets

Need something slightly more advanced? Atlassian’s Git cheatsheet goes into more detail around Git basics, undoing changes, rewriting Git history, Git branches and remote repositories, and GitHub Cheat Sheet features shows how to inspect and compare, track path changes, share and update, ignore patterns, and add temporary commits. (vf)


4. Master TypeScript In 50 Short Lessons

What’s TypeScript, and how can we make it work well for all of us? That’s the question we’ve asked ourselves early this year. So we’ve teamed up with Stefan Baumgartner, a seasoned JavaScript developer drawn to TypeScript for years, to break it all down into understandable pieces. The result is “TypeScript in 50 Lessons” — our shiny new book, with everything TypeScript explained, from start to finish.

Master TypeScript in 50 Short Lessons

The eBook, along with a friendly discount for printed copies is going to be released this Wednesday, and printed books will be shipped in November. 476 pages, beautifully designed by Rob Draper. Download a free PDF sample and jump to the table of contents. Of course, the eBook is always free for Smashing Members. Learn how to make sense of TypeScript and how to make it work for you. Happy reading, everyone! (vf)


5. Customize Illustrations With A Few Clicks

While design systems have become a tool for many design teams, illustration systems and libraries have become useful tools to create new illustrations for every occasion with a few clicks — especially if you happen to be on a tight budget. Vector-Creator allows you to pick a style, add and arrange elements, add your own SVG, PNG or JPEG and export to PNG or SVG.

Customize Illustrations With A Few Clicks

Open Doodles is a free set of sketchy illustrations by Pablo Stanley, with custom compositions and a generator to fully customize your illustrations. And smash.illustrations is an illustration constructor with colorful and trendy characters, free for commercial and personal use. Of course, nothing can beat the artwork created specifically for a project from scratch. Still, in some situations, it might not be viable, and that’s where such constructors can become quite handy indeed! (vf)


From our sponsor

[Online Bootcamp] How To Create Reactive Web Apps

Interested in expanding your app portfolio with the next generation of web apps?
Interested in expanding your app portfolio with the next generation of web apps? In this online training, you’ll learn how to create Reactive Web Apps using the OutSystems platform. Get started today!


6. Growing List Of Accessibility Resources

Chances are high that just when you need to look-up a solution or a technique, it will be quite difficult to find it quickly. Hannah Milan’s A11yresources provides a growing list of accessibility tools and resources, ranging from articles and browser extensions to newsletters and podcasts and videos.

Growing List Of Accessibility Resources

A quite comprehensive list, well organized and structured — with pretty much everything you might need to resolve that accessibility issue quickly. For the bookmarks! (vf)


7. Designing And Testing 3D Keyboards

Have you ever actually given thought to that keyboard you interact with day in and day out? Perhaps every key press could be that much more enjoyable, easier and satisfying if you took the time to consider that there may be something better just waiting for your attention.

Designing And Testing 3D Keyboards

If you feel like you are ready to build a custom mechanical keyboard, why not virtualize it first? Built using three.js, Keyboard Simulator can help you with just that. You can experiment with so many different 3D models and even share your designs with others. Nifty!

Interested in diving into more possibilities of mechanical keyboards? Check out Ben Frain’s complete guide to mechanical keyboards in which he talks about the variety of layouts, switch types and even keycap material. (il)


From our sponsor

From Microservices To Serverless Functions

Through the lens of Object Oriented Design, serverless is the logical conclusion of ever-shrinking service.
Through the lens of Object Oriented Design, serverless is the logical conclusion of ever-shrinking service. Download the free MongoDB guide to learn why.


8. Coming Up Next on Smashing

With Smashing Membership, you get access to goodies, eBooks, discounts and live sessions with experts — all around front-end & UX, for just one coffee a month. Coming up next:

  • All About Icons” with Marc Edwards October 20 at 11:00 London time

Practicing skills matters. Meow!
Meet Smashing Online Workshops on front-end and UX with Cassie Evans, Christian Nwamba, Harry Roberts, and many others.

We also have online workshops on front-end & UX — designed to give you the same experience and access to experts as in an in-person workshop, but without needing to leave your desk.

Or, if you’d like to run an online workshop with your team, please get in touch with Vitaly at vitaly@smashingconf.com and briefly describe what problems you’re facing and would like to solve. Get in touch — it’s that easy! (vf)


9. New On Smashing Job Board


10. Our Current Most Popular Articles


This newsletter issue was researched, written and edited by Vitaly Friedman (vf) and Iris Lješnjanin (il).


Sent to truly smashing readers via Mailchimp.
We sincerely appreciate your kind support. You
rock.

Follow us on Twitter Join us on Facebook


unsubscribe update preferences view in your browser


Older messages

Smashing Newsletter #268: UX Edition

Tuesday, September 29, 2020

With disabled buttons, bottom navigation, flags and online banking. Issue #268 • Tue, Sept. 29, 2020 • View in the browser 💨 Smashing Newsletter Dear Friend, This week, our theme is user experience

Smashing Newsletter #267: Accessibility, Inspiration and Debugging Strategies

Tuesday, September 22, 2020

With tips on accessibility, design inspiration, and strategies to help you debug. Issue #267 • Tue, Sept. 22, 2020 • View in the browser 💨 Smashing Newsletter Dear Friend, I never get tired of being

Smashing Newsletter #266: JavaScript Edition

Tuesday, September 15, 2020

With free JavaScript libraries, debugging and scrolling elements into view Issue #266 • Tue, Sept. 15, 2020 • View in the browser 💨 Smashing Newsletter Dear Friend, Last week was Smashing

Meet New Front-End & UX Workshops (Sep–Nov 2020)

Thursday, September 10, 2020

With Harry Roberts, Cassie Evans, Andrew Rachel, Natalia Tepluhina and Vitaly Friedman. On SVG, web performance, CSS and Vue.js. New online workshops on web performance, SVG animation, Vue.js, CSS. •

Smashing Newsletter #265: Interfaces, Design Systems and Cityscapes

Tuesday, September 8, 2020

On SmashingConf Freiburg, interface design, design systems, job offers comparison and fancy blobs. Issue #265 • Tue, Sept. 8, 2020 • View in the browser 💨 Smashing Newsletter Dear Friend, As I'm

You Might Also Like

The Problem With Using Social Media as Design Education

Tuesday, May 7, 2024

View in your browser | Update your preferences ADPro Image may contain: People, Person, Accessories, Bag, Handbag, Food, Meal, Adult, Clothing, Hat, Glasses, Fun, and Party Twenty-five days were left

#455: CSS

Tuesday, May 7, 2024

CSS Masonry Layout, Self-Modifying CSS Variables and Hanging Punctuation Issue #455 • May 7, 2024 • View in the browser Smashing Newsletter Dobryi vechir Smashing Friends, When I first encountered CSS

🤯 Immersive Admin Dashboard Designs + 🏆 Challenge Updates

Tuesday, May 7, 2024

Stay Up-to-Date With UpLabs' Latest Design News 🎨 Firstly, let's congratulate Rahul Parmar, the winner of our latest 👾 ChatGPT Redesign Challenge! Congratulations!! Secondly, the end of April

Web Components, Conditional Styling, Popover API, color-mix(), Product Designers

Tuesday, May 7, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar May 7 2024 Map of the web graph.henryn.ca A visualization of

Map of the Web, JSR Registry, Presidential Campaign a11y, Age of Average, CSS Specificity

Tuesday, May 7, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar May 6 2024 Map of the web graph.henryn.ca A visualization of

How we do UX retreats at Balsamiq (+ steal our agenda!)

Monday, May 6, 2024

Inside our UX group retreat ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Accessibility Weekly: #395: Why Are My Live Regions Not Working?

Monday, May 6, 2024

May 6, 2024 • Issue #395 View this issue online or browse the full issue archive. Featured: Why are my live regions not working? "Live regions have a reputation for being "flaky" and

Writing a POV Doc

Sunday, May 5, 2024

Issue 193: Share what you care about at scale ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

It's Officially Show House Season

Thursday, May 2, 2024

View in your browser | Update your preferences ADPro Showing Up, and Showing Off One of the traditions design aficionados look forward to the most each year is the return of decorator show houses. In

Zelman Meats, AI Feedback Loop, Figma Variables, CSS Masonry, Passkeys

Thursday, May 2, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar May 2 2024 Zelman Meats logo by Red Dot Studio logodesignlove.