Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Welcome CSS LV5
Search
Afonso Pacifer
August 29, 2020
Programming
0
180
Welcome CSS LV5
Afonso Pacifer
August 29, 2020
Tweet
Share
More Decks by Afonso Pacifer
See All by Afonso Pacifer
Do Zero ao Sênior Apenas com Projetos Open Source
afonsopacifer
0
7
Guia para se tornar uma Pessoa Desenvolvedora Front-end Especialista
afonsopacifer
0
15
Recriando o React do Zero em 10 minutos
afonsopacifer
0
21
O CAMINHO PARA SE TORNAR UM(A) MESTRE(A) DOS ESTILOS COM CSS LV 5.
afonsopacifer
0
110
HTML 5.3: O que existe além de a11y e SEO?
afonsopacifer
0
79
State of JS 2022
afonsopacifer
0
190
No pain no gain
afonsopacifer
0
150
A liberdade vem do Ether
afonsopacifer
0
39
Front-End 101: A resposta sobre “estudar a base”
afonsopacifer
4
550
Other Decks in Programming
See All in Programming
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
140
Exploring the Gradually Lost Technical Skills in the Cloud Native Era
hwchiu
2
3.9k
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
81k
今こそ始める、CDKコンストラクトライブラリ開発 ― 入門から実践まで
tmokmss
1
930
大規模マルチテナントを解決するYugabyteDBという選択肢
nnaka2992
1
250
CSC307 Lecture 11
javiergs
PRO
0
240
Play Billing Library 7.0.0 変更点まとめ@potatotips#88
kako351
0
160
GraphQL はいいぞ! ~Laravel で学ぶ GraphQL 入門~
azuki
1
160
AWS CDKにおける「再利用性」を考える / aws-cdk-reusability
gotok365
6
1.3k
유연한 Composable 설계
l2hyunwoo
0
380
企業向け生成AIアプリの 開発から得られた知見
takaakikakei
0
310
小さな開発会社を作った理由
polidog
0
1.9k
Featured
See All Featured
Become a Pro
speakerdeck
PRO
15
4.8k
What’s in a name? Adding method to the madness
productmarketing
PRO
21
2.9k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
YesSQL, Process and Tooling at Scale
rocio
166
14k
The Art of Programming - Codeland 2020
erikaheidi
48
13k
Building a Modern Day E-commerce SEO Strategy
aleyda
25
6.7k
Building a Scalable Design System with Sketch
lauravandoore
458
32k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
26
1.8k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
245
1.2M
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
29
2.5k
In The Pink: A Labor of Love
frogandcode
139
22k
Designing on Purpose - Digital PM Summit 2013
jponch
113
6.6k
Transcript
...
- My English is terrible Warnings: - My first talk
in English - Puedes preguntar en español
@afonsopacifer Bienvenida CSS Lv5.
Afonso Pacifer. Principal JS developer at @valleweb Host at @frontendbr
Co-organizer at @meetupcss Former CSS evangelist @afonsopacifer afonsopacifer.github.io
Brazil Community.
None
None
None
None
CSS LV5?
What? What happens To CSS4?
WTF! CSS 5?
Lek,
Back to base
World Wide Web Consortium https://www.w3.org/
Write Specs Implement Features
CSS 4 ? CSS 5 ?
Understanding the past to explain the future
CSS short timeline
1994 Håkon Wium Lie starts the first CSS draft. The
first presentation about CSS happened in Chicago at the WWW Conference. Bert Boss interested in the idea started helping the project.
1995 This year, In the same conference, the W3C became
interested. The first e-mail list about CSS was created.
1996 W3C released the CSS 1.0 specification. Internet Explorer 3
as the first browser to support CSS, followed by Netscape 4 and Opera 3.5.
1997 The CSS Working Group It was officially created.
1998 W3C released the CSS 2.0 specification. Erick Mayer release
the developer suit for Opera. This project improving the browser CSS support.
2011 W3C released the CSS 2.1.
2014 W3C released the HTML 5 bundle. The CSS3 leaves
the draft status to become a recommendation.
1994 1995 1996 1997 1998 2011 2014 2020 CSS 2.0
CSS 2.1
The solution?
CSS 3
Much more than animations, flexbox, borders, etc…
CSS 2.1 CSS 3 All CSS Specs Version 2.1 Flex
box Selectors Grid Layout Custom properties Media queries LV 1 LV 1 LV 2 LV 4 LV 5 Modules Monolith
A global CSS 4 or CSS 5 Don't make sense
What happens inside a level?
Working Draft WD Canditate Recommendation CR Proposed Recommendation PR Recommendation
REC
My Tips and Tricks
Follow the Editors
Help the Editors
Study the Specs
Example!
CSS Color Module Level 5 https://www.w3.org/TR/css-color-5/
None
Dynamically adjust color without preprocessors
color-mix() Take two colors and mixing them
mix-color( ) #ff0000 #00ff2f
Browsers Support?
None
Why?
Lets understand
rgb(255, 0, 0) #ff0000 lch(54, 106, 40) lightness: 54.2917% chroma:
106.8390 hue: 40.8526
https://lea.verou.me/2020/04/lch-colors-in-css-what-why-and-how/
mix-color(#ff0000 #ffff00 ) 60% 40% 60%
How mix-color() work
60% 40% + Mixed lightness lch(C1_L, C1_C, C1_H) lch(C2_L, C2_C,
C2_H) C1_L * 60/100 + C2_L * 40/100 = X Mixed chroma C1_C * 60/100 + C2_C * 40/100 = Y Mixed hue C1_H * 60/100 + C2_H * 40/100 = z Result: lch(x, y, z)
None
CSS is easy to learn But its very very hard
to become an expert “
color-contrast() Select the better contrast following the WCAG
None
color-contrast( ) contrast ratio: 1.6 contrast ratio: 3.99 contrast ratio:
1.07 white #ccc, red, yellow
Better A11y .button { color :color-contrast(var(—bg) var(--theme-a), var(—theme-b)); } Custom
Design Systems Easy dark mode
Browsers Support?
None
None
And many others Cool functions
CSS Colors lv5 Is the future
Polyfill?
The Dark Side of Polyfilling CSS https://philipwalton.com/articles/the-dark-side-of-polyfilling-css/
My new side project: css-color-polyfill
CSS Houdini https://developer.mozilla.org/en-US/docs/Web/Houdini
Final tips!
https://14habits.com/
Empieza a hacer lo que no sabes, y la evolución
será solo una consecuencia - Afonso Pacifer “
@afonsopacifer afonsopacifer.github.io Gracias.