Provide high-level, flexible layouts Determine how elements interact with each other Create consistent flow and rhythm
Slide 24
Provide visual treatment such as colour or font style Provide decorative styles such as shadows and patterns Force a browser to generate a pixelperfect layout
“Design Tokens are the visual atoms of the design system – specifically, they are named entities that store visual design attributes. We use them in place of hard–coded values in order to maintain a scalable and consistent visual system.”
@jina
Slide 42
Design tokens for scalable systems
Slide 43
JSON
Slide 44
CSS
Slide 45
HTML
Slide 46
Design tokens mean light CSS
Slide 47
Apply a single CSS property, or a concise group of related properties Extend design tokens to maintain a single source of truth Abstract repeatability away from the CSS and apply it in the HTML instead
Slide 48
Define a large group of unrelated CSS properties. Be used as a specificity hack.
Slide 49
Block
Slide 50
Slide 51
CUBE CSS
BEM
Slide 52
Bring your own opinions (slightly risky)
Slide 53
CSS
Slide 54
CSS
Slide 55
Extend the work already done by CSS, composition and utility Apply a collection of design tokens within a concise group Create a namespace or specificity boost
Slide 56
Grow to anything larger than a handful of CSS rules (max 80-100 lines) Solve more than one contextual problem
Slide 57
Exception
Slide 58
Slide 59
Slide 60
HTML
Slide 61
CSS
Slide 62
Principles
Slide 63
Pls do this layout thx
Slide 64
Progressive Enhancement for the win
Slide 65
https://swop.link/pe
Slide 66
Bye Bye AutoPrefixer we will not miss you
Slide 67
Abstraction only when necessary
Slide 68
Any technology is fine just keep the output light
Slide 69
Wrapping up
Slide 70
IT’S A LIE
Slide 71
Slide 72
https://cube.fyi
Slide 73
Thank you Use code TECHNICA11Y_PALS to save 40% off Learn Eleventy From Scratch https://swop.link/11ty-cube
Slide 74
Slide 75
Thank you Use code TECHNICA11Y_PALS to save 40% off Learn Eleventy From Scratch https://swop.link/11ty-cube