SlideShare uma empresa Scribd logo
1 de 13
Baixar para ler offline
organic
CSS
o que é?
Um framework baseaso em SASS que "trata" o
seu código utilizando o conceito de organismos
e átomos.
mas... porque?
"Os atomos são os blocos de construção básicos da matéria."
Teremos um nível hierarquico e uma organização muito próxima
dos conceitos científicos na construção
de uma matéria. No nosso caso, na construção
de uma folha de estilo.
... e também ...
Pensar no código associando sua estrutura com algo
que já conhecemos faz com que nosso esforço cognitivo
para organizar e entender seja bem menor. Além de ser
mais legal.
como funciona?
Estrutura básica do framework
átomo
Uma simples propriedade com valor.
@include define-atom("block") {
display: block;
}
@include define-atom("font-family") {
font-family: Georgia;
}
molécula
Molécula é um elemento DOM que precisa de estilo
e não tem elementos filho ligados a ele.
@mixin header {
@include atoms((
block,
clearfix,
font-family
));
}
organela
Uma organela necessariamente é um componente que contém
moléculas e atomos.
Nenhum estilo deve ser aplicado diretamente a ele.
.header {
@include header;
@include header-title;
@include header-column;
@include header-column-link;
@include header-title-small-text;
}
como organizar?
Existem casos onde um elemento necessita de átomos mas não é
uma molécula pelo fato de conter organelas.
Nesse caso...
foca no css
E o resto?
Basta seguir a hierarquia: celula
→ tecido → órgão → Sistema
→ organismo.
Organic CSS funciona bem com
SMACSS e Atomic Design!
É uma questão de escolha a
forma que você vai abstrair o
seu código.
Organic CSS já contém um
repositório com átomos e
moléculas pré-definidos.
github.com/krasimir/organic-css
take it sleazy…
and i'm out!

Mais conteúdo relacionado

Último

Último (8)

ATIVIDADE 1 - GCOM - GESTÃO DA INFORMAÇÃO - 54_2024.docx
ATIVIDADE 1 - GCOM - GESTÃO DA INFORMAÇÃO - 54_2024.docxATIVIDADE 1 - GCOM - GESTÃO DA INFORMAÇÃO - 54_2024.docx
ATIVIDADE 1 - GCOM - GESTÃO DA INFORMAÇÃO - 54_2024.docx
 
Padrões de Projeto: Proxy e Command com exemplo
Padrões de Projeto: Proxy e Command com exemploPadrões de Projeto: Proxy e Command com exemplo
Padrões de Projeto: Proxy e Command com exemplo
 
ATIVIDADE 1 - CUSTOS DE PRODUÇÃO - 52_2024.docx
ATIVIDADE 1 - CUSTOS DE PRODUÇÃO - 52_2024.docxATIVIDADE 1 - CUSTOS DE PRODUÇÃO - 52_2024.docx
ATIVIDADE 1 - CUSTOS DE PRODUÇÃO - 52_2024.docx
 
Programação Orientada a Objetos - 4 Pilares.pdf
Programação Orientada a Objetos - 4 Pilares.pdfProgramação Orientada a Objetos - 4 Pilares.pdf
Programação Orientada a Objetos - 4 Pilares.pdf
 
Luís Kitota AWS Discovery Day Ka Solution.pdf
Luís Kitota AWS Discovery Day Ka Solution.pdfLuís Kitota AWS Discovery Day Ka Solution.pdf
Luís Kitota AWS Discovery Day Ka Solution.pdf
 
ATIVIDADE 1 - ESTRUTURA DE DADOS II - 52_2024.docx
ATIVIDADE 1 - ESTRUTURA DE DADOS II - 52_2024.docxATIVIDADE 1 - ESTRUTURA DE DADOS II - 52_2024.docx
ATIVIDADE 1 - ESTRUTURA DE DADOS II - 52_2024.docx
 
ATIVIDADE 1 - LOGÍSTICA EMPRESARIAL - 52_2024.docx
ATIVIDADE 1 - LOGÍSTICA EMPRESARIAL - 52_2024.docxATIVIDADE 1 - LOGÍSTICA EMPRESARIAL - 52_2024.docx
ATIVIDADE 1 - LOGÍSTICA EMPRESARIAL - 52_2024.docx
 
Boas práticas de programação com Object Calisthenics
Boas práticas de programação com Object CalisthenicsBoas práticas de programação com Object Calisthenics
Boas práticas de programação com Object Calisthenics
 

Destaque

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Organic CSS

  • 2. o que é? Um framework baseaso em SASS que "trata" o seu código utilizando o conceito de organismos e átomos.
  • 3. mas... porque? "Os atomos são os blocos de construção básicos da matéria." Teremos um nível hierarquico e uma organização muito próxima dos conceitos científicos na construção de uma matéria. No nosso caso, na construção de uma folha de estilo.
  • 4. ... e também ... Pensar no código associando sua estrutura com algo que já conhecemos faz com que nosso esforço cognitivo para organizar e entender seja bem menor. Além de ser mais legal.
  • 6. átomo Uma simples propriedade com valor. @include define-atom("block") { display: block; } @include define-atom("font-family") { font-family: Georgia; }
  • 7. molécula Molécula é um elemento DOM que precisa de estilo e não tem elementos filho ligados a ele. @mixin header { @include atoms(( block, clearfix, font-family )); }
  • 8. organela Uma organela necessariamente é um componente que contém moléculas e atomos. Nenhum estilo deve ser aplicado diretamente a ele. .header { @include header; @include header-title; @include header-column; @include header-column-link; @include header-title-small-text; }
  • 9. como organizar? Existem casos onde um elemento necessita de átomos mas não é uma molécula pelo fato de conter organelas. Nesse caso...
  • 11. E o resto? Basta seguir a hierarquia: celula → tecido → órgão → Sistema → organismo. Organic CSS funciona bem com SMACSS e Atomic Design! É uma questão de escolha a forma que você vai abstrair o seu código.
  • 12. Organic CSS já contém um repositório com átomos e moléculas pré-definidos. github.com/krasimir/organic-css