Slide 1

Slide 1 text

KSS A better future with

Slide 2

Slide 2 text

I’m Kyle Neath On the interwebs @kneath

Slide 3

Slide 3 text

I’m Director of Design I work at GitHub. It’s a tech thing.

Slide 4

Slide 4 text

Mostly, I discuss features write code sketch design

Slide 5

Slide 5 text

I’m ≅ Designer That label frustrates me.

Slide 6

Slide 6 text

I’m a Builder I build things with computers.

Slide 7

Slide 7 text

I like building tools To increase your potential for building rad shit

Slide 8

Slide 8 text

KSS Knyle Style Sheets This  thing  I  built

Slide 9

Slide 9 text

Knyle?

Slide 10

Slide 10 text

Kyle Neath

Slide 11

Slide 11 text

Knyle Kneath?

Slide 12

Slide 12 text

Knyle Kneath? Recruiters  love  this  kid

Slide 13

Slide 13 text

// A button suitable for giving stars to someone. // // :hover - Subtle hover highlight. // .stars-given - A highlight indicating you've already given a star. // .stars-given:hover - Subtle hover highlight on top of stars-given styling. // .disabled - Dims the button to indicate it cannot be used. // // Styleguide 2.1.3. a.button.star{ ... &.star-given{ ... } &.disabled{ ... } }

Slide 14

Slide 14 text

groan

Slide 15

Slide 15 text

warpspire.com/kss

Slide 16

Slide 16 text

Why How I built KSS I built KSS

Slide 17

Slide 17 text

Building tools is exciting! (documentation is not)

Slide 18

Slide 18 text

Why?

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

39 Pages

Slide 25

Slide 25 text

Thirty Nine

Slide 26

Slide 26 text

/** * Homepage Style * * Standard Layout (all parts) for Big Little Homepage * * This style has been designed by Mina Margin. It reflects * the composition of colors through the years of the * customers project as well as the boldness it implies. * * @project Big Little Homepage * @version 0.2.8 * @package xhtml-css * @author Mina Margin * @copyright 2008 by the author * @cssdoc version 1.0-pre * @license GPL v3 * * @colordef #fff; white * @colordef #808080; standard grey */

Slide 27

Slide 27 text

Designed for Machines

Slide 28

Slide 28 text

Get Angry! Build something better! Takeaway  #1

Slide 29

Slide 29 text

How?

Slide 30

Slide 30 text

TomDoc Photo Credit: Claude Nix

Slide 31

Slide 31 text

Designed for humans

Slide 32

Slide 32 text

Yet machine parseable

Slide 33

Slide 33 text

Explain the obvious

Slide 34

Slide 34 text

One page specification

Slide 35

Slide 35 text

This can work for CSS But where do I start?

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

USE IT FIRST If you are building a tool Takeaway  #2

Slide 38

Slide 38 text

Tools are meant to be used

Slide 39

Slide 39 text

If I’m not using it, it’s failed

Slide 40

Slide 40 text

Started using KSS before I designed KSS

Slide 41

Slide 41 text

// A button suitable for giving stars to someone. // // :hover - Subtle hover highlight. // .stars-given - A highlight indicating you've already given a star. // .stars-given:hover - Subtle hover highlight on top of stars-given styling. // .disabled - Dims the button to indicate it cannot be used. // // Styleguide 2.1.3. a.button.star{ ... &.star-given{ ... } &.disabled{ ... } }

Slide 42

Slide 42 text

// A button suitable for giving stars to someone. // // :hover - Subtle hover highlight. // .stars-given - A highlight indicating you've already given a star. // .stars-given:hover - Subtle hover highlight on top of stars-given styling. // .disabled - Dims the button to indicate it cannot be used. // // Styleguide 2.1.3. a.button.star{ ... &.star-given{ ... } &.disabled{ ... } }

Slide 43

Slide 43 text

// A button suitable for giving stars to someone. // // :hover - Subtle hover highlight. // .stars-given - A highlight indicating you've already given a star. // .stars-given:hover - Subtle hover highlight on top of stars-given styling. // .disabled - Dims the button to indicate it cannot be used. // // Styleguide 2.1.3. a.button.star{ ... &.star-given{ ... } &.disabled{ ... } }

Slide 44

Slide 44 text

// A button suitable for giving stars to someone. // // :hover - Subtle hover highlight. // .stars-given - A highlight indicating you've already given a star. // .stars-given:hover - Subtle hover highlight on top of stars-given styling. // .disabled - Dims the button to indicate it cannot be used. // // Styleguide 2.1.3. a.button.star{ ... &.star-given{ ... } &.disabled{ ... } }

Slide 45

Slide 45 text

// A button suitable for giving stars to someone. // // :hover - Subtle hover highlight. // .stars-given - A highlight indicating you'v // .stars-given:hover - Subtle hover highlight on to // .disabled - Dims the button to indicate // Part 1 of 3 THE DESCRIPTION SECTION

Slide 46

Slide 46 text

Tremendous value in the obvious

Slide 47

Slide 47 text

Should I be writing this code?

Slide 48

Slide 48 text

Explain yourself and write better code

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

:hover

Slide 51

Slide 51 text

:active

Slide 52

Slide 52 text

.primary

Slide 54

Slide 54 text

12 variations

Slide 55

Slide 55 text

Without documentation, only the author knows

Slide 56

Slide 56 text

// :hover - Subtle hover highlight. // .stars-given - A highlight indicating you'v // .stars-given:hover - Subtle hover highlight on to // .disabled - Dims the button to indicate // // Styleguide 2.1.3. a.button.star{ Part 2 of 3 THE MODIFIERS SECTION

Slide 57

Slide 57 text

I need something tangible

Slide 58

Slide 58 text

I need something to make people love documentation

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

// Styleguide 2.1.3. a.button.star{ ... &.star-given{ ... } &.disabled{ Part 3 of 3 THE STYLEGUIDE SECTION

Slide 61

Slide 61 text

Shit. I have no idea how to build a parser.

Slide 62

Slide 62 text

5 hours later…

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

First iteration TomDoc + SASS

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

Second iteration Custom parser

Slide 67

Slide 67 text

Building software is easy Just try it!

Slide 68

Slide 68 text

Benefits

Slide 69

Slide 69 text

github.com/styleguide

Slide 70

Slide 70 text

Having a styleguide has been awesome

Slide 71

Slide 71 text

Having a styleguide has been awesome an  automatically  generated

Slide 72

Slide 72 text

Having a styleguide has been awesome an  automatically  generated  living

Slide 73

Slide 73 text

Automatically generated = Never out of date

Slide 74

Slide 74 text

Living = Breaks when the site breaks

Slide 75

Slide 75 text

Hey, do we have a button for...

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

Why do we have five different boxed styles?

Slide 78

Slide 78 text

No content

Slide 79

Slide 79 text

No content

Slide 80

Slide 80 text

No content

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

No content

Slide 83

Slide 83 text

A styleguide helps you refactor

Slide 84

Slide 84 text

All I did was change the spacing a little…

Slide 85

Slide 85 text

Accidental style changes will happen

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

A styleguide is one place to test everything

Slide 88

Slide 88 text

MOVING FAST DOCUMENTATION IS ABOUT Takeaway  #3 AS A TEAM

Slide 89

Slide 89 text

CSS is growing up

Slide 90

Slide 90 text

No content

Slide 91

Slide 91 text

url('/images/testing.png')

Slide 92

Slide 92 text

url('/images/testing.png') url(/images/testing.png)

Slide 93

Slide 93 text

Relic  of  the  past We’re  onto  better  things  now

Slide 94

Slide 94 text

No content

Slide 95

Slide 95 text

We have some amazing tools

Slide 96

Slide 96 text

We have some amazing tools CSSEdit/Espresso SMACSS LESS SASS/SCSS Firebug / web inspector OOCS BOOTSTRAP BLUEPRINT compass stylus

Slide 97

Slide 97 text

None of these existed when I started

Slide 98

Slide 98 text

These tools are the future of CSS

Slide 99

Slide 99 text

Just a bunch of regular people building tools

Slide 100

Slide 100 text

The w3c is not the future of css ... Final  Takeaway

Slide 101

Slide 101 text

Final  Takeaway WE ARE

Slide 102

Slide 102 text

So go build something awesome