{"componentChunkName":"component---src-templates-index-jsx","path":"/","result":{"data":{"allContentfulWork":{"edges":[{"node":{"title":"Compass","id":"dafb0929-607c-5aeb-b6ea-6f4b556eeee9","publishDate":"Feb 04, 2020","heroImage":{"title":"Compass","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/28cdf29628a38211.jpg","srcSet":"/archive/v3/ctf/307c3105f3c3be49.jpg 450w,\n/archive/v3/ctf/d02ec28afd074109.jpg 900w,\n/archive/v3/ctf/f3e393580ac35460.jpg 1200w","srcWebp":"/archive/v3/ctf/ee820d4832b8f678.webp","srcSetWebp":"/archive/v3/ctf/300a3af2f164c86f.webp 450w,\n/archive/v3/ctf/21e9e931aee4909e.webp 900w,\n/archive/v3/ctf/ad2b876a37c58307.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>A web app for exploring historical health data, built at Hart.</p>\n<p>I built the application's front-end, composing its interface from our internal design system to keep it consistent with the rest of the product suite.</p>\n<p>Stack: React, internal design system</p>","excerpt":"A web app for exploring historical health data, built at Hart. I built the…"}}}},{"node":{"title":"Hart.com","id":"04e91cd3-f66f-5f2b-bc75-34f30d0aae30","publishDate":"Oct 09, 2018","heroImage":{"title":"Hart.com","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/52d9d1bcab877da3.jpg","srcSet":"/archive/v3/ctf/d640d7f4161adff6.jpg 450w,\n/archive/v3/ctf/ab9d7811816093e6.jpg 900w,\n/archive/v3/ctf/878bc13a86e7f091.jpg 1200w","srcWebp":"/archive/v3/ctf/40928c5e467f2bfa.webp","srcSetWebp":"/archive/v3/ctf/c321f8305363e7d0.webp 450w,\n/archive/v3/ctf/45b22a2111e0d404.webp 900w,\n/archive/v3/ctf/9823bf3091f34af7.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>A refresh of Hart's marketing website.</p>\n<p>I owned the front-end build, partnering with a designer and a second developer to deliver a fast, statically generated site with a themeable component layer.</p>\n<p>Stack: Gatsby, Prismic, styled-components</p>","excerpt":"A refresh of Hart's marketing website. I owned the front-end build, partnering…"}}}},{"node":{"title":"Edgilife Insights","id":"698c79c4-f8ca-595a-814c-60e3593d350e","publishDate":"Jan 16, 2018","heroImage":{"title":"Edgilife Insights","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/0cb2bfb5537782c2.jpg","srcSet":"/archive/v3/ctf/5474695154329c14.jpg 450w,\n/archive/v3/ctf/ddc6eba7abcb0785.jpg 900w,\n/archive/v3/ctf/1ace5e49da807def.jpg 1200w","srcWebp":"/archive/v3/ctf/8bdddc5abf42fa97.webp","srcSetWebp":"/archive/v3/ctf/2c70cc6a9361e4cd.webp 450w,\n/archive/v3/ctf/cce19c428c4bdc81.webp 900w,\n/archive/v3/ctf/eb83c743ef49f30f.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>A product-testing platform that gave food brands fast consumer feedback, an agile alternative to traditional focus groups. Later rebranded SN Insights after SnackNation's acquisition.</p>\n<p>I owned front-end development of the brand-facing insights dashboard as part of the product team at Love With Food.</p>\n<p>Stack: Ruby on Rails, JavaScript, CSS</p>","excerpt":"A product-testing platform that gave food brands fast consumer feedback, an…"}}}},{"node":{"title":"Shay Designs v3","id":"8249e26d-eb6e-550d-9a55-62666af4f6c9","publishDate":"Sep 13, 2017","heroImage":{"title":"Shay Designs v3","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/60bf6e9300cba8de.jpg","srcSet":"/archive/v3/ctf/b7af4ced8ab07e6b.jpg 450w,\n/archive/v3/ctf/bc23c7353c5b2fd4.jpg 900w,\n/archive/v3/ctf/c4e3bdf751592d9f.jpg 1200w","srcWebp":"/archive/v3/ctf/3aef0dd2395fc93b.webp","srcSetWebp":"/archive/v3/ctf/7a853f9b28063a6a.webp 450w,\n/archive/v3/ctf/fb4d71993cd1d9c2.webp 900w,\n/archive/v3/ctf/5e5659c5abaa456e.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>A jewelry ecommerce store for an independent small business.</p>\n<p>I led a re-platforming from WordPress to Shopify, reducing hosting and maintenance costs and cutting the time needed to ship changes.</p>\n<p>Stack: Shopify</p>","excerpt":"A jewelry ecommerce store for an independent small business. I led a re…"}}}},{"node":{"title":"Love With Food","id":"955cf824-79b2-5a95-ab07-98df85020b81","publishDate":"Sep 07, 2017","heroImage":{"title":"Love With Food","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/46335b55a947b889.jpg","srcSet":"/archive/v3/ctf/6621829b15e0254e.jpg 450w,\n/archive/v3/ctf/c0ca8c9e529fe475.jpg 900w,\n/archive/v3/ctf/f740eee15df27d26.jpg 1200w","srcWebp":"/archive/v3/ctf/e2a1e485631f6db7.webp","srcSetWebp":"/archive/v3/ctf/95716953bb4da916.webp 450w,\n/archive/v3/ctf/6b34a581f3bc95f1.webp 900w,\n/archive/v3/ctf/ff6ee4cd3daea852.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>A subscription snack-box ecommerce company.</p>\n<p>As an in-house front-end engineer I shipped new site features, resolved production issues, and created the company's internal style guide to standardize UI across the site.</p>\n<p>Stack: Ruby on Rails, JavaScript, CSS</p>","excerpt":"A subscription snack-box ecommerce company. As an in-house front-end engineer I…"}}}},{"node":{"title":"Revolve Clothing","id":"bb99b1e6-f657-5da6-818c-c0908d2abadf","publishDate":"Sep 15, 2016","heroImage":{"title":"Revolve Clothing","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/17ce0f002cdf6e94.jpg","srcSet":"/archive/v3/ctf/d4a6fc6d41d6d917.jpg 450w,\n/archive/v3/ctf/6a9e7e094e625188.jpg 900w,\n/archive/v3/ctf/c1d3aa8c5ba50ad0.jpg 1200w","srcWebp":"/archive/v3/ctf/008114127ec41d05.webp","srcSetWebp":"/archive/v3/ctf/2e9ecffa3913402e.webp 450w,\n/archive/v3/ctf/da8b77cefdc9dcbb.webp 900w,\n/archive/v3/ctf/b5fcc032b14c1a0a.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>A large fashion ecommerce retailer.</p>\n<p>As an in-house front-end engineer I shipped features and landing pages, and led an accessibility audit of the site. From those findings I planned, built, and launched a component style guide that became the foundation for rebuilding existing features to address accessibility issues.</p>\n<p>Stack: front-end web, accessibility (WCAG)</p>","excerpt":"A large fashion ecommerce retailer. As an in-house front-end engineer I shipped…"}}}},{"node":{"title":"Shay Designs v2","id":"9bc378ef-52d5-50c5-be6f-388b97b69729","publishDate":"Jun 08, 2016","heroImage":{"title":"shaydesigns-v2","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/018d8a921531aed3.jpg","srcSet":"/archive/v3/ctf/b48957668bb8cf97.jpg 450w,\n/archive/v3/ctf/ebf09f1e75eefb6e.jpg 900w,\n/archive/v3/ctf/692358c974dfcc47.jpg 1200w","srcWebp":"/archive/v3/ctf/11defae8b45f86ab.webp","srcSetWebp":"/archive/v3/ctf/15283a5f284dfd8d.webp 450w,\n/archive/v3/ctf/b8d879168fa64a89.webp 900w,\n/archive/v3/ctf/992026db9f68d083.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>A jewelry ecommerce store for an independent small business.</p>\n<p>I designed and built the store's second version, including the checkout integration with Stripe.</p>\n<p>Stack: WordPress, WooCommerce, Stripe</p>","excerpt":"A jewelry ecommerce store for an independent small business. I designed and…"}}}},{"node":{"title":"COBB Tuning","id":"39bb377f-dcd4-5094-bdd2-e036466da561","publishDate":"Mar 01, 2016","heroImage":{"title":"COBB Tuning","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/57717500df3e9e54.jpg","srcSet":"/archive/v3/ctf/67fd09595688afad.jpg 450w,\n/archive/v3/ctf/7da9b9e7d528243f.jpg 900w,\n/archive/v3/ctf/64f5ab1f3db7b378.jpg 1200w","srcWebp":"/archive/v3/ctf/5cd77870645c16d9.webp","srcSetWebp":"/archive/v3/ctf/adee900fd2cbe1c8.webp 450w,\n/archive/v3/ctf/d8bcd287f0313c7c.webp 900w,\n/archive/v3/ctf/b3e483241d142221.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>An ecommerce site for an automotive performance parts company.</p>\n<p>At an agency I owned the front-end of the site rebuild, working alongside the back-end team.</p>\n<p>Stack: WordPress, Magento</p>","excerpt":"An ecommerce site for an automotive performance parts company. At an agency I…"}}}},{"node":{"title":"Fung Consulting","id":"3a644a49-4306-55ec-8473-384b2631d656","publishDate":"Mar 05, 2015","heroImage":{"title":"fung","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/4f4b5389d350c3a1.jpg","srcSet":"/archive/v3/ctf/6fbf55019f90b9c5.jpg 450w,\n/archive/v3/ctf/985eeb44f2481ceb.jpg 900w,\n/archive/v3/ctf/ad6659d68de72c33.jpg 1200w","srcWebp":"/archive/v3/ctf/e6d48a4783b89792.webp","srcSetWebp":"/archive/v3/ctf/db73ef98b38870dc.webp 450w,\n/archive/v3/ctf/15346a0665308d01.webp 900w,\n/archive/v3/ctf/1c8744d258740012.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>A multilingual brochure site for a consulting firm (not launched).</p>\n<p>As a freelancer partnering with a designer, I handled WordPress theme development, multilingual content structure, and the front-end build.</p>\n<p>Stack: WordPress</p>","excerpt":"A multilingual brochure site for a consulting firm (not launched). As a…"}}}},{"node":{"title":"Edge","id":"7622117f-396a-50da-aee2-22b30da15e4a","publishDate":"Dec 10, 2014","heroImage":{"title":"Edge","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/0b8552b56edbb510.jpg","srcSet":"/archive/v3/ctf/e87ae74df49c6187.jpg 450w,\n/archive/v3/ctf/d96d1515111ddf83.jpg 900w,\n/archive/v3/ctf/83b08e75adfbe3c8.jpg 1200w","srcWebp":"/archive/v3/ctf/4dba0d936a3564ff.webp","srcSetWebp":"/archive/v3/ctf/3843f4ff12b90927.webp 450w,\n/archive/v3/ctf/1f2570f18f2f54c9.webp 900w,\n/archive/v3/ctf/f63e43b4cb670487.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>An ecommerce site for Edge Products, a maker of vehicle performance tuners.</p>\n<p>I led front-end development for the project.</p>\n<p>Stack: WordPress, Magento</p>","excerpt":"An ecommerce site for Edge Products, a maker of vehicle performance tuners. I…"}}}},{"node":{"title":"Globe Strange Rumblings","id":"df9dea31-4b9f-5ac2-bdcd-98965d58e454","publishDate":"Jul 15, 2014","heroImage":{"title":"globe-desk-1200x670","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/9ebe4e554df61b3b.jpg","srcSet":"/archive/v3/ctf/b65c8842bb2c1b0d.jpg 450w,\n/archive/v3/ctf/55c9fe82d1fb0a1b.jpg 900w,\n/archive/v3/ctf/3e945b3ef55a874a.jpg 1200w","srcWebp":"/archive/v3/ctf/cbd475d54386796f.webp","srcSetWebp":"/archive/v3/ctf/ca0c88bbdbb417fd.webp 450w,\n/archive/v3/ctf/aa6ff02458329047.webp 900w,\n/archive/v3/ctf/1307b1aa600f3d3a.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>An event landing page for Globe.</p>\n<p>I built a WordPress-powered page that let admins publish and update events on the front page without developer involvement.</p>\n<p>Stack: WordPress</p>","excerpt":"An event landing page for Globe. I built a WordPress-powered page that let…"}}}},{"node":{"title":"Teaching Kids Programming","id":"6afb0b06-0a66-5262-9b9d-e457803c5be9","publishDate":"Mar 13, 2014","heroImage":{"title":"tkp-desk-1200x670","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/44e3dea3f876e152.jpg","srcSet":"/archive/v3/ctf/3a7ec8a8aa3c9812.jpg 450w,\n/archive/v3/ctf/143d078329b8af0c.jpg 900w,\n/archive/v3/ctf/b28c9ccf262f7f8a.jpg 1200w","srcWebp":"/archive/v3/ctf/0da1c0ada5644cc8.webp","srcSetWebp":"/archive/v3/ctf/eef7951dce6fc312.webp 450w,\n/archive/v3/ctf/59f7c1c3b9cdcf07.webp 900w,\n/archive/v3/ctf/7e9dfc71c13558d4.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>A website for a kids' programming education organization.</p>\n<p>My first freelance project. Partnering with a designer, I owned WordPress theme development and the front-end build.</p>\n<p>Stack: WordPress</p>","excerpt":"A website for a kids' programming education organization. My first freelance…"}}}},{"node":{"title":"Arbor Collective","id":"91d22075-d8ab-538c-9095-58af894c19c1","publishDate":"Mar 12, 2014","heroImage":{"title":"Arbor Collective","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/98dc2b3fb8f0cbaa.jpg","srcSet":"/archive/v3/ctf/98e5355aec5f15d0.jpg 450w,\n/archive/v3/ctf/338dfeeac298fa07.jpg 900w,\n/archive/v3/ctf/dddb15dd0de8d1f5.jpg 1200w","srcWebp":"/archive/v3/ctf/a7c4f650617abb4c.webp","srcSetWebp":"/archive/v3/ctf/e20659d090e5a6bc.webp 450w,\n/archive/v3/ctf/d11cb755bf27444a.webp 900w,\n/archive/v3/ctf/6553a7b03bcbc64f.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"html":"<p>An ecommerce site for a snowboard and lifestyle brand.</p>\n<p>At an agency I contributed front-end development to the site build alongside the wider team.</p>\n<p>Stack: WordPress, Magento</p>","excerpt":"An ecommerce site for a snowboard and lifestyle brand. At an agency I…"}}}}]},"allContentfulPost":{"edges":[{"node":{"title":"The gap between engineering and design","id":"b1016ed7-5144-543a-8e64-23c53b636309","slug":"the-gap-between-engineering-and-design","publishDate":"Oct 04, 2021","heroImage":{"title":"tech-blog","fluid":{"aspectRatio":1.6,"src":"/archive/v3/ctf/26e9f97b61518422.jpg","srcSet":"/archive/v3/ctf/921bc17737f6f39f.jpg 450w,\n/archive/v3/ctf/c07065b4bbc47c19.jpg 800w","srcWebp":"/archive/v3/ctf/5a4396cb6c557b9d.webp","srcSetWebp":"/archive/v3/ctf/15e641e71dd1b1e6.webp 450w,\n/archive/v3/ctf/e4022db6987e36d7.webp 800w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"timeToRead":1,"html":"<p>More interesting finds on the subject of UX Engineering. This Clearleft episode disects the role of a Design Engineer (interchangable with UX Engineer) which explains the role as sitting at the intersection—or rather, the gap—between design and engineering.</p>\n<p><a href=\"https://podcast.clearleft.com/season03/episode02/\">https://podcast.clearleft.com/season03/episode02/</a></p>","excerpt":"More interesting finds on the subject of UX Engineering. This Clearleft episode disects the role of a Design Engineer (interchangable with UX Engineer) which explains the role as…"}}}},{"node":{"title":"Front-of-the-front-end-development job titles","id":"d9ac9160-0fa7-5d04-8b06-7d8f48cf033d","slug":"front-of-the-front-end-development-job-titles","publishDate":"Mar 07, 2021","heroImage":{"title":"Front of the front end vs back of the front end","fluid":{"aspectRatio":1.9758551307847083,"src":"/archive/v3/ctf/9aa2095952343daa.png","srcSet":"/archive/v3/ctf/8ab856d23c5d7a63.png 450w,\n/archive/v3/ctf/e7ef665f2805188f.png 900w,\n/archive/v3/ctf/7b25dc909459e6a5.png 1800w,\n/archive/v3/ctf/911231dfdde66a76.png 1964w","srcWebp":"/archive/v3/ctf/2c2dc700f4486474.webp","srcSetWebp":"/archive/v3/ctf/4338affc4e4be0fd.webp 450w,\n/archive/v3/ctf/a447b1f47e539245.webp 900w,\n/archive/v3/ctf/4e72832d3929c6f8.webp 1800w,\n/archive/v3/ctf/85f60b17e1f92cef.webp 1964w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"timeToRead":1,"html":"<p>As an Industry™, we have yet to find a title for those who work on the \"front-of-the-front-end\". My <a href=\"https://coreybruyere.com/what-is-a-ux-engineer/\">last post</a> detailed the job description of a UX Engineer and I believe that to be a fitting title for someone who works on the front-of-the-front-end, but at the end of the day, I don't mind what we call this role, as long as we collectively decide on <strong>something</strong>. I'm tired of getting tongue tied when describing myself as a front-of-the-front-end-developer!</p>\n<p>Since Chris Coyier wrote <a href=\"https://css-tricks.com/the-great-divide/\" title=\"The Great Divide\">The Great Divide</a> back in early 2019, there's been a lot of talk about titles, roles, job descriptions, and what front-end development is and how it's splintered into so many different direcitons, for better or for worse.</p>\n<p>We may not have titles and descriptions completely ironed just yet, but I'm happy we're having these conversations and moving the needle. I'm starting to see a lot more job postings with the titles like <em>UX Engineer</em>, <em>Design Systems Engineer</em>, and even <em>Design Engineer</em>.</p>\n<p>Here's some recent articles related to the topic I enjoyed reading:</p>\n<ul>\n<li><a href=\"https://geoffgraham.me/the-web-is-big-enough-for-everyone/\" title=\"The Web is Big Enough for Everyone\">The Web is Big Enough for Everyone</a></li>\n<li><a href=\"https://bradfrost.com/blog/post/front-of-the-front-end-and-back-of-the-front-end-web-development/\" title=\"Front-of-the-front-end and back-of-the-front-end web development\">Front-of-the-front-end and back-of-the-front-end web development </a></li>\n<li><a href=\"https://adactio.com/journal/17838\" title=\"Design engineer\">Design engineer</a></li>\n<li><a href=\"https://www.trysmudford.com/blog/i-think-im-a-design-engineer/\" title=\"I think I might be a design engineer...\">I think I might be a design engineer...</a></li>\n</ul>\n<p>...Along with a joke to finish this post:</p>\n<blockquote>\n<p>Two front-end developers are sitting at a bar. They have nothing to talk about.</p>\n</blockquote>","excerpt":"As an Industry™, we have yet to find a title for those who work on the \"front-of-the-front-end\". My last post detailed the job description of a UX Engineer and I believe that to be…"}}}},{"node":{"title":"What is a UX Engineer?","id":"53abc49c-02a4-5f9f-a58e-38aa5d4fa12f","slug":"what-is-a-ux-engineer","publishDate":"Jul 30, 2020","heroImage":{"title":"Screen Shot 2020-04-23 at 4.45.45 PM","fluid":{"aspectRatio":2.2007575757575757,"src":"/archive/v3/ctf/5658035c7b86eff6.png","srcSet":"/archive/v3/ctf/e1e3c21f0c57f9c0.png 450w,\n/archive/v3/ctf/b69de3ca4ca52c3e.png 900w,\n/archive/v3/ctf/5d660d8a61cd7b99.png 1162w","srcWebp":"/archive/v3/ctf/23135b8251ba8bbe.webp","srcSetWebp":"/archive/v3/ctf/70f4fdd572deb3be.webp 450w,\n/archive/v3/ctf/a846c282d9c0b17e.webp 900w,\n/archive/v3/ctf/c416d76310fdfacf.webp 1162w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"timeToRead":4,"html":"<p>A couple years ago, while searching for a new job, I was struggling with my job title as a <em>Front-End Developer</em>. I remember feeling that there wasn't a specific title for the type of front-end development that <em>I</em> was interested in. It wasn't until prominent voices in the web community started discussing the importance of style-guides, accessibility, performance, CSS maintenance, and eventually design systems, theme specs, and component library API design that I knew there were other people like me. People who, at the end of the day, are still Front-End Developers/Engineers but enjoy working on the \"front of the front-end\".</p>\n<p>Some of those early online discussions led to great articles that dissected the current state of front-end development and proposed that, as an industry, we should be writing more descriptive job postings and maybe even coming up with better job titles that are more descriptive of the job at hand instead of always falling back on the umbrella \"Front-End Developer\" title. A few of those articles and discussions can be found <a href=\"https://css-tricks.com/the-great-divide/\">here</a>, <a href=\"https://medium.com/webtraining/what-is-a-front-end-architect-12a955f96363\">here</a>, or <a href=\"https://bradfrost.com/blog/post/frontend-design-react-and-a-bridge-over-the-great-divide/\">here</a>. The first article, <a href=\"https://css-tricks.com/the-great-divide/\"><em>The Great Divide</em></a> emphasized the importance of recognizing the \"divide\" in front-end development and respecting and valuing both sides of it since both sides have much to offer.</p>\n<p>It was after reading through discussions and articles similar to the links above that I realized I wanted to focus on this side of the front-end, but it wasn't until a couple years later that I started to notice people had a name for this type of front-end position and the title for this type of a Front-End Developer is called a <em>UX Engineer</em>.</p>\n<h2 id=\"what-does-a-ux-engineer-do\" style=\"position:relative;\"><a href=\"#what-does-a-ux-engineer-do\" aria-label=\"what does a ux engineer do permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What does a UX Engineer do</h2>\n<p>A UX Engineer falls somewhere in between a Front-End Engineer and a UX Designer. They're still Front-End Engineers, but they might be a bit more design savvy and/or they understand the importance of continuous and effective collaboration with Designers. To put it simply, <em>a UX Engineer is a Front-End Engineer who focuses on the technical side of a design system</em>. I'd imagine a small and productive product team looking something like this:</p>\n<dl>\n  <dt><strong>UX Designer</strong></dt>\n  <dd>This role is focused on product design and research using tools like Figma, Adobe Creative Suite, Sketch, or Framer X to display and organize different views and components.</dd>\n  <dt><strong>UX Engineer</strong></dt>\n  <dd>This role is responsible for working with designers to create and prototype accessible and performant UI components. This role bridges the gap between Designers and Engineers while ensuring a delightful user and developer experience.</dd>\n  <dt><strong>Front-End Engineer</strong></dt>\n  <dd>Front-End Engineers are focused on what I call the \"back of the front-end\", meaning they're responsible for API calls, application architecture, state management, and other business logic-y demands on the client-side.</dd>\n  <dt><strong>Back-End Engineer</strong></dt>\n  <dd>This role can have multiple sub roles to fill demands, but to make things simple a Back-End Engineer is responsible for DevOps, managing and securing databases, handling continuous integration and more. </dd>\n</dl>\n<p>As noted above, the crucial responsibility for a UX Engineer is to build the bridge between Engineers and Designers. The tool they primarily use to bridge that gap is the <em>design system</em>, which should be composed of a library of tested and documented components, design principles, design tokens, and public (visible to your organization) documentation.</p>\n<h3 id=\"tools-of-the-trade\" style=\"position:relative;\"><a href=\"#tools-of-the-trade\" aria-label=\"tools of the trade permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Tools of the trade</h3>\n<p>This isn't an exhaustive list but below are <em>some</em> of the tools and technologies a UX Engineer might use on a day-to-day basis in 2020.</p>\n<ul>\n<li>React / Vue (component-based JS framework)</li>\n<li>styled-components / emotion</li>\n<li>Figma / Sketch</li>\n<li>theme-ui / styled-system</li>\n<li>Storybook (playground / documentation generator)</li>\n<li>Tailwind CSS</li>\n<li>Jest</li>\n<li>Typescript</li>\n</ul>\n<h3 id=\"daily-responsibilities\" style=\"position:relative;\"><a href=\"#daily-responsibilities\" aria-label=\"daily responsibilities permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Daily responsibilities</h3>\n<ul>\n<li>Write accessible and semantic HTML.</li>\n<li>Write maintainable and browser-friendly CSS.</li>\n<li>Create and maintain a library of accessible and performant components in an all-encompassing design system utilizing popular Javascript frameworks.</li>\n<li>Create and maintain a theme spec that ensures consistent UI across all components.</li>\n<li>Create a consistent API across all components to ensure ease-of-use for consumers of design system.</li>\n<li>Manage component state to effectively build UX across all states of an interactive UI.</li>\n<li>Publish and release new versions of design system that don't cause breaking changes.</li>\n<li>Write visible documentation for design system for other engineers to reference and contribute to.</li>\n<li>Implement visual, unit, and automated accessibility tests.</li>\n<li>Work with designers to make sure theme spec covers all brand guidelines, including animations, colors, and typography.</li>\n<li>Work with designers to ensure feasibility of new UX/UI</li>\n<li>Work with engineers and consumers of design system to remove any pain points of design system while ensuring a quality developer experience.</li>\n<li>Be a vocal proponent of accessibility, performance, and inclusiveness.</li>\n<li>Encourage others to contribute to the design system in the form of conversations, feedback, documentation, or code.</li>\n</ul>\n<p>At the end of the day, a UX Engineer is responsible for crafting a user-friendly experience for both:</p>\n<ol>\n<li><em>Developers</em> - in the form of clean API design, tested and working components, and visible, well-maintained documentation to ensure rapid development from engineers using the system.</li>\n<li><em>Users</em> - in the form of usable, accessible, and performant interfaces that can easily be used from a variety of users with various devices and internet connections. These experiences shouldn't be burdensome to the user, they should empower the user to use the webapp or website how they prefer while also allowing unique branding to be in place to allow the organization or company to set themselves apart from competition.</li>\n</ol>\n<p>This post might not cover all the skills and expertise that a UX Engineer might have, but I believe it to be a solid example of what a UX Engineer might look like in 2020. Let me know what you think <a href=\"https://coreybruyere.com/contact/\">via email</a>, I'm curious what other self-identified UX Engineers are working on because one day when I grow up I'm gonna be a UX Engineer! 😂</p>","excerpt":"A couple years ago, while searching for a new job, I was struggling with my job title as a Front-End Developer. I remember feeling that there wasn't a specific title for the type…"}}}},{"node":{"title":"(Temporary) 2020 site update","id":"399cd0a9-7ae4-5783-83f8-f688aca37802","slug":"temporary-2020-site-update","publishDate":"May 25, 2020","heroImage":{"title":"Hart.com","fluid":{"aspectRatio":1.791044776119403,"src":"/archive/v3/ctf/52d9d1bcab877da3.jpg","srcSet":"/archive/v3/ctf/d640d7f4161adff6.jpg 450w,\n/archive/v3/ctf/ab9d7811816093e6.jpg 900w,\n/archive/v3/ctf/878bc13a86e7f091.jpg 1200w","srcWebp":"/archive/v3/ctf/40928c5e467f2bfa.webp","srcSetWebp":"/archive/v3/ctf/c321f8305363e7d0.webp 450w,\n/archive/v3/ctf/45b22a2111e0d404.webp 900w,\n/archive/v3/ctf/9823bf3091f34af7.webp 1200w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"timeToRead":3,"html":"<h2 id=\"context\" style=\"position:relative;\"><a href=\"#context\" aria-label=\"context permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Context</h2>\n<p>I've been putting off rebuilding my personal website for quite some time now. It's easy to get hit with a wave of inspiration after seeing a rad portfolio site on one of those curated lists of best looking sites that pop up on Twitter from time to time. I've been hit with that wave of inspiration a few times since the last time I made any major updates to my personal website, which was back in late 2017 (A time when CSS Grid wasn't widely supported). I consistently kept pushing back a site rebuild knowing my portfolio was fine the way it was.</p>\n<p>Flash forward to mid 2018, when I decided I would finally rebuild my website using a modern tech stack, i.e., away from Wordpress. My tech stack of choice was Gatsby + React since I was learning a lot of React at the time. A couple months of Gatsby + React tutorials and development went by and I still had nothing to show for. I got bored with the rebuild, had some major life events come my way (engagement, wedding planning, and a new job), and was too lazy to figure out the best way to move the little content I had on Wordpress over to the static file system I had developed.</p>\n<p>This current rebuild (the site in front of your eyes) didn't become a reality until the day (early 2020) I found out a certain cloud hosting company deleted my entire droplet after 2 months of unsuccessful charges on an expired credit card. Oh well! No blame on them. I failed to set up any automatic backups on my end. While I could of propped up another droplet with a relatively recent backup I had, I decided against it. I wanted a simpler set up and wanted to continue what I set out to finish on my first go-around in mid 2018.</p>\n<h2 id=\"tech-stack\" style=\"position:relative;\"><a href=\"#tech-stack\" aria-label=\"tech stack permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Tech Stack</h2>\n<p>I decided to continue working on the tech stack I decided on in 2018, React + Gatsby. Some might argue that tech stack is overkill for a tiny portfolio site, I'd argue \"It depends\". I chose this tech stack because I want to continue applying new knowledge, creatively, in an environment where I'd like to grow as a stronger developer.</p>\n<p>As noted above, I'm utilizing React + Gatsby as the core framework for building out this static site. From there, I'm loading data via GraphQL queries from Contentful's API and I'm hosting it all for <em>FREE</em> on Netlify! All styling is handled from built out components using Rebass + emotion.</p>\n<h2 id=\"the-future\" style=\"position:relative;\"><a href=\"#the-future\" aria-label=\"the future permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>The Future</h2>\n<p>I chose this stack and the simple design (As of May 2020) to enable myself to iterate through new ideas and features that I find interesting. Being able to drop a component in favor of something else is one of the reasons I love React--everything is built at the component level! No hunting down related bits of JS and CSS you brought in from separate parts of your codebase.</p>\n<p>I'd like to implement theme-ui with Typescript before redesigning everything (I'm already planning v4). That way, I essentially have a more elegant solution than what I have built out now and can completely move away from the styled API and move towards a more consistent API for component creation via <code class=\"language-text\">sx</code> prop from theme-ui. Typescript is a must on this next iteration since I'll have access to the theme definition and will get autocomplete and intellisense which will speed up development when redesigning for v4.</p>\n<p>I'm extremely interested in this tech stack right now (primarily Typescript + theme-ui + emotion). Do you know of any other apps/sites out in the wild using this stack? If so let me know in <del>the comments</del> <a href=\"https://coreybruyere.com/contact/\">my inbox</a>. I'm always interested in seeing other people's implementations of technology I'm toying with.</p>","excerpt":"Context I've been putting off rebuilding my personal website for quite some time now. It's easy to get hit with a wave of inspiration after seeing a rad portfolio site on one of…"}}}},{"node":{"title":"CSS audit with Parker","id":"92be9949-616f-55b2-b025-db56cd33a3de","slug":"css-audit-with-parker","publishDate":"Jun 06, 2016","heroImage":{"title":"sailing-around-the-bay","fluid":{"aspectRatio":1.5100671140939597,"src":"/archive/v3/ctf/28f0ee4123a82b23.jpg","srcSet":"/archive/v3/ctf/c73bfb0cb076f919.jpg 450w,\n/archive/v3/ctf/a5309c870cb16245.jpg 900w,\n/archive/v3/ctf/5b41f2341f78844f.jpg 1800w","srcWebp":"/archive/v3/ctf/fd97ca9aea400033.webp","srcSetWebp":"/archive/v3/ctf/4ba9f255eaf40cac.webp 450w,\n/archive/v3/ctf/ad814d61e4d38a3f.webp 900w,\n/archive/v3/ctf/258b4c55c3aecc37.webp 1800w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"timeToRead":3,"html":"<p>While reading Harry Roberts’ article <a href=\"http://csswizardry.com/2016/06/improving-your-css-with-parker/\">Improving Your CSS with Parker</a>, I decided I’d follow along by auditing this very site to see what I could improve. While this is only a small portfolio/blog site, I still wanted to see what CSS improvements I could be making since I use the same base CSS framework on every project. I’m just using this post to document each metric and explain what I should be doing to improve my score. For a more in-depth explanation of Parker and each metric you should head over to the <a href=\"https://github.com/katiefenn/parker\">docs</a>.</p>\n<h3 id=\"total-stylesheets\" style=\"position:relative;\"><a href=\"#total-stylesheets\" aria-label=\"total stylesheets permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Total Stylesheets</h3>\n<p>Auditing one stylesheet, main.css</p>\n<h3 id=\"total-stylesheet-size\" style=\"position:relative;\"><a href=\"#total-stylesheet-size\" aria-label=\"total stylesheet size permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Total Stylesheet Size</h3>\n<p><strong>42990 bytes, or 42.99 KB</strong>. Not bad, seeing that the average stylesheet size is 76 KB. Then again, this is a small portfolio site. Maybe it’s time for a refractor?</p>\n<h3 id=\"total-rules-selectors-identifiers-and-declarations\" style=\"position:relative;\"><a href=\"#total-rules-selectors-identifiers-and-declarations\" aria-label=\"total rules selectors identifiers and declarations permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Total Rules, Selectors, Identifiers, and Declarations</h3>\n<p>I had to do a quick Google search to find out the difference between a selector and identifier. Here’s a crude drawing of the anatomy of a CSS rule.</p>\n<p><img src=\"/archive/v3/ctf/9b7b4a4fdc282264.jpg\" alt=\"css-rule\"></p>\n<p><code class=\"language-text\">Rules = 517</code>\n<code class=\"language-text\">Selectors = 589</code>\n<code class=\"language-text\">Identifiers = 918</code>\n<code class=\"language-text\">Declarations = 1447</code></p>\n<p>Harry also defines a custom metric by dividing <strong>Total Declarations</strong> by <strong>Total Rules</strong>, which gives us the average Declarations Per Ruleset. The lower this number is, the better. I’m content with my ~2.8 number.</p>\n<p><strong>Declartions Per Ruleset = 2.798839458</strong></p>\n<h3 id=\"selectors-per-rule\" style=\"position:relative;\"><a href=\"#selectors-per-rule\" aria-label=\"selectors per rule permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Selectors Per Rule</h3>\n<p><code class=\"language-text\">1.1392649903288201</code>. Doing good here, I just need to completely move away from the few @extends I use and use single-purpose classes instead of attaching multiple selectors to the same declarations, e.g. grouping all the various input types to the same CSS declarations.</p>\n<h3 id=\"identifiers-per-selector\" style=\"position:relative;\"><a href=\"#identifiers-per-selector\" aria-label=\"identifiers per selector permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Identifiers Per Selector:</h3>\n<p><code class=\"language-text\">1.7351443123938879</code>. Don’t nest classes to maintain a score between 1 and 2.</p>\n<h3 id=\"specificity-per-selector\" style=\"position:relative;\"><a href=\"#specificity-per-selector\" aria-label=\"specificity per selector permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Specificity Per Selector:</h3>\n<p><code class=\"language-text\">10.750424448217318</code>. Harry explains the specificity rating for this metric. Anything near a 10 is excellent, but don’t ever go over 20.\nTop Selector Specificity:</p>\n<ol start=\"41\">\n<li>Ouch, I can explain..</li>\n</ol>\n<h3 id=\"top-selector-specificity-selector\" style=\"position:relative;\"><a href=\"#top-selector-specificity-selector\" aria-label=\"top selector specificity selector permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Top Selector Specificity Selector:</h3>\n<p><code class=\"language-text\">.post__title a:visited~.post__status:after</code>. This one was necessary. I was shooting for the neat, CSS-only unread post status and it required a hefty selector.</p>\n<h3 id=\"total-id-selectors\" style=\"position:relative;\"><a href=\"#total-id-selectors\" aria-label=\"total id selectors permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Total Id Selectors:</h3>\n<p><code class=\"language-text\">0</code>. All the cool kids <strong>DON’T</strong> use ID selectors.</p>\n<h3 id=\"total-unique-colors\" style=\"position:relative;\"><a href=\"#total-unique-colors\" aria-label=\"total unique colors permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Total Unique Colors:</h3>\n<p><code class=\"language-text\">13</code>. Lucky 13.</p>\n<h3 id=\"unique-colors\" style=\"position:relative;\"><a href=\"#unique-colors\" aria-label=\"unique colors permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Unique Colors:</h3>\n<p><code class=\"language-text\">#FFFF00, #000000, #FFFFFF, #515554, #009688, #FF9800, #CFD2D2, #ACACAC, #F1F1F1, #E74C3C, #F1C40F, #2980B9, #27AE60</code></p>\n<h3 id=\"total-important-keywords\" style=\"position:relative;\"><a href=\"#total-important-keywords\" aria-label=\"total important keywords permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Total Important Keywords:</h3>\n<p><code class=\"language-text\">50</code>. All important declarations are attached to utility helpers.</p>\n<h3 id=\"total-media-queries\" style=\"position:relative;\"><a href=\"#total-media-queries\" aria-label=\"total media queries permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Total Media Queries:</h3>\n<p><code class=\"language-text\">14</code></p>\n<h3 id=\"media-queries\" style=\"position:relative;\"><a href=\"#media-queries\" aria-label=\"media queries permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Media Queries:</h3>\n<p><code class=\"language-text\">(min-width:0em), (min-width:37.5em), (min-width:64em), screen and (max-width:47.999375em), screen and (min-width:34.375em), screen and (min-width:20em), screen and (min-width:48em), screen and (min-width:64em), screen and (min-width:78.5em), screen and (min-width:100em), screen and (max-width:78.499375em), screen and (max-width:19.999375em), screen and (max-width:34.374375em), screen and (max-width:63.999375em)</code></p>","excerpt":"While reading Harry Roberts’ article Improving Your CSS with Parker, I decided I’d follow along by auditing this very site to see what I could improve. While this is only a small…"}}}},{"node":{"title":"Practical use cases for the picture element","id":"7e54470c-db49-5981-942c-a11981eaf392","slug":"practical-use-cases-for-the-picture-element","publishDate":"Feb 01, 2016","heroImage":{"title":"css-rule","fluid":{"aspectRatio":0.9847715736040609,"src":"/archive/v3/ctf/251b5b526cce50c7.jpg","srcSet":"/archive/v3/ctf/2f677f399f0407a1.jpg 388w","srcWebp":"/archive/v3/ctf/683e90762363d1a7.webp","srcSetWebp":"/archive/v3/ctf/fc305290d3d1e42d.webp 388w","sizes":"(max-width: 1800px) 100vw, 1800px"}},"body":{"childMarkdownRemark":{"timeToRead":3,"html":"<p>The brave new world of responsive images has already been explored and explained in great detail all over the web (see <a href=\"#resource-list\">resource list below</a>). Most of these resources advise against using the <code class=\"language-text\">&lt;picture/&gt;</code> element for standard images since it’s far more declarative and doesn’t allow the browser to automagically choose an image based on the user’s network and screen resolution. (hint: srcset does this, so use this method when including images you don’t need declarative control over.) If a majority of the web agrees that the <code class=\"language-text\">&lt;img/&gt;</code> tag accompanied with the new srcset and sizes attributes is the most pragmatic solution where does that leave the poor ‘ol <code class=\"language-text\">&lt;picture/&gt;</code> element? 😥</p>\n<p>The stand alone <code class=\"language-text\">&lt;img/&gt;</code> and <code class=\"language-text\">srcset</code> method trumps in all cases except art direction and type-switching fallback support. This post simply showcases these two use cases for quick reference and experimentation. For more information on the <code class=\"language-text\">&lt;picture/&gt;</code> element and the responsive images spec, refer to the list of resources below.</p>\n<h2 id=\"art-direction\" style=\"position:relative;\"><a href=\"#art-direction\" aria-label=\"art direction permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Art direction</h2>\n<p>The most pragmatic use case for the <code class=\"language-text\">&lt;picture/&gt;</code> element is art direction. The <code class=\"language-text\">srcset</code> and <code class=\"language-text\">media</code> attributes give you full control of serving different images to various viewport sizes. This comes in handy when you need to serve cropped, or different sized images to multiple viewports for art directed media or for readability purposes.</p>\n<p><a class=\"code-example\" href=\"https://codepen.io/coreybruyere/pen/zqgKxp\">Code Example</a></p>\n<div class=\"gatsby-highlight\" data-language=\"html\"><pre class=\"language-html\"><code class=\"language-html\">  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>picture</span><span class=\"token punctuation\">></span></span>\n    <span class=\"token comment\">&lt;!---[if IE 9]>&lt;video style=\"display: none;\">&lt;![endif]--></span>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>source</span> <span class=\"token attr-name\">srcset</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>/image-full.jpg<span class=\"token punctuation\">\"</span></span> <span class=\"token attr-name\">media</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>(min-width: 1024px)<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>source</span> <span class=\"token attr-name\">srcset</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>/image-close.jpg<span class=\"token punctuation\">\"</span></span> <span class=\"token attr-name\">media</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>(min-width: 768px)<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>\n    <span class=\"token comment\">&lt;!---[if IE 9]>&lt;/video>&lt;![endif]--></span>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>img</span> <span class=\"token attr-name\">src</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>/image-closer.jpg<span class=\"token punctuation\">\"</span></span> <span class=\"token attr-name\">alt</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>Image Description<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">/></span></span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>picture</span><span class=\"token punctuation\">></span></span></code></pre></div>\n<p><em>Resize your browser window and notice how cropped and resized versions are served as you resize to a smaller viewport. Notice how declarative the picture method is? Giving it a new media source at different media queries makes for a practical solution for art direction.</em></p>\n<figure>\n  <picture>\n    <source srcset=\"/archive/v3/ctf/a2eb64b5ff83da81.jpg\" media=\"(min-width: 1024px)\"/>\n    <source srcset=\"/archive/v3/ctf/051690dc322dd0b3.jpg\" media=\"(min-width: 768px)\"/>\n    <img src=\"/archive/v3/ctf/f46203a095867034.jpg\" alt=\"Twin Peaks Red Room\"/>\n  </picture>\n  <figcaption>\n    <blockquote>\n      The picture element is used when you need explicit control\n      over which source is shown at set viewport sizes.\n    </blockquote>\n    <cite>– Picturefill docs</cite>\n  </figcaption>\n</figure>\n<h2 id=\"type-switching\" style=\"position:relative;\"><a href=\"#type-switching\" aria-label=\"type switching permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Type switching</h2>\n<p>The <code class=\"language-text\">&lt;picture/&gt;</code> spec provides a <code class=\"language-text\">type</code> attribute that you can use on any nested <code class=\"language-text\">&lt;source/&gt;</code> element. This provides you with a viable fallback solution for older browser that don’t support new images formats, e.g., <code class=\"language-text\">.webp</code>, <code class=\"language-text\">.svg</code>.</p>\n<p><a class=\"code-example\" href=\"http://codepen.io/coreybruyere/pen/PNMGPY\">Code Example</a></p>\n<div class=\"gatsby-highlight\" data-language=\"html\"><pre class=\"language-html\"><code class=\"language-html\">  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>picture</span><span class=\"token punctuation\">></span></span>\n    <span class=\"token comment\">&lt;!--[if IE 9]>&lt;video style=\"display: none;\">&lt;![endif]--></span>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>source</span> <span class=\"token attr-name\">srcset</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>/pattern-example.svg<span class=\"token punctuation\">\"</span></span> <span class=\"token attr-name\">type</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>image/svg xml<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>\n    <span class=\"token comment\">&lt;!--[if IE 9]>&lt;/video>&lt;![endif]--></span>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>img</span> <span class=\"token attr-name\">src</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>/pattern-example.png<span class=\"token punctuation\">\"</span></span> <span class=\"token attr-name\">alt</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>Image Description<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">/></span></span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>picture</span><span class=\"token punctuation\">></span></span></code></pre></div>\n<figure>\n  <picture>\n    <!-- [if IE 9]><video style=\"display: none;\"><![endif]-->\n    <source srcset=\" /archive/v3/ctf/17e2ba840ce3e871.svg\" type=\"image/svg+xml\" />\n    <!-- [if IE 9]></video><![endif]-->\n    <img src=\"/archive/v3/ctf/9c1a3b0977cdf06e.png\" alt=\"Image Description\"/></picture>\n  <figcaption>\n    <blockquote>The types attribute is used to send an alternate image source format only to browsers that support that format, and a fallback source to browsers that do not. Unlike existing solutions, the picture element makes these negotiations using a single request.\n    </blockquote>\n    <cite>– Picturefill Docs</cite>\n  </figcaption>\n</figure>\n<h2 id=\"resource-list\" style=\"position:relative;\"><a href=\"#resource-list\" aria-label=\"resource list permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Resource list</h2>\n<ul>\n \t<li><a href=\"http://codepen.io/Tigt/post/when-responsive-images-get-ugly#media-conditions-not-media-queries\">When Responsive Images Get Ugly</a></li>\n \t<li><a href=\"http://ericportis.com/posts/2014/srcset-sizes/\">Srcset and sizes</a></li>\n \t<li><a href=\"http://blog.cloudfour.com/dont-use-picture-most-of-the-time/\">Don’t Use Picture Most of the Time</a></li>\n \t<li><a href=\"http://sarasoueidan.com/blog/svg-picture/\">Better SVG Fallback and Art Direction With The picture Element</a></li>\n \t<li><a href=\"https://css-tricks.com/responsive-images-youre-just-changing-resolutions-use-srcset/\">Responsive Images: If you’re just changing resolutions, use srcset</a></li>\n \t<li><a href=\"http://www.smashingmagazine.com/2014/05/responsive-images-done-right-guide-picture-srcset/\">Responsive Images Done Right: A Guide To <picture> And srcset</picture></a></li>\n \t<li><a href=\"https://usecases.responsiveimages.org/\">Use Cases and Requirements for Standardizing Responsive Images</a></li>\n \t<li><a href=\"https://html.spec.whatwg.org/multipage/embedded-content.html\">Spec</a></li>\n</ul>","excerpt":"The brave new world of responsive images has already been explored and explained in great detail all over the web (see resource list below). Most of these resources advise against…"}}}}]},"contentfulHomePage":{"preHeading":"👋 I'm","heading":"Corey Bruyere","workSectionCtaHref":"#work","workSectionCtaText":"Work","aboutBody":{"childMarkdownRemark":{"html":"<p>I’m a self-taught Front-End UX Engineer based out of Long Beach, CA.</p>\n<p>Outside of the world wide web I enjoy getting outdoors with the wife, family, friends, and dogs.</p>\n<p>You can read more <a href=\"/archive/v3/about\">about me</a> or feel free to connect with me via <a href=\"https://twitter.com/coreybruyere\">Twitter</a> or email at <a href=\"https://mailto:hello@coreybruyere.com\">hello@coreybruyere.com</a>.</p>"}}}},"pageContext":{"limit":7,"skip":0,"numPages":1,"currentPage":1}},"staticQueryHashes":[]}