SlideShare a Scribd company logo
THE INVERTED TRIANGLE APPROACH
C S S S A N I T Y W I T H S A S S
CSS - CASCADING STYLE SHEETS
SASS
• Nested styles
• Variables
• Calculations
• Mixins
SASS CODE
CSS Sanity with Sass: The Inverted Triangle Approach
“They get messy.”
THIS IS NOT MY IDEA
TO B E C L E A R …
INVERTED TRIANGLE
O RG A N I Z E YO U R C O D E
KEY METRICS
I N V E RT E D T R I A N G L E
INVERTED TRIANGLE
O RG A N I Z E YO U R C O D E
SETTINGS
• Global settings
• Base font size
• Color palettes
• Config
TOOLS
• Still global
• Mixins
• Font-sizing
• Gradients
• Functions
GENERIC
• First layer to actually
produce CSS
• Normalize
• Reset
• Box-sizing rules
ELEMENTS
• Unclassed HTML
elements
• Very rarely changed once
set up
OBJECTS
• First layer of class-based
selectors
• Non-cosmetic objects
• Wrappers
• Media objects
SET IT AND FORGET IT
E V E RY T H I N G B E F O R E T H I S
COMPONENTS
• Bulk of work is done here
• Class-based styles
• Split into partials to keep
organized
TRUMPS
• Overrides everything that
came before
• Where !important
goes when necessary
TA K E T WO
“They get messy.”
MY INVERTED
TRIANGLE STRUCTURE
• a — settings
• b-tools
• c-generic
• d-elements
• e-objects
• f-components
• g-vendors
• h-trumps
code
RESOURCES
• http://technotif.com/manage-large-css-projects-with-itcss/
• https://www.sitepoint.com/architecture-in-sass/
• https://www.packtpub.com/books/content/how-structure-
your-sass-scalability-using-itcss
• https://github.com/JulieKuehl/Forward-Framework/tree/
kanopi/src/scss/forward
THANK YOU!
QUESTIONS?
J U L I E @ J U L I E K U E H L . C O M
@ J U L I E K U E H L
http://juliekuehl.com/wordcamp-seattle-2016/

More Related Content

Viewers also liked (12)

PDF
JavaScript OOPs
Johnson Chou
 
PPTX
Advanced JavaScript Concepts
Naresh Kumar
 
PDF
Object Oriented Programming in JavaScript
zand3rs
 
PDF
JavaScript Prototype and Module Pattern
Narendra Sisodiya
 
PDF
Sass - Getting Started with Sass!
Eric Sembrat
 
PDF
Sass and compass workshop
Shaho Toofani
 
ODP
Deep dive into sass
Knoldus Inc.
 
PPTX
Sas demo
rvmfinishingschool
 
PDF
The ultimate guide to prototyping
Marcelo Graciolli
 
PPTX
Prototype & Inheritance in JavaScript
Sunny Sharma
 
PDF
Prototype-based Programming with JavaScript
lienhard
 
PPTX
Sass
Tayseer_Emam
 
JavaScript OOPs
Johnson Chou
 
Advanced JavaScript Concepts
Naresh Kumar
 
Object Oriented Programming in JavaScript
zand3rs
 
JavaScript Prototype and Module Pattern
Narendra Sisodiya
 
Sass - Getting Started with Sass!
Eric Sembrat
 
Sass and compass workshop
Shaho Toofani
 
Deep dive into sass
Knoldus Inc.
 
The ultimate guide to prototyping
Marcelo Graciolli
 
Prototype & Inheritance in JavaScript
Sunny Sharma
 
Prototype-based Programming with JavaScript
lienhard
 

Similar to CSS Sanity with Sass: The Inverted Triangle Approach (8)

PDF
Sane CSS - A modern approach to CSS
Lee Cheneler
 
PDF
Jina bolton - Refactoring Web Interfaces
DevConFu
 
PPTX
Css methods architecture
Lasha Sumbadze
 
PPTX
Cascading Style Sheets
Senthil Kumar
 
PDF
Do more with {less}
Jesper Wøldiche
 
PDF
Object Oriented CSS for rapid, scalable and maintainable development
Graeme Blackwood
 
PPT
Cascading style sheets (css)
veasnarin
 
PPTX
Introduction-to-CSS hihihihihihihih.pptx
princesingh27072012
 
Sane CSS - A modern approach to CSS
Lee Cheneler
 
Jina bolton - Refactoring Web Interfaces
DevConFu
 
Css methods architecture
Lasha Sumbadze
 
Cascading Style Sheets
Senthil Kumar
 
Do more with {less}
Jesper Wøldiche
 
Object Oriented CSS for rapid, scalable and maintainable development
Graeme Blackwood
 
Cascading style sheets (css)
veasnarin
 
Introduction-to-CSS hihihihihihihih.pptx
princesingh27072012
 
Ad

More from Julie Kuehl (11)

PDF
A Tour Through The WordPress Database
Julie Kuehl
 
PDF
CSS Sanity with Sass and the Inverted Triangle Approach
Julie Kuehl
 
PPTX
BEG, BORROW, OR STEAL? WHERE TO BEGIN WHEN BUILDING A THEME
Julie Kuehl
 
PDF
Life as a Digital Nomad
Julie Kuehl
 
PPTX
Child Themes, Starter Themes, and Frameworks.... Oh My!
Julie Kuehl
 
PPTX
WordPress and Podcasts
Julie Kuehl
 
PPTX
Child Themes, Starter Themes, and Frameworks... Oh My!
Julie Kuehl
 
PPTX
Anatomy and Architecture of a WordPress Theme
Julie Kuehl
 
PPTX
All The Software That Isn't WordPress
Julie Kuehl
 
PPTX
Startup Weekend Fargo 2014 - Breaking Bread
Julie Kuehl
 
PPTX
Learning WordPress Sucks
Julie Kuehl
 
A Tour Through The WordPress Database
Julie Kuehl
 
CSS Sanity with Sass and the Inverted Triangle Approach
Julie Kuehl
 
BEG, BORROW, OR STEAL? WHERE TO BEGIN WHEN BUILDING A THEME
Julie Kuehl
 
Life as a Digital Nomad
Julie Kuehl
 
Child Themes, Starter Themes, and Frameworks.... Oh My!
Julie Kuehl
 
WordPress and Podcasts
Julie Kuehl
 
Child Themes, Starter Themes, and Frameworks... Oh My!
Julie Kuehl
 
Anatomy and Architecture of a WordPress Theme
Julie Kuehl
 
All The Software That Isn't WordPress
Julie Kuehl
 
Startup Weekend Fargo 2014 - Breaking Bread
Julie Kuehl
 
Learning WordPress Sucks
Julie Kuehl
 
Ad

Recently uploaded (20)

PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Python basic programing language for automation
DanialHabibi2
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 

CSS Sanity with Sass: The Inverted Triangle Approach