Slide 1

Slide 1 text

Yeah, that's a big title.

Slide 2

Slide 2 text

Hello

Slide 3

Slide 3 text

So, CSS…

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

Can be hard, right?

Slide 6

Slide 6 text

✋ Do you "Front-End"?

Slide 7

Slide 7 text

Do you write CSS? ✍

Slide 8

Slide 8 text

Still remember your last CSS nightmare?

Slide 9

Slide 9 text

I'm Caneco Full-Stack Developer @MEDICARE

Slide 10

Slide 10 text

I'm Caneco .PHP .JS .HTML .CSS .JSON .SQL .GIT .BASH .SVG .PNG .PSD .AI

Slide 11

Slide 11 text

Yeah, that's a big title.

Slide 12

Slide 12 text

Once upon a time…

Slide 13

Slide 13 text

Before CSS was cool

Slide 14

Slide 14 text

¸

Lorem Ipsum !!

1. 2. 3.

Slide 15

Slide 15 text

And then in 1996

Slide 16

Slide 16 text

¸ p { font-size: 16px; color: red; } 1. 2. 3. 4.

Slide 17

Slide 17 text

Finally it was easy to style

Slide 18

Slide 18 text

Browsers started to adopt CSS

Slide 19

Slide 19 text

Even Internet Explorer had 99% CCS1 support in 2000

Slide 20

Slide 20 text

Even Internet Explorer had 99% CCS1 support in 2000 for the Macintosh https://en.wikipedia.org/wiki/Cascading_Style_Sheets

Slide 21

Slide 21 text

CSS Zen Garden (

Slide 22

Slide 22 text

THEME-2.CSS INDEX.HTML THEME-3.CSS THEME-1.CSS

Slide 23

Slide 23 text

Tradicional CSS

Slide 24

Slide 24 text

!
!!...!
!!...!
!
1. 2. 3. 4. 5. 6. 7.

Slide 25

Slide 25 text

¸ #author .picture {!!...} #author .picture .rounded {!!...} #author .name {!!...} #author .description {!!...} #author ul > li b.item {!!...} 1. 2. 3. 4. 5.

Slide 26

Slide 26 text

Introducing BEM
 block!__element!--modifier

Slide 27

Slide 27 text

¸ #author .picture {!!...} #author .picture .rounded {!!...} #author .name {!!...} #author .description {!!...} #author ul > li b.item {!!...} 1. 2. 3. 4. 5.

Slide 28

Slide 28 text

.author!__picture {!!...} .author!__picture!--rounded {!!...} .author!__name {!!...} .author!__description {!!...} .author!__item {!!...} 1. 2. 3. 4. 5.

Slide 29

Slide 29 text

!!...!
!!...!
!
1. 2. 3. 4. 5. 6. 7.

Slide 30

Slide 30 text

Author Block

Slide 31

Slide 31 text

A wild Stakeholder appears DISCLAIMER: NOTHING AGAINS ANY STAKEHOLDER !important

Slide 32

Slide 32 text

Author Block NEW Post Block

Slide 33

Slide 33 text

How to stay "Semantic"?

Slide 34

Slide 34 text

¸
!!...!
!!...!
!
1. 2. 3. 4. 5. 6. 7.

Slide 35

Slide 35 text

¸
!!...!
!!...!
!
1. 2. 3. 4. 5. 6. 7.

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

A wild Stakeholder appears A wild Stakeholder appears

Slide 38

Slide 38 text

Can you pull that CTA section up?

Slide 39

Slide 39 text

Erm… sure

Slide 40

Slide 40 text

What about that space?

Slide 41

Slide 41 text

¸ .intro!--no-padding-bottom { padding-bottom: 0; } 1. 2. 3.

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

A wild Stakeholder appears A wild Stakeholder appears A wild Stakeholder appears

Slide 44

Slide 44 text

Can you duplicate the page? But the hero can't have a background.

Slide 45

Slide 45 text

What about that space?

Slide 46

Slide 46 text

¸ .hero!--no-background { background-image: none; } .hero!__title!--dark { color: '#2f365f'; } .intro!--no-padding-bottom { padding-bottom: 0; } 1. 2. 3. 4. 5. 6. 7. 8. 9.

Slide 47

Slide 47 text

Update CSS is hard

Slide 48

Slide 48 text

Delete CSS is harder

Slide 49

Slide 49 text

CSS is at least unpredictable

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

.author!__picture {!!...} .author!__picture!--rounded {!!...} .author!__name {!!...} .author!__description {!!...} .block!__A!--no-padding {!!...} .block!__B!--no-margin {!!...} .block!__C!--no-margin-top {!!...} .block!__D!--tet-left {!!...} 1. 2. 3. 4. 5. 6. 7. 8. 9.

Slide 52

Slide 52 text

!important

Slide 53

Slide 53 text

.author!__picture {!!...} .author!__picture!--rounded {!!...} .author!__name {!!...} .author!__description {!!...} .block!__A!--no-padding {!!...} .block!__B!--no-margin {!!...} .block!__C!--no-margin-top {!!...} .block!__D!--text-left {!!...} .block!__E!--again { screw: 'it' !important } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

Slide 54

Slide 54 text

Piling up CSS becomes much easier

Slide 55

Slide 55 text

Time Time Time Time Traditional CSS

Slide 56

Slide 56 text

BEM doesn't work (well) with ASAP requests

Slide 57

Slide 57 text

Not to mention >_ npm run build:css

Slide 58

Slide 58 text

But, let's take a step back…

Slide 59

Slide 59 text

.author!__picture {!!...} .author!__picture!--rounded {!!...} .author!__name {!!...} .author!__description {!!...} .block!__A!--no-padding {!!...} .block!__B!--no-margin {!!...} .block!__C!--no-margin-top {!!...} .block!__D!--text-left {!!...} .block!__E!--again { screw: 'it' !important } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

Slide 60

Slide 60 text

.author!__picture {!!...} .author!__picture!--rounded {!!...} .author!__name {!!...} .author!__description {!!...} .block!__A!--no-padding {!!...} .block!__B!--no-margin {!!...} .block!__C!--no-margin-top {!!...} .block!__D!--text-left {!!...} .block!__E!--again { screw: 'it' !important } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

Slide 61

Slide 61 text

Isn't that utility classes?

Slide 62

Slide 62 text

.author!__picture {!!...} .author!__picture!--rounded {!!...} .author!__name {!!...} .author!__description {!!...} .block!__A!--no-padding {!!...} .block!__B!--no-margin {!!...} .block!__C!--no-margin-top {!!...} .block!__D!--text-left {!!...} .block!__E!--again { screw: 'it' !important } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

It's like sprinkling sugar

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

What if we go all-in?

Slide 67

Slide 67 text

¸ !!...! 1.

Slide 68

Slide 68 text

¸ !!...! 1. 2. 3.

Slide 69

Slide 69 text

It's like LEGO LEGO

Slide 70

Slide 70 text

…or an API for design

Slide 71

Slide 71 text

Presenting utility-first CSS
 text-black text-5xl font-sans text-center

Slide 72

Slide 72 text

There's many solutions

Slide 73

Slide 73 text

Atomic CSS 
 Fl(start) W(300px) Ta(c) P(10px) C(#0280ae)

Slide 74

Slide 74 text

Tachyons CSS 
 br-100 ba h3 w3 dib

Slide 75

Slide 75 text

Tailwind CSS 
 bg-blue text-sm border-b-2 uppercase px-4

Slide 76

Slide 76 text

Better just use inline styles…

Slide 77

Slide 77 text

¸ !!...! 1. 2. 3. 4. 5. 6.

Slide 78

Slide 78 text

How can you handle? @media @keyframes !::pseudo !--prefix

Slide 79

Slide 79 text

You gain a design system bg-blue text-grey text-xl

Slide 80

Slide 80 text

But most !important… You have the rendering speed

Slide 81

Slide 81 text

UI elements without writing CSS

Slide 82

Slide 82 text

(NEW) UI elements without writing (NEW) CSS

Slide 83

Slide 83 text

Dependency shift

Slide 84

Slide 84 text

TW.CSS HOME.HTML APP.HTML LEAD.HTML

Slide 85

Slide 85 text

Also ship once and you're good ⛴

Slide 86

Slide 86 text

Time Time Time Time Traditional CSS Utilities CSS

Slide 87

Slide 87 text

Gotta be honest…

Slide 88

Slide 88 text

It can be a bit verbose

Slide 89

Slide 89 text

¸ 1. 2. 3. 4. 5. 6. 7.

Slide 90

Slide 90 text

No content

Slide 91

Slide 91 text

How to abstract/simplify?

Slide 92

Slide 92 text

Using CSS

Slide 93

Slide 93 text

¸ .btn { @apply rounded px-4 py-3 } !!! ! 1. 2. 3. 4. 5. 6. 7.

Slide 94

Slide 94 text

Using PHP

Slide 95

Slide 95 text

¸ !!! !

Slide 96

Slide 96 text

Using JavaScript

Slide 97

Slide 97 text

¸ !// NavLink.vue

Slide 98

Slide 98 text

Designers Developers

Slide 99

Slide 99 text

Designers & Developers

Slide 100

Slide 100 text

And for the last year

Slide 101

Slide 101 text

1. Become a lot faster

Slide 102

Slide 102 text

You don't need to rely on any "Bootstrap"

Slide 103

Slide 103 text

2. Less fear of changes

Slide 104

Slide 104 text

Even update the CSS framework is simpler

Slide 105

Slide 105 text

3. Updating projects it's easier

Slide 106

Slide 106 text

Adding a new UI element to 6 month project

Slide 107

Slide 107 text

For me it's a no-brainer

Slide 108

Slide 108 text

Is this for you?

Slide 109

Slide 109 text

Thank you

Slide 110

Slide 110 text

No content