Forging Links – Web Design Engineering and CSS

A presentation at CSS Café in November 2022 in by Matthias Ott

Slide 1

Slide 1

→Matthias Ott @ CSS Café Forging Links

Slide 2

Slide 2

👋 Matthias Ott User Experience Designer Design Engineer @matthiasott@mastodon.social @m_ott@twitter.com https://matthiasott.com

Slide 3

Slide 3

We have a problem…

Slide 4

Slide 4

Websites with detectable WCAG 2 failures: 96.8 % The WebAIM Million Report 2022

Slide 5

Slide 5

Growth in mobile page weight over 10 years: 594 % Web Almanac 2022 State of the Web Report

Slide 6

Slide 6

Percentage of Consumers Happy Shopping Online 15 % Contentsquare 2022 Digital Experience Benchmark Report

Slide 7

Slide 7

Slide 8

Slide 8

Slide 9

Slide 9

“ If you use style sheets properly, to suggest the appearance of a page, not to control the appearance of a page, and you don’t rely on your style sheet to convey information, then your pages will work ne in any browser, past or future.” fi John Allsopp, “A Dao of Web Design”

Slide 10

Slide 10

Frank Chimero The Web’s Grain https://archive.org/details/vimeo-122880890

Slide 11

Slide 11

Slide 12

Slide 12

“ What would happen if we stopped treating the Web like a blank canvas to paint on, and started treating it like a material to build with?” Frank Chimero, “The Web’s Grain”

Slide 13

Slide 13

Slide 14

Slide 14

We are still painting pretty pictures of websites.

Slide 15

Slide 15

Design Engineering

Slide 16

Slide 16

What we all are designing and building. What the Web platform is capable of today.

Slide 17

Slide 17

  1. Learn and teach

Slide 18

Slide 18

  1. Learn and teach 2. Collaboration

Slide 19

Slide 19

Slide 20

Slide 20

  1. Learn and teach 2. Collaboration

Slide 21

Slide 21

  1. Learn and teach 2. Collaboration 3. Design Systems

Slide 22

Slide 22

Design Design System Engineering

Slide 23

Slide 23

  1. Learn and teach 2. Collaboration 3. Design Systems 4. Prototyping

Slide 24

Slide 24

Prototyping

Slide 25

Slide 25

Anything can be a prototype. Sketches Paper prototypes Sticky notes Personas User Flows Experience Maps Wireframes Animations CodePens Storyboards …

Slide 26

Slide 26

Charles und Ray Eames ffi Ray and Charles Eames selecting slides for the exhibition, “Photography & the City”, 1968. © 2011 Eames O ce, LLC.

Slide 27

Slide 27

https://www.loc.gov/exhibits/eames/images/vcf23a.jpg Prints & Photographs Division, Library of Congress

Slide 28

Slide 28

Slide 29

Slide 29

high Fidelity low narrow wide Scope

Slide 30

Slide 30

  1. Learn and teach 2. Collaboration 3. Design Systems 4. Prototyping

Slide 31

Slide 31

Slide 32

Slide 32

Design Engineering

Slide 33

Slide 33

Design Engineering

Slide 34

Slide 34

Design Engineering

Slide 35

Slide 35

Design Engineering Exploration Translation Contribution

Slide 36

Slide 36

Design Principles Variable Fonts Filters Layout Design Tokens Typography Animation / Motion Design HTML JavaScript CSS Contrast SVG Accessibility Interaction Design Performance Gestalt Theory Colo(u)r Responsive Images Browser APIs

Slide 37

Slide 37

Typography Layout

Slide 38

Slide 38

Typography Typography Typography Typography Typography

Slide 39

Slide 39

Slide 40

Slide 40

Slide 41

Slide 41

Slide 42

Slide 42

Slide 43

Slide 43

Slide 44

Slide 44

Slide 45

Slide 45

Slide 46

Slide 46

Slide 47

Slide 47

Slide 48

Slide 48

Slide 49

Slide 49

Slide 50

Slide 50

Slide 51

Slide 51

Slide 52

Slide 52

h1 { font-size: 3rem; } @media (min-width: 40em) { h1 { font-size: 5rem; } } @media (min-width: 60em) { h1 { font-size: 10rem; } }

Slide 53

Slide 53

Slide 54

Slide 54

fl https://www.smashingmagazine.com/2016/05/ uid-typography/

Slide 55

Slide 55

font-size: calc(16px + (24 - 16) * (100vw - 400px)/(800 - 400));

Slide 56

Slide 56

Width of the viewport – min viewport width u t ’ n Do ! e r o nym a s i h se t font-size: calc(16px + (24 - 16) * (100vw - 400px)/(800 - 400)); Min font-size Max font-size – min font-size Max viewport width – min viewport width

Slide 57

Slide 57

clamp(min, preferred, max)

Slide 58

Slide 58

font-size: clamp(3rem, calc(-3.1765rem + 20.5882vw), 10rem);

Slide 59

Slide 59

font-size: clamp(3rem, -3.1765rem + 20.5882vw, 10rem);

Slide 60

Slide 60

Slide 61

Slide 61

Slide 62

Slide 62

https://www.modularscale.com/

Slide 63

Slide 63

https://utopia.fyi/

Slide 64

Slide 64

Slide 65

Slide 65

https://utopia.fyi/

Slide 66

Slide 66

Slide 67

Slide 67

Slide 68

Slide 68

Slide 69

Slide 69

Layout

Slide 70

Slide 70

Tables with spacer GIFs Locigal properties Transforms Writing modes Alignment :has() Floats New sizing values Flexbox CSS Grid Object- t Multi-column layout Subgrid Aspect-ratio fi min(), max(), and clamp() Custom properties Clip-path Cascade layers Container queries

Slide 71

Slide 71

Slide 72

Slide 72

% 8 4 . 6 9

Slide 73

Slide 73

https://vasilis.nl/nerd/our-web-design-toolsare-holding-us-back/ https://www.oddbird.net/2022/11/11/platform-tools/

Slide 74

Slide 74

The majority of UI designers has no idea of what’s possible with CSS Grid.

Slide 75

Slide 75

Example: CSS Grid

Slide 76

Slide 76

grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); Repeat this fi Add as many columns as t Min and max for the width of the columns

Slide 77

Slide 77

Example: CSS Grid @jensimmons youtube.com/layoutland

Slide 78

Slide 78

https://labs.jensimmons.com/ Example: CSS Grid

Slide 79

Slide 79

https://labs.jensimmons.com/ Example: CSS Grid

Slide 80

Slide 80

https://labs.jensimmons.com/

Slide 81

Slide 81

https://codepen.io/matthiasott/pen/oNyqMgp

Slide 82

Slide 82

https://cssgrid-generator.netlify.app

Slide 83

Slide 83

https://www.youtube.com/watch?v=8slZJrTK3nE

Slide 84

Slide 84

Slide 85

Slide 85

https://www.youtube.com/watch?v=tueTFd2TQUA

Slide 86

Slide 86

https://every-layout.dev

Slide 87

Slide 87

Slide 88

Slide 88

Thank you! 💚 👉 matthiasott.com 👈