} h2 { @extend h1; font-size: 1.5em; } } .home-page { @extend .my-layout; } .about-page { @extend .my-layout; } .login-page { @extend .my-layout; } .register-page { @extend .my-layout; } SCSS .my-layout, .home-page, .about-page, .login-page, .register-page { margin: 1px; } .my-layout h1, .home-page h1, .about-page h1, .login-page h1, .register-page h1, .my-layout h2, .home-page .my-layout h2, .my-layout .home-page h2, .about-page .my-layout h2, .my- layout .about-page h2, .login-page .my-layout h2, .my- layout .login-page h2, .register-page .my-layout h2, .my- layout .register-page h2, .my-layout .home-page h2, .home- page .my-layout h2, .home-page h2, .about-page .home-page h2, .home-page .about-page h2, .login-page .home-page h2, .home- page .login-page h2, .register-page .home-page h2, .home- page .register-page h2, .my-layout .about-page h2, .about- page .my-layout h2, .home-page .about-page h2, .about-page .home- page h2, .about-page h2, .login-page .about-page h2, .about- page .login-page h2, .register-page .about-page h2, .about- page .register-page h2, .my-layout .login-page h2, .login- page .my-layout h2, .home-page .login-page h2, .login-page .home- page h2, .about-page .login-page h2, .login-page .about-page h2, .login-page h2, .register-page .login-page h2, .login- page .register-page h2, .my-layout .register-page h2, .register- page .my-layout h2, .home-page .register-page h2, .register- page .home-page h2, .about-page .register-page h2, .register- page .about-page h2, .login-page .register-page h2, .register- page .login-page h2, .register-page h2 { font-weight: bold; font-size: 2em; } .my-layout h2, .home-page h2, .about-page h2, .login-page h2, .register-page h2 { font-size: 1.5em; } CSS danger Note: a fix was pushed shortly after this presentation to reduce the number of selectors created by @extend: https://github.com/nex3/sass/commit/8f4869e608e70d7f468bb463ebfe7a939d834e27 25 Thursday, March 15, 12