{"id":66790,"date":"2019-06-11T04:17:15","date_gmt":"2019-06-11T11:17:15","guid":{"rendered":"http:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/"},"modified":"2019-06-11T04:17:15","modified_gmt":"2019-06-11T11:17:15","slug":"styling-in-modern-web-apps","status":"publish","type":"post","link":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/","title":{"rendered":"Styling In Modern Web Apps"},"content":{"rendered":"<link rel=\"canonical\" href=\"https:\/\/www.smashingmagazine.com\/2019\/06\/styling-modern-web-apps\/\"><title>Styling In Modern Web Apps<\/title><\/p>\n<article>\n<header>\n<h1>Styling In Modern Web Apps<\/h1>\n<address>Ajay NS<\/address>\n<p>                  <time datetime=\"2019-06-10T14:00:59+02:00\">2019-06-10T14:00:59+02:00<\/time><time datetime=\"2019-06-11T11:06:19+00:00\">2019-06-11T11:06:19+00:00<\/time><\/header>\n<p>If you search for how to style apps for the web, you\u2019ll come across many different approaches and libraries, some even changing day by day. Block Element Modifier (BEM); preprocessors such as Less and SCSS; CSS-in-JS libraries, including JSS and styled-components; and, lately, design systems. You come across all of these in articles and blogs, tutorials and talks, and \u2014 of course \u2014 debates on Twitter.<\/p>\n<p>How do we choose between them? Why do so many approaches exist in the first place? If you\u2019re already comfortable with one method, why even consider moving to another?<\/p>\n<p>In this article, I\u2019m going to take a look at the tools I have used for production apps and sites I\u2019ve worked on, comparing features from what I\u2019ve actually encountered rather than summarizing the content from their readmes. This is my journey through <a href=\"https:\/\/www.smashingmagazine.com\/2018\/06\/bem-for-beginners\/\">BEM<\/a>, SCSS, <a href=\"https:\/\/www.smashingmagazine.com\/2017\/01\/styled-components-enforcing-best-practices-component-based-systems\/\">styled-components<\/a>, and <a href=\"https:\/\/www.smashingmagazine.com\/category\/design-systems\">design systems<\/a> in particular; but note that even if you use different libraries, the basic principles and approach remain the same for each of them.<\/p>\n<h3>CSS Back In The Day<\/h3>\n<p>When websites were just getting popular, CSS was primarily used to add funky designs to catch the user\u2019s attention, such as neon billboards on a busy street:<\/p>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/ffc58213-33f4-4dc6-85df-813e0a8c93d2\/css-back-ex.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/css-back-ex.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/ffc58213-33f4-4dc6-85df-813e0a8c93d2\/css-back-ex.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/ffc58213-33f4-4dc6-85df-813e0a8c93d2\/css-back-ex.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/ffc58213-33f4-4dc6-85df-813e0a8c93d2\/css-back-ex.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/ffc58213-33f4-4dc6-85df-813e0a8c93d2\/css-back-ex.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/css-back-ex.png?w=900\" sizes=\"100vw\" alt=\"\"><\/a><figcaption>\n      Microsoft\u2019s first site (left) and MTV\u2019s site from the early 2000s. (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/ffc58213-33f4-4dc6-85df-813e0a8c93d2\/css-back-ex.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<p>Its use wasn\u2019t for layout, sizing, or any of the basic needs we routinely use CSS for today, but as an optional add-on to make things fancy and eye-catching. As features were added to CSS, newer browsers supporting a whole new range of functionality and features appeared, and the standard for websites and user interfaces evolved \u2014 CSS became an essential part of web development.<\/p>\n<div data-component=\"FeaturePanel\" data-audience=\"non-subscriber\" data-remove=\"true\"><\/div>\n<p>It\u2019s rare to find websites without a minimum of a couple hundred lines of custom styling or a CSS framework (at least, sites that don\u2019t look generic or out of date):<\/p>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/0ca9b797-a15d-4fb0-987f-aca51fc8d395\/css-back-modern.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/css-back-modern.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/0ca9b797-a15d-4fb0-987f-aca51fc8d395\/css-back-modern.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/0ca9b797-a15d-4fb0-987f-aca51fc8d395\/css-back-modern.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/0ca9b797-a15d-4fb0-987f-aca51fc8d395\/css-back-modern.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/0ca9b797-a15d-4fb0-987f-aca51fc8d395\/css-back-modern.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/css-back-modern.png?w=900\" sizes=\"100vw\" alt=\"\"><\/a><figcaption>\n      Wired\u2019s modern responsive site from InVision\u2019s responsive web design examples post. (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/0ca9b797-a15d-4fb0-987f-aca51fc8d395\/css-back-modern.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<p>What came next is quite predictable. The complexity of user interfaces kept on increasing, along with the use of CSS; but without any guidelines suggested and with a lot of flexibility, styling became complicated and dirty. Developers had their own ways of doing things, with it all coming down to somehow getting things to look the way the design said it was supposed to be.<\/p>\n<p>This, in turn, led to a number of common issues that many developers faced, like managing big teams on a project, or maintaining a project over a long period of time, while having no clear guides. One of the main reasons this happens even now, sadly, is that CSS is still often dismissed as unimportant and not worth paying much attention to.<\/p>\n<h3>CSS Is Not Easy To Manage<\/h3>\n<p>There\u2019s nothing built into CSS for maintenance and management when it comes to large projects with teams, and so the common problems faced with CSS are:<\/p>\n<ul>\n<li>Lack of code structure or standards greatly reduces readability;<\/li>\n<li>Maintainability as project size increases;<\/li>\n<li>Specificity issues due to code not being readable in the first place.<\/li>\n<\/ul>\n<p>If you\u2019ve worked with Bootstrap, you\u2019ll have noticed you\u2019re unable to override the default styles and you might have fixed this by adding <code>!important<\/code> or considering the specificity of selectors. Think of a big project\u2019s style sheets, with their large number of classes and styles applied to each element. Working with Bootstrap would be fine because it has great documentation and it aims to be used as a solid framework for styling. This obviously won\u2019t be the case for most internal style sheets, and you\u2019ll be lost in a world of cascaded styles.<\/p>\n<p>In projects, this would be like a couple thousand lines of CSS in a single file, with comments if you\u2019re lucky. You could also see a couple of <code>!important<\/code> used to finally get certain styles to work overriding others.<\/p>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/8dfc9ac6-7677-4770-9c98-5dd1eee56e6f\/css-important-meme.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/css-important-meme.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/8dfc9ac6-7677-4770-9c98-5dd1eee56e6f\/css-important-meme.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/8dfc9ac6-7677-4770-9c98-5dd1eee56e6f\/css-important-meme.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/8dfc9ac6-7677-4770-9c98-5dd1eee56e6f\/css-important-meme.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/8dfc9ac6-7677-4770-9c98-5dd1eee56e6f\/css-important-meme.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/css-important-meme.png?w=900\" sizes=\"100vw\" alt=\"\"><\/a><figcaption>\n      !important does not fix bad CSS. (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/8dfc9ac6-7677-4770-9c98-5dd1eee56e6f\/css-important-meme.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<p>You may have faced specificity issues but not understood how specificity works. Let\u2019s take a look.<\/p>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/346b4288-8baa-435a-9ed4-f40ede30a5b5\/specificity-1.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/specificity-1.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/346b4288-8baa-435a-9ed4-f40ede30a5b5\/specificity-1.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/346b4288-8baa-435a-9ed4-f40ede30a5b5\/specificity-1.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/346b4288-8baa-435a-9ed4-f40ede30a5b5\/specificity-1.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/346b4288-8baa-435a-9ed4-f40ede30a5b5\/specificity-1.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/specificity-1.png?w=900\" sizes=\"100vw\" alt=\"\"><\/a><figcaption>\n      (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/346b4288-8baa-435a-9ed4-f40ede30a5b5\/specificity-1.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<p>Which of the styles applied to the same element would be applied to the image on the right, assuming they both point to it?<\/p>\n<p>What is the order of weight of selectors such as inline styles, IDs, classes, attributes, and elements? Okay, I made it easy there; they\u2019re in order of weight:<\/p>\n<blockquote><p>Start at <code>0<\/code>; add <code>1,000<\/code> for a style attribute; add <code>100<\/code> for each <code>id<\/code>; add <code>10<\/code> for each attribute, class or pseudo-class; add <code>1<\/code> for each element name or pseudo-element.<\/p><\/blockquote>\n<p>This is a simplified way of calculating and representing specificity which works in usual cases, but do note that the real representation would look like: (<code>0<\/code>,<code>0<\/code>,<code>0<\/code>,<code>0<\/code>). Here, the first number signifies the style attribute, second the ID, and so on. Each selector can actually have a value greater than <code>9<\/code> and it\u2019s only when there is an equal number of selectors of highest weight that selectors of lower weight are considered.<\/p>\n<p>So, for instance, taking the above example:<\/p>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/1d6a0f37-c0f5-4566-9a82-b3ded61b4e7b\/specificity-2.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/specificity-2.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/1d6a0f37-c0f5-4566-9a82-b3ded61b4e7b\/specificity-2.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/1d6a0f37-c0f5-4566-9a82-b3ded61b4e7b\/specificity-2.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/1d6a0f37-c0f5-4566-9a82-b3ded61b4e7b\/specificity-2.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/1d6a0f37-c0f5-4566-9a82-b3ded61b4e7b\/specificity-2.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/specificity-2.png?w=900\" sizes=\"100vw\" alt=\"\"><\/a><figcaption>\n      (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/1d6a0f37-c0f5-4566-9a82-b3ded61b4e7b\/specificity-2.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/189a7b3d-1f45-40df-b3cd-a1941d81dfab\/specificity-3.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/specificity-3.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/189a7b3d-1f45-40df-b3cd-a1941d81dfab\/specificity-3.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/189a7b3d-1f45-40df-b3cd-a1941d81dfab\/specificity-3.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/189a7b3d-1f45-40df-b3cd-a1941d81dfab\/specificity-3.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/189a7b3d-1f45-40df-b3cd-a1941d81dfab\/specificity-3.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/specificity-3.png?w=900\" sizes=\"100vw\" alt=\"\"><\/a><figcaption>\n      (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/189a7b3d-1f45-40df-b3cd-a1941d81dfab\/specificity-3.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<p>Do you see why the second example was the correct answer? The <code>id<\/code> selector clearly has far more weight than element selectors. This is essentially the reason why your CSS rule sometimes doesn\u2019t seem to apply. You can read about this in detail in Vitaly Friedman\u2019s article, \u201c<a href=\"https:\/\/www.smashingmagazine.com\/2007\/07\/css-specificity-things-you-should-know\/\">CSS Specificity: Things You Should Know<\/a>\u201d.<\/p>\n<p>The larger the codebase, the greater the number of classes. These might even apply to or override different styles based on specificity, so you can see how quickly it can become difficult to deal with. Over and above this we deal with code structure and maintainability: it\u2019s the same as the code in any language. We have atomic design, web components, templating engines; there\u2019s a need for the same in CSS, and so we\u2019ve got a couple of different approaches that attempt to solve these different problems.<\/p>\n<h3>Block Element Modifier (BEM)<\/h3>\n<blockquote><p>\u201cBEM is a design methodology that helps you to create reusable components and code sharing in front-end development.\u201d<\/p>\n<p>\u2014 getbem.com<\/p><\/blockquote>\n<p>The idea behind BEM is to create components out of parts of apps that are reused or are independent. Diving in, the design process is similar to atomic design: modularize things and think of each of them as a reusable component.<\/p>\n<p>I chose to start out managing styles with BEM as it was very similar the way React (that I was already familiar with) breaks down apps into reusable components.<\/p>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/f057bd36-3a9b-4d57-b352-4a563587aaca\/bem-ex.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/bem-ex.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/f057bd36-3a9b-4d57-b352-4a563587aaca\/bem-ex.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/f057bd36-3a9b-4d57-b352-4a563587aaca\/bem-ex.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/f057bd36-3a9b-4d57-b352-4a563587aaca\/bem-ex.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/f057bd36-3a9b-4d57-b352-4a563587aaca\/bem-ex.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/bem-ex.png?w=900\" sizes=\"100vw\" alt=\"\"><\/a><figcaption>\n      (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/f057bd36-3a9b-4d57-b352-4a563587aaca\/bem-ex.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<h4>Using BEM<\/h4>\n<p>BEM is nothing more than a guide: no new framework or language to learn, just CSS with a naming convention to organize things better. Following this methodology, you can implement the patterns you\u2019ve already been using, but in a more structured manner. You can also quite easily do progressive enhancements to your existing codebase as it requires no additional tooling configuration or any other complexities.<\/p>\n<h4>Advantages<\/h4>\n<ul>\n<li>At its heart BEM manages reusable components, preventing random global styles overriding others. In the end, we have more predictable code, which solves a lot of our specificity problems.<\/li>\n<li>There\u2019s not much of a learning curve; it is just the same old CSS with a couple of guides to improve maintainability. It is an easy way of making code modular by using CSS itself.<\/li>\n<\/ul>\n<h4>Drawbacks<\/h4>\n<ul>\n<li>While promoting reusability and maintainability, a side effect of the BEM naming principle is making naming the classes difficult and time-consuming.<\/li>\n<li>The more nested your component is in the block, the longer and more unreadable the class names become. Deeply nested or grandchild selectors often face this issue.<\/li>\n<\/ul>\n<pre><code><div class=\"card__body\">\n  <p class=\"card__body__content\">Lorem ipsum lorem<\/p>\n  <div class=\"card__body__links\">\n    <!-- Grandchild elements -->\n    <a href=\"#\" class=\"card__body__links__link--active\">Link<\/a>\n  <\/div>\n<\/div>\n<\/code><\/pre>\n<p>That was just a quick intro to BEM and how it solves our problems. If you\u2019d like to take a deeper look into its implementation, check out \u201c<a href=\"https:\/\/www.smashingmagazine.com\/2018\/06\/bem-for-beginners\/\">BEM For Beginners<\/a>\u201d published here in Smashing Magazine.<\/p>\n<div><\/div>\n<h3>Sassy CSS (SCSS)<\/h3>\n<p>Put blandly, SCSS is CSS on steroids. Additional functionality such as variables, nesting selectors, reusable mixins, and imports help SCSS make CSS more of a programming language. For me, SCSS was fairly easy to pick up (go through the <a href=\"https:\/\/sass-lang.com\/guide\">docs<\/a> if you haven\u2019t already) and once I got to grips with the additional features, I\u2019d always prefer to use it over CSS just for the convenience it provided. SCSS is a preprocessor, meaning the compiled result is a plain old CSS file; the only thing you need to set up is tooling to compile down to CSS in the build process.<\/p>\n<h4>Super handy features<\/h4>\n<ul>\n<li><em>Imports<\/em> help you split style sheets into multiple files for each component\/section, or whichever makes readability easier.<\/li>\n<\/ul>\n<pre><code>\/\/ main.scss\n@import \"_variables.scss\";\n@import \"_mixins.scss\";\n\n@import \"_global.scss\";\n@import \"_navbar.scss\";\n@import \"_hero.scss\";\n<\/code><\/pre>\n<ul>\n<li><em>Mixins<\/em>, <em>loops<\/em>, and <em>variables<\/em> help with the DRY principle and also make the process of writing CSS easier.<\/li>\n<\/ul>\n<pre><code>@mixin flex-center($direction) {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-direction: $direction;\n}\n\n.box {\n  @include flex-center(row);\n}\n<\/code><\/pre>\n<p><strong>Note<\/strong>: <em>SCSS mixin: Check out more handy SCSS features over <a href=\"https:\/\/sass-lang.com\/guide\">here<\/a>.<\/em><\/p>\n<ul>\n<li>Nesting of selectors improves readability as it works the same way HTML elements are arranged: in a nested fashion. This approach helps you recognize hierarchy at a glance.<\/li>\n<\/ul>\n<h4>BEM With SCSS<\/h4>\n<p>It is possible to group the code for components into blocks, and this greatly improves readability and helps in ease of writing BEM with SCSS:<\/p>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/9faa139e-870f-4e22-bb7f-eb0e8f7d6bb2\/bem-scss.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/bem-scss.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/9faa139e-870f-4e22-bb7f-eb0e8f7d6bb2\/bem-scss.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/9faa139e-870f-4e22-bb7f-eb0e8f7d6bb2\/bem-scss.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/9faa139e-870f-4e22-bb7f-eb0e8f7d6bb2\/bem-scss.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/9faa139e-870f-4e22-bb7f-eb0e8f7d6bb2\/bem-scss.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/bem-scss.png?w=900\" sizes=\"100vw\" alt=\"\"><\/a><figcaption>\n      This code is relatively less heavy and complicated as opposed to nesting multiple layers. (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/9faa139e-870f-4e22-bb7f-eb0e8f7d6bb2\/bem-scss.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<p><strong>Note<\/strong>: <em>For further reading on how this would work, check out Victor Jeman\u2019s \u201c<a href=\"https:\/\/assist-software.net\/blog\/css-guideline-tutorial-bem-sass\">BEM with Sass<\/a>\u201d tutorial.<\/em><\/p>\n<h3>Styled-Components<\/h3>\n<p>This is one of the most widely used CSS-in-JS libraries. Without endorsing this particular library, it has worked well for me, and I\u2019ve found its features quite useful for my requirements. Take your time in exploring other libraries out there and pick the one that best matches your needs.<\/p>\n<p>I figured a good way to get to know styled-components was to compare the code to plain CSS. Here\u2019s a quick look at how to use styled-components and what it\u2019s all about:<\/p>\n<p>Instead of adding classes to elements, each element with a class is made into a component. The code does look neater than the long class names we have with BEM.<\/p>\n<p>Interestingly, what styled-components does under the hood is take up the job of adding relevant classes to elements as per what\u2019s specified. This is essentially what we do in style sheets (note that it is in no way related to inline styling).<\/p>\n<pre><code>import styled from 'styled-components';\n    \nconst Button = styled.button`\n  background-color: palevioletred;\n  color: papayawhip;\n`;\n\n\/\/ Output\n<style>\n  .dRUXBm {\n    background-color: palevioletred;\n    color: papayawhip;\n  }\n<\/style>\n\n<button class=\"dRUXBm\" \/>\n<\/code><\/pre>\n<p><strong>Note<\/strong>: <em>Styled-components under the hood: read more about inline styling vs CSS-in-JS in \u201c<a href=\"https:\/\/mxstbr.blog\/2016\/11\/inline-styles-vs-css-in-js\/\">Writing your styles in JS ? writing inline styles<\/a>\u201d by Max Stoiber.<\/em><\/p>\n<h4>Why Are Styled-Components One Of The Widely Used CSS-In-JS Libraries?<\/h4>\n<p>For styling, here we\u2019re just using template literals with normal CSS syntax. This allows you to use the full power of JavaScript to handle the styling for you: conditionals, properties passed in as arguments (using an approach similar to React), and essentially all the functionality that can be implemented by JavaScript.<\/p>\n<p>While SCSS has variables, mixins, nesting, and other features, styled-components only adds on, making it even more powerful. Its approach, based heavily on components, might seem daunting at first since it\u2019s different from traditional CSS. But as you get used to the principles and techniques, you\u2019ll notice that everything possible with SCSS can be done in styled-components, as well as a lot more. You just use JavaScript instead.<\/p>\n<pre><code>const getDimensions = size => {\n  switch(size) {\n    case 'small': return 32;\n    case 'large': return 64;\n    default: return 48;\n  }\n}\n\nconst Avatar = styled.img`\n  border-radius: 50%;\n  width: ${props => getDimensions(props.size)}px;\n  height: ${props => getDimensions(props.size)}px;\n`;\n\nconst AvatarComponent = ({ src }) => (\n  <Avatar src={src} size=\"large\" \/>\n);\n<\/code><\/pre>\n<p><strong>Note<\/strong>: <em>Template literals in styled-components allow you to use JS directly for conditional styling and more.<\/em><\/p>\n<p>Another thing to note is how perfectly this fits into the world of web components. A React component has its own functionality with JavaScript, JSX template, and now CSS-in-JS for styling: it\u2019s fully functional all by itself and handles everything required internally.<\/p>\n<p>Without us realizing, that was the answer to a problem we\u2019ve been talking about for too long: specificity. While BEM was a guideline to enforce component-based structure for elements and styles but still relying on classes, styled-components impose it for you.<\/p>\n<p>Styled-components has a couple of additional features I\u2019ve found especially useful: themes, which can configure a global prop (variable) passed down to each styled-component; automatic vendor prefixing; and automatic clean-up of unused code. The amazingly supportive and active community is just the icing on the cake.<\/p>\n<p><strong>Note<\/strong>: <em>There\u2019s a lot more to check out and take advantage of. Read more in the <a href=\"https:\/\/www.styled-components.com\/\">styled-components<\/a> docs.<\/em><\/p>\n<h5>Quick Recap On Features<\/h5>\n<ul>\n<li>Template literals are used for syntax, the same as traditional CSS.<\/li>\n<li>It imposes modular design.<\/li>\n<li>It solves specificity issues by handling class names for you.<\/li>\n<li>Everything that can be done with SCSS and more, implemented with JS.<\/li>\n<\/ul>\n<h5>Why It Might Not Be For You<\/h5>\n<ul>\n<li>It obviously relies on JavaScript, which means without it the styles don\u2019t load, resulting in a cluttered mess.<\/li>\n<li>Previously readable class names are replaced with hashes that really have no meaning.<\/li>\n<li>The concept of components rather than cascading classes might be a bit hard to wrap your head around, especially since this affects the way you arrange things a lot.<\/li>\n<\/ul>\n<div><\/div>\n<h3>Design Systems<\/h3>\n<p>As usage of web components increases, as well as the need for <a href=\"http:\/\/atomicdesign.bradfrost.com\/chapter-2\/\">atomic design<\/a> (basically breaking down UI into basic building blocks), many companies are choosing to create component libraries and design systems. Unlike the technologies or approaches on how to handle styling mentioned above, design systems represent an organizational approach to handling components and consistent design across whole platforms or apps.<\/p>\n<p>It\u2019s possible to use an approach we\u2019ve discussed within a design system to organize styles, while the design system itself focuses on the building blocks of the apps rather than internal implementations.<\/p>\n<blockquote><p>\u201cDesign systems are essentially collections of rules, constraints, and principles implemented in design and code.\u201d<\/p><\/blockquote>\n<p>Design systems and component libraries are aimed at whole ecosystems spanning different platforms and media, and can determine the overall outlook of the company itself.<\/p>\n<blockquote><p>\u201cA design system is an amalgamation of style, components, and voice.\u201d<\/p><\/blockquote>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/e3afb514-9b7d-42d7-bb86-24f731495b07\/carbon-design-system-preview.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/carbon-design-system-preview.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/e3afb514-9b7d-42d7-bb86-24f731495b07\/carbon-design-system-preview.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/e3afb514-9b7d-42d7-bb86-24f731495b07\/carbon-design-system-preview.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/e3afb514-9b7d-42d7-bb86-24f731495b07\/carbon-design-system-preview.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/e3afb514-9b7d-42d7-bb86-24f731495b07\/carbon-design-system-preview.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/carbon-design-system-preview.png?w=900\" sizes=\"100vw\" alt=\"IBM\u2019s Carbon design system\"><\/a><figcaption>\n      IBM\u2019s Carbon design system (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/e3afb514-9b7d-42d7-bb86-24f731495b07\/carbon-design-system-preview.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<p>Once they gain momentum, tech businesses sometimes have to scale up extremely fast, and it can be hard for the design and development teams to keep up. Different apps, new features and flows, constant reevaluation, changes, and enhancements are to be shipped as rapidly as possible when the business requires them.<\/p>\n<p>Take the case of a simple modal; for instance, one screen has a confirmation modal which simply accepts a negative or positive action. This is worked on by Developer A. Then the design team ships another screen that has a modal comprising a small form with a few inputs \u2014 Developer B takes this up. Developers A and B work separately and have no idea that both of them are working on the same pattern, building two different components that are essentially the same at base level. If different developers worked on the different screens we might even see UI inconsistencies committed to the codebase.<\/p>\n<p>Now imagine a large company of multiple designers and developers \u2014 you could end up with a whole collection of components and flows that are supposed to be consistent, but instead are distinct components existing independently.<\/p>\n<p>The main principle of design systems is to help meet business requirements: build and ship new features, functionality, and even full apps while maintaining standards, quality, and consistency of design.<\/p>\n<p>Here are some examples of popular design systems:<\/p>\n<ul>\n<li><a href=\"https:\/\/polaris.shopify.com\/\">Shopify Polaris<\/a><\/li>\n<li><a href=\"https:\/\/www.carbondesignsystem.com\/\">IBM\u2019s Carbon<\/a><\/li>\n<li><a href=\"https:\/\/ant.design\/\">Alibaba\u2019s Ant D<\/a><\/li>\n<li><a href=\"https:\/\/mailchimp.com\/design\/\">Mailchimp Design<\/a><\/li>\n<\/ul>\n<p>When talking about styling in particular, we\u2019d be specifically interested in the component library part, although the design system itself is far more than just a collection of components. A component handles its functionality, template, and styling internally. A developer working on the app needn\u2019t be aware of all of the internal working of the components, but would just need to know how to put them together within the app.<\/p>\n<p>Now imagine a couple of these components that are further made reusable and maintainable, and then organized into a library. Developing apps could be almost as simple as drag-and-drop (well, not exactly, but a component could be pulled in without worrying about any internal aspects of its working). That\u2019s essentially what a component library does.<\/p>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/d8d03aa4-4bbc-4d25-835f-aa14b2b89222\/carbon-components-react.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/carbon-components-react.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/d8d03aa4-4bbc-4d25-835f-aa14b2b89222\/carbon-components-react.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/d8d03aa4-4bbc-4d25-835f-aa14b2b89222\/carbon-components-react.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/d8d03aa4-4bbc-4d25-835f-aa14b2b89222\/carbon-components-react.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/d8d03aa4-4bbc-4d25-835f-aa14b2b89222\/carbon-components-react.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/carbon-components-react.png?w=900\" sizes=\"100vw\" alt=\"\"><\/a><figcaption>\n      (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/d8d03aa4-4bbc-4d25-835f-aa14b2b89222\/carbon-components-react.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/c8ae26ea-99fb-4e2c-87d3-99b0af5ac516\/carbon-design-system-react-storybook.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/carbon-design-system-react-storybook.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/c8ae26ea-99fb-4e2c-87d3-99b0af5ac516\/carbon-design-system-react-storybook.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/c8ae26ea-99fb-4e2c-87d3-99b0af5ac516\/carbon-design-system-react-storybook.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/c8ae26ea-99fb-4e2c-87d3-99b0af5ac516\/carbon-design-system-react-storybook.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/c8ae26ea-99fb-4e2c-87d3-99b0af5ac516\/carbon-design-system-react-storybook.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/carbon-design-system-react-storybook.png?w=900\" sizes=\"100vw\" alt=\"\"><\/a><figcaption>\n      (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/c8ae26ea-99fb-4e2c-87d3-99b0af5ac516\/carbon-design-system-react-storybook.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<h4>Why You Might Want To Think About Building A Design System<\/h4>\n<ul>\n<li>As mentioned earlier, it helps the engineering and design teams keep up with rapidly changing business needs while maintaining standards and quality.<\/li>\n<li>It ensures consistency of design and code throughout, helping considerably with maintainability over a long period of time.<\/li>\n<li>One of the greatest features of design systems is that they bring the design and development teams closer, making work more of a continuous collaboration. Rather than whole pages of mock-ups given to developers to work on from scratch, components and their behaviors are well-defined first. It\u2019s a whole different approach, but a better and faster way to develop consistent interfaces.<\/li>\n<\/ul>\n<h4>Why It Might Not Be The Best Fit For You<\/h4>\n<ul>\n<li>Design systems require a lot of time and effort up front to plan things out and organize from scratch \u2014 both code- and design-wise. Unless really required, it might not be worth delaying the development process to focus on building the design system at first.<\/li>\n<li>If a project is relatively small, a design system can add unnecessary complexity and end up a waste of effort when what was actually required was just a couple of standards or guidelines to ensure consistency. Because several high-profile companies have adopted design systems, the hype can influence developers into thinking this is the always best approach, without analyzing the requirements and ensuring this could actually be practical.<\/li>\n<\/ul>\n<figure><a href=\"https:\/\/i0.wp.com\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/48392d62-fec1-4d5a-a538-3424be363c46\/ibm-buttons-dp.png?ssl=1\"><\/p>\n<p>    <img data-recalc-dims=\"1\" decoding=\"async\" srcset=\"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/ibm-buttons-dp.png 400w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_800\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/48392d62-fec1-4d5a-a538-3424be363c46\/ibm-buttons-dp.png 800w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1200\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/48392d62-fec1-4d5a-a538-3424be363c46\/ibm-buttons-dp.png 1200w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_1600\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/48392d62-fec1-4d5a-a538-3424be363c46\/ibm-buttons-dp.png 1600w,\n\t\t\t        https:\/\/res.cloudinary.com\/indysigner\/image\/fetch\/f_auto,q_auto\/w_2000\/https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/48392d62-fec1-4d5a-a538-3424be363c46\/ibm-buttons-dp.png 2000w\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/ibm-buttons-dp.png?w=900\" sizes=\"100vw\" alt=\"Different appearances of a button\"><\/a><figcaption>\n      Different appearances of a button (<a href=\"https:\/\/cloud.netlifyusercontent.com\/assets\/344dbf88-fdf9-42bb-adb4-46f01eedd629\/48392d62-fec1-4d5a-a538-3424be363c46\/ibm-buttons-dp.png\">Large preview<\/a>)<br \/>\n    <\/figcaption><\/figure>\n<h3>Conclusion<\/h3>\n<p>Styling applications is a world in itself, one not often given the importance and attention it deserves. With complex modern user interfaces, it\u2019s only matter of time before your app becomes a mess of unordered styles, reducing consistency and making it harder for new code to be added or changes made to the existing codebase.<\/p>\n<p>Distilling what we\u2019ve discussed so far: BEM, along with SCSS, could help you organize your style sheets better, take a programming approach to CSS, and create meaningful structured class names for cleaner code with minimal configuration. Building over a front-end framework like React or Vue, you might it find it convenient to hand class naming to a CSS-in-JS library if you\u2019re comfortable with a component-based approach, putting an end to all your specificity issues, along with a couple of other benefits. For larger applications and multiple platforms, you might even consider building a design system in combination with one of the other methods, to boost development speeds while maintaining consistency.<\/p>\n<p>Essentially, depending on your requirements and the size and scale of your software, it\u2019s important to spend time determining your best approach to styling.<\/p>\n<div>\n  <img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/logo-red-5.png?w=900\" alt=\"Smashing Editorial\"><span>(dm, og, yk, il)<\/span>\n<\/div>\n<\/article>\n<p class=\"wpematico_credit\"><small>Powered by <a href=\"http:\/\/www.wpematico.com\" target=\"_blank\">WPeMatico<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Styling In Modern Web Apps Styling In Modern Web Apps Ajay NS 2019-06-10T14:00:59+02:002019-06-11T11:06:19+00:00 If you search for how to style apps for the web, you\u2019ll come across many different approaches and libraries, some even changing day by day. Block Element Modifier (BEM); preprocessors such as Less and SCSS; CSS-in-JS libraries, including JSS and styled-components; and,&#8230;<a class=\"moretag\" href=\"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/\"> Read the full article&#8230;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[15],"tags":[],"class_list":["post-66790","post","type-post","status-publish","format-standard","hentry","category-general-info"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Styling In Modern Web AppsStyling In Modern Web Apps Ajay NS 2019-06-10T14:00:59+02:002019-06-11T11:06:19+00:00If you search for how to style apps for the web, you\u2019ll come across many different approaches and libraries, some even changing day by day. Block Element Modifier (BEM); preprocessors such as Less and SCSS; CSS-in-JS libraries, including JSS and styled-components; and, lately, design\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Guest Contribution\"\/>\n\t<meta name=\"keywords\" content=\"general info\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Design for Immersive Technologies | User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Styling In Modern Web Apps | Design for Immersive Technologies\" \/>\n\t\t<meta property=\"og:description\" content=\"Styling In Modern Web AppsStyling In Modern Web Apps Ajay NS 2019-06-10T14:00:59+02:002019-06-11T11:06:19+00:00If you search for how to style apps for the web, you\u2019ll come across many different approaches and libraries, some even changing day by day. Block Element Modifier (BEM); preprocessors such as Less and SCSS; CSS-in-JS libraries, including JSS and styled-components; and, lately, design\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-06-11T11:17:15+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-06-11T11:17:15+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Styling In Modern Web Apps | Design for Immersive Technologies\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Styling In Modern Web AppsStyling In Modern Web Apps Ajay NS 2019-06-10T14:00:59+02:002019-06-11T11:06:19+00:00If you search for how to style apps for the web, you\u2019ll come across many different approaches and libraries, some even changing day by day. Block Element Modifier (BEM); preprocessors such as Less and SCSS; CSS-in-JS libraries, including JSS and styled-components; and, lately, design\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/06\\\/styling-in-modern-web-apps\\\/#article\",\"name\":\"Styling In Modern Web Apps | Design for Immersive Technologies\",\"headline\":\"Styling In Modern Web Apps\",\"author\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/www.taterboy.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/css-back-ex.png\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/06\\\/styling-in-modern-web-apps\\\/#articleImage\"},\"datePublished\":\"2019-06-11T04:17:15-07:00\",\"dateModified\":\"2019-06-11T04:17:15-07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/06\\\/styling-in-modern-web-apps\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/06\\\/styling-in-modern-web-apps\\\/#webpage\"},\"articleSection\":\"General Info\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/06\\\/styling-in-modern-web-apps\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.taterboy.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/general-info\\\/#listItem\",\"name\":\"General Info\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/general-info\\\/#listItem\",\"position\":2,\"name\":\"General Info\",\"item\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/general-info\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/06\\\/styling-in-modern-web-apps\\\/#listItem\",\"name\":\"Styling In Modern Web Apps\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/06\\\/styling-in-modern-web-apps\\\/#listItem\",\"position\":3,\"name\":\"Styling In Modern Web Apps\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/general-info\\\/#listItem\",\"name\":\"General Info\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\",\"name\":\"Design for Immersive Technologies\",\"description\":\"User Experience for Games, Virtual Reality (VR) and Augmented\\\/Mixed Reality (AR\\\/MR)\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/\",\"name\":\"Guest Contribution\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/06\\\/styling-in-modern-web-apps\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d2aad73eb0f48c67b141e9fc978a0e498969791ed623346e361d02d19775b0bb?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Guest Contribution\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/06\\\/styling-in-modern-web-apps\\\/#webpage\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/06\\\/styling-in-modern-web-apps\\\/\",\"name\":\"Styling In Modern Web Apps | Design for Immersive Technologies\",\"description\":\"Styling In Modern Web AppsStyling In Modern Web Apps Ajay NS 2019-06-10T14:00:59+02:002019-06-11T11:06:19+00:00If you search for how to style apps for the web, you\\u2019ll come across many different approaches and libraries, some even changing day by day. Block Element Modifier (BEM); preprocessors such as Less and SCSS; CSS-in-JS libraries, including JSS and styled-components; and, lately, design\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/06\\\/styling-in-modern-web-apps\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"datePublished\":\"2019-06-11T04:17:15-07:00\",\"dateModified\":\"2019-06-11T04:17:15-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/\",\"name\":\"Design for Immersive Technologies\",\"description\":\"User Experience for Games, Virtual Reality (VR) and Augmented\\\/Mixed Reality (AR\\\/MR)\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Styling In Modern Web Apps | Design for Immersive Technologies","description":"Styling In Modern Web AppsStyling In Modern Web Apps Ajay NS 2019-06-10T14:00:59+02:002019-06-11T11:06:19+00:00If you search for how to style apps for the web, you\u2019ll come across many different approaches and libraries, some even changing day by day. Block Element Modifier (BEM); preprocessors such as Less and SCSS; CSS-in-JS libraries, including JSS and styled-components; and, lately, design","canonical_url":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/","robots":"max-image-preview:large","keywords":"general info","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/#article","name":"Styling In Modern Web Apps | Design for Immersive Technologies","headline":"Styling In Modern Web Apps","author":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"publisher":{"@id":"https:\/\/www.taterboy.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"http:\/\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/06\/css-back-ex.png","@id":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/#articleImage"},"datePublished":"2019-06-11T04:17:15-07:00","dateModified":"2019-06-11T04:17:15-07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/#webpage"},"isPartOf":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/#webpage"},"articleSection":"General Info"},{"@type":"BreadcrumbList","@id":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.taterboy.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/general-info\/#listItem","name":"General Info"}},{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/general-info\/#listItem","position":2,"name":"General Info","item":"https:\/\/www.taterboy.com\/blog\/category\/general-info\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/#listItem","name":"Styling In Modern Web Apps"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/#listItem","position":3,"name":"Styling In Modern Web Apps","previousItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/general-info\/#listItem","name":"General Info"}}]},{"@type":"Organization","@id":"https:\/\/www.taterboy.com\/blog\/#organization","name":"Design for Immersive Technologies","description":"User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","url":"https:\/\/www.taterboy.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author","url":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/","name":"Guest Contribution","image":{"@type":"ImageObject","@id":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d2aad73eb0f48c67b141e9fc978a0e498969791ed623346e361d02d19775b0bb?s=96&d=mm&r=g","width":96,"height":96,"caption":"Guest Contribution"}},{"@type":"WebPage","@id":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/#webpage","url":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/","name":"Styling In Modern Web Apps | Design for Immersive Technologies","description":"Styling In Modern Web AppsStyling In Modern Web Apps Ajay NS 2019-06-10T14:00:59+02:002019-06-11T11:06:19+00:00If you search for how to style apps for the web, you\u2019ll come across many different approaches and libraries, some even changing day by day. Block Element Modifier (BEM); preprocessors such as Less and SCSS; CSS-in-JS libraries, including JSS and styled-components; and, lately, design","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.taterboy.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/#breadcrumblist"},"author":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"creator":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"datePublished":"2019-06-11T04:17:15-07:00","dateModified":"2019-06-11T04:17:15-07:00"},{"@type":"WebSite","@id":"https:\/\/www.taterboy.com\/blog\/#website","url":"https:\/\/www.taterboy.com\/blog\/","name":"Design for Immersive Technologies","description":"User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.taterboy.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Design for Immersive Technologies | User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","og:type":"article","og:title":"Styling In Modern Web Apps | Design for Immersive Technologies","og:description":"Styling In Modern Web AppsStyling In Modern Web Apps Ajay NS 2019-06-10T14:00:59+02:002019-06-11T11:06:19+00:00If you search for how to style apps for the web, you\u2019ll come across many different approaches and libraries, some even changing day by day. Block Element Modifier (BEM); preprocessors such as Less and SCSS; CSS-in-JS libraries, including JSS and styled-components; and, lately, design","og:url":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/","article:published_time":"2019-06-11T11:17:15+00:00","article:modified_time":"2019-06-11T11:17:15+00:00","twitter:card":"summary","twitter:title":"Styling In Modern Web Apps | Design for Immersive Technologies","twitter:description":"Styling In Modern Web AppsStyling In Modern Web Apps Ajay NS 2019-06-10T14:00:59+02:002019-06-11T11:06:19+00:00If you search for how to style apps for the web, you\u2019ll come across many different approaches and libraries, some even changing day by day. Block Element Modifier (BEM); preprocessors such as Less and SCSS; CSS-in-JS libraries, including JSS and styled-components; and, lately, design"},"aioseo_meta_data":{"post_id":"66790","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"created":"2021-02-07 19:30:07","updated":"2026-09-01 12:09:18","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.taterboy.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.taterboy.com\/blog\/category\/general-info\/\" title=\"General Info\">General Info<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tStyling In Modern Web Apps\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.taterboy.com\/blog"},{"label":"General Info","link":"https:\/\/www.taterboy.com\/blog\/category\/general-info\/"},{"label":"Styling In Modern Web Apps","link":"https:\/\/www.taterboy.com\/blog\/2019\/06\/styling-in-modern-web-apps\/"}],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8wzr5-hng","jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts\/66790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/comments?post=66790"}],"version-history":[{"count":0,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts\/66790\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/media?parent=66790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/categories?post=66790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/tags?post=66790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}