Designing with Grid — Generate NYC

D83926c323d4f9289f947b4b4e76b939?s=47 Jen Simmons
April 28, 2017

Designing with Grid — Generate NYC

D83926c323d4f9289f947b4b4e76b939?s=128

Jen Simmons

April 28, 2017
Tweet

Transcript

  1. Designing With Grid Generate NYC @jenSimmons

  2. CSS Grid

  3. None
  4. None
  5. None
  6. Our medium is not done

  7. CSS Grid revolutionizes web design — page layout on the

    web.
  8. Layout on the web

  9. None
  10. None
  11. None
  12. None
  13. None
  14. None
  15. None
  16. None
  17. None
  18. None
  19. 6

  20. None
  21. None
  22. None
  23. None
  24. None
  25. None
  26. None
  27. None
  28. None
  29. None
  30. None
  31. None
  32. None
  33. None
  34. None
  35. None
  36. photo by Brad Frost, 2012, CC BY 2.0

  37. None
  38. A C B A C B A C B A

    C B
  39. None
  40. None
  41. None
  42. None
  43. starter-kit

  44. Nicole Sullivan 2008 Ana Debenham 2011 Brad Frost 2013 D"igning

    Systems of Components
  45. color palette typography palette layout palette

  46. None
  47. The Official Timeline of Web Page Layout

  48. CSS Grid Flexbox Alignment Writing Modes Multicolumn Viewport Units Transforms

    Object Fit Clip-path Masking Shape-outside Initial-letter
  49. CSS Grid Flexbox Alignment Writing Modes Multicolumn Viewport Units Transforms

    Object Fit Clip-path Masking Shape-outside Initial-letter Flow Floats Block Inline Inline-block Display:table Margin Negative margins Padding everything else in CSS
  50. This new CSS revolutionizes web page layout.

  51. None
  52. CSS Grid

  53. None
  54. None
  55. labs.jensimmons.com

  56. Grid Area Grid Line Grid Track Grid Track Grid Cell

    Grid Line Grid Line Grid Line Grid Line
  57. Grid Container

  58. Grid Items

  59. <body> <header>…</header> <main> <article> <h1> <p> <p> <p> <figure> <p>

    </article> </main> <aside>…</aside> <footer>…</footer> </body> body { display: grid; grid-template-columns: // some sort of code; }
  60. <body> <header>…</header> <main> <article> <h1> <p> <p> <p> <figure> <p>

    </article> </main> <aside>…</aside> <footer>…</footer> </body> body { display: grid; grid-template-columns: // some sort of code; } article { display: grid; grid-template-columns: // some sort of code; }
  61. .container { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr);

    } .item { grid-column-start: 2; grid-column-end: 4; grid-row-start: 1; grid-row-end: 3; } 1 2 3 4 2 3 4 1 5
  62. Nature of CSS Grid

  63. explicit vs. implicit

  64. You define #e size and/or number of rows and/or columns

    Let #e browser define number or size of rows (or columns)
  65. Place each $em 
 into a specific 
 cell or

    area Let #e browser place every#ing using auto-placement algor$hm
  66. Rows *and* Columns

  67. ROWS!!!!!!!!!!!

  68. None
  69. None
  70. Tracks don’t have to all be the same size.

  71. None
  72. None
  73. Content sized by the size of a track.

  74. Tracks sized by the size of content.

  75. 2 portions of available 
 space set by 
 content

    size fixed 1 portion of available 
 space
  76. Content doesn’t have to fill a track.

  77. None
  78. None
  79. start center end justify-items: s t r e t c

    h
  80. start center end align-items: s t r e t c

    h
  81. None
  82. None
  83. You can use Grid to line things up. Or not.

  84. What shall we do with CSS Grid?

  85. How do we know 
 where to put things?

  86. None
  87. visual hierarchy

  88. visual hierarchy Lorem ipsum dolor sit amet FUSCE UT TURPIS

    SIT AMET
  89. symmetry

  90. asymmetry

  91. symmetry

  92. asymmetry

  93. proxim$y

  94. proxim$y

  95. dens$y

  96. dens$y

  97. My deep respect for form and positive and negative space

    comes from studying Frank Lloyd Wright ’s idea of compression and expansion. You walk into a F.L.W. building and the entrance way is so small it makes you almost dip your head. And then as soon as you walk into the main room, he blows up the space, and it makes you feel ‘oh, that ’s so good’. — Platon, photographer “
  98. Graphic design for the web

  99. Graphic design of the web

  100. labs.jensimmons.com

  101. What I’ve Discovered in 6 parts

  102. 1. Overlap

  103. from Designing the Editorial Experience, Sue Apfelbaum and Juliette Cezzar

  104. labs.jensimmons.com/2017/01-003.html

  105. None
  106. labs.jensimmons.com/2017/01-002.html

  107. labs.jensimmons.com/2017/01-002.html

  108. labs.jensimmons.com/2017/01-018.html

  109. labs.jensimmons.com/2017/02-001.html

  110. Overlap

  111. 2, The Viewport

  112. None
  113. None
  114. None
  115. None
  116. None
  117. None
  118. None
  119. None
  120. None
  121. None
  122. storyboards

  123. Storyboards for Star Wars, directed by George Lucas. Spartacus, directed

    by Stanley Kubrick. Storyboards created by Saul Bass.
  124. None
  125. None
  126. None
  127. Grid rows & columns Alignment Viewport Units

  128. labs.jensimmons.com/2017/01-008.html

  129. labs.jensimmons.com/2017/01-010.html

  130. Viewport Units 50vh 25vh 50vw 25vh 50vw

  131. Viewport Units 50vmin 100vh

  132. None
  133. None
  134. None
  135. Framing

  136. what does it mean to have a 
 reading experience

    with 
 a frame, where things move in and out of that frame?
  137. what does it mean to have a 
 interaction experience

    with a frame, where things move in and out of that frame?
  138. The Viewport

  139. 3. White Space

  140. “ THE VIGNELLI CANON Great designs can be achieved without

    the use of the grid, but the grid is a very useful tool to guarantee results. Ultimately the most important tool is the management of the white space in layouts. It is the white space that makes the layout sing. Bad layouts have no space left for breathing — every little space is covered by a cacophony of type sizes, images, and screaming titles.
  141. None
  142. labs.jensimmons.com/2017/01-003.html

  143. None
  144. White Space

  145. 4. Verticality

  146. None
  147. None
  148. None
  149. photo by Fan Ho

  150. photos by Fan Ho

  151. labs.jensimmons.com/2017/01-020.html

  152. None
  153. Verticality

  154. 5. Flexibility

  155. px em % pixels (or rem) percents 60px 10em 20%

  156. min-content max-content fr minmax()

  157. None
  158. None
  159. labs.jensimmons.com/2017/01-007.html

  160. None
  161. This is a phrase with several words. This is a

    phrase with several words. This is a phrase with several words.
  162. None
  163. None
  164. None
  165. fr unit = “fraction”

  166. None
  167. 100% 33% 33% 33%

  168. 100% 33.33333% 33.33333% 33.33333%

  169. 100% 33.33333% 33.33333% 33.33333%

  170. 100% 33% 33% 33% 2% 2%

  171. 100% 32% 32% 32% 2% 2% 100% – 4% =

    96% = 32% 3 3
  172. 100% 31.333% 31.333% 31.333% 3% 3% 100% – 6% =

    94% = 31.333% 3 3
  173. 100% 31.666% 31.666% 31.666% 2.5% 2.5% 100% – 5% =

    95% = 31.666666666666666% 3 3
  174. 100% x x x 2em 2em @media (min-width: 600px) {

    .box { width: calc(100-(2*2em)/3)%;}} @media (min-width: 800px) { .box { width: calc(100-(3*2em)/4)%;}} @media (min-width: 400px) { .box { width: calc(100-(1*2em)/2)%;}}
  175. 100% 1fr 1fr 1fr 2em 2em

  176. 1fr 1fr 1fr 2em 2em 1fr + 1fr + 1fr

    = 3fr total therefore, 1fr = 1/3 of the space
  177. 1fr 1fr 1fr 2em 2em 1fr + 1fr + 1fr

    + 1fr = 4fr total therefore, now 1fr = 1/4 of the space 1fr 2em
  178. 100px 1fr 1fr 1fr 1fr 100px

  179. 2fr 1fr 50px 1fr min-content

  180. 6fr 2.4fr 1fr 2.4fr 2fr

  181. None
  182. from alistapart.com/article/content-out-layout

  183. minmax()

  184. labs.jensimmons.com/2017/01-016.html

  185. grid-template-columns: 100px 1fr 1fr minmax(40ch, 65ch) 1fr; 1fr 1fr 100px

    1fr minmax(40ch, 65ch)
  186. None
  187. “pixel perfect ”

  188. What happens when parts of the content / interface are

    ‘missing’? Or are shorter / longer than ‘ideal’?
  189. Design the flexibility model.

  190. Flexibility

  191. 6. Creativity

  192. labs.jensimmons.com/2017/01-004.html

  193. None
  194. Time to play.
 Time to learn.

  195. www.layout.land

  196. Modern Layouts: 
 Getting Out of Our Ruts Revolutionize Your

    Page: 
 Real Art Direction on the Web 2015 2016 available on jensimmons.com
  197. jensimmons.com/post/feb-27-2017/learn-css-grid

  198. None
  199. labs.jensimmons.com

  200. None
  201. None
  202. Time to explore.

  203. A basic design is functional. 
 A great one will

    
 say something.” — Tinker Hatfield, shoe designer for Nike “
  204. jensimmons.com @jensimmons layout.land labs.jensimmons.com