SlideShare a Scribd company logo
1 of 17
CSS
Sistemes de nomenclatura i d’arquitectura
Hello!
• Llicenciada en comunicació Audiovisual
• Màster en Project Manager (actualment)
• Fundadora de Femme Inline
• Dog and Yarn lover
CSS: sistemes de nomenclatura i d’arquitectura 2
Què és el CSS?
CSS: sistemes de nomenclatura i d’arquitectura 3
CSS: sistemes de nomenclatura i d’arquitectura
És la manera d’estilar webs amb
un llenguatge diferent al de
programació i separat d’aquest
4
CSS significa Cascading Style Sheets, és a
dir, fulles d’estil en cascada.
Una de les característiques del CSS és l’herència. Diem que el CSS té herencia
perquè les classes aplicades a elements HTML pares, afectarà als elements HTML
fills.
CSS: sistemes de nomenclatura i d’arquitectura 5
1995
CSS
1998
CSS2
2005
CSS3
NOMENCLATURA
CSS: sistemes de nomenclatura i d’arquitectura 6
BEM
Block Element Modifier.
CSS: sistemes de nomenclatura i d’arquitectura 7
Què és el BEM?
• Bloc: és un component de la interfície d’usuari. Pot ser modular, és a
dir, pot estar composat de diversos elements o inclòs altres blocs.
• Element: És part d’un bloc. Serveix per un propòsit i només tenen
significat dintre d’un context. Estan semànticament vinculats al seu
bloc.
• Modificadors: Classes utilitzades per modificar l’aparença o el
comportament d’un bloc o element.
CSS: sistemes de nomenclatura i d’arquitectura 8
ARQUITECTURA
CSS: sistemes de nomenclatura i d’arquitectura 9
OOCSS
Object Oriented CSS.
CSS: sistemes de nomenclatura i d’arquitectura 10
Què és l’OOCSS?
2 principis bàsics:
CSS: sistemes de nomenclatura i d’arquitectura 11
Separar l’estructura
del“Skin”
Separar el contingut
del contenidor.
SMACSS
Scalable and Modular Architecture for CSS.
CSS: sistemes de nomenclatura i d’arquitectura 12
Què conté el SMACSS?
• Base: regles bàsiques per elements, atributs, pseudoclassses. Un
exemple en podria ser el normalize.css
• Maquetació : regles que estan relacionades amb el disseny
estructural de les pàgines. Per exemple amb els contenidors.
• Mòduls: Són components reutilitzables i modulars.
• Estats: són regles d’estil que especifiquen l’estat actual de quelcom
mòduls o elements.
• Temes: Estils visuals. El que en OOCSSS serien els “skins” o “pells”. És
opcional, ja que dintre del SMACSS poden estar o integrats dintre del
mateix mòdul o separats en una fulla d’estil perquè l’usuari pugui
triar d’entre els temes.
CSS: sistemes de nomenclatura i d’arquitectura 13
ITCSS
Inverted Triangle CSS.
CSS: sistemes de nomenclatura i d’arquitectura 14
Què conté el ITCSS?
• Settings: És on situarem les variables
• Tools: Són mixins i funcions.
• Generic: El codi genèric i els resets o normalize anirien aquí.
• Element: Elements d’HTML.
• Object: Aquí incorporaríem les classes i tot allò relacionat amb el
layout.
• Components: Blocs del nostre web. Components a nivell de UI.
• Utilities: Classes que sobreescriuran estils significatius.
Your Date Here Your Footer Here 15
La pirámide invertida
…un sistema de capes
CSS: sistemes de nomenclatura i d’arquitectura 16
Gràcies!
Preguntes?
jud.abelli@gmail.com
JUDIT ABELLÍ
SENIOR FRONT-END DEVELOPER

More Related Content

Featured

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)
 

Featured (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...
 

Css Arquitectura i Nomenclatura

  • 1. CSS Sistemes de nomenclatura i d’arquitectura
  • 2. Hello! • Llicenciada en comunicació Audiovisual • Màster en Project Manager (actualment) • Fundadora de Femme Inline • Dog and Yarn lover CSS: sistemes de nomenclatura i d’arquitectura 2
  • 3. Què és el CSS? CSS: sistemes de nomenclatura i d’arquitectura 3
  • 4. CSS: sistemes de nomenclatura i d’arquitectura És la manera d’estilar webs amb un llenguatge diferent al de programació i separat d’aquest 4
  • 5. CSS significa Cascading Style Sheets, és a dir, fulles d’estil en cascada. Una de les característiques del CSS és l’herència. Diem que el CSS té herencia perquè les classes aplicades a elements HTML pares, afectarà als elements HTML fills. CSS: sistemes de nomenclatura i d’arquitectura 5 1995 CSS 1998 CSS2 2005 CSS3
  • 6. NOMENCLATURA CSS: sistemes de nomenclatura i d’arquitectura 6
  • 7. BEM Block Element Modifier. CSS: sistemes de nomenclatura i d’arquitectura 7
  • 8. Què és el BEM? • Bloc: és un component de la interfície d’usuari. Pot ser modular, és a dir, pot estar composat de diversos elements o inclòs altres blocs. • Element: És part d’un bloc. Serveix per un propòsit i només tenen significat dintre d’un context. Estan semànticament vinculats al seu bloc. • Modificadors: Classes utilitzades per modificar l’aparença o el comportament d’un bloc o element. CSS: sistemes de nomenclatura i d’arquitectura 8
  • 9. ARQUITECTURA CSS: sistemes de nomenclatura i d’arquitectura 9
  • 10. OOCSS Object Oriented CSS. CSS: sistemes de nomenclatura i d’arquitectura 10
  • 11. Què és l’OOCSS? 2 principis bàsics: CSS: sistemes de nomenclatura i d’arquitectura 11 Separar l’estructura del“Skin” Separar el contingut del contenidor.
  • 12. SMACSS Scalable and Modular Architecture for CSS. CSS: sistemes de nomenclatura i d’arquitectura 12
  • 13. Què conté el SMACSS? • Base: regles bàsiques per elements, atributs, pseudoclassses. Un exemple en podria ser el normalize.css • Maquetació : regles que estan relacionades amb el disseny estructural de les pàgines. Per exemple amb els contenidors. • Mòduls: Són components reutilitzables i modulars. • Estats: són regles d’estil que especifiquen l’estat actual de quelcom mòduls o elements. • Temes: Estils visuals. El que en OOCSSS serien els “skins” o “pells”. És opcional, ja que dintre del SMACSS poden estar o integrats dintre del mateix mòdul o separats en una fulla d’estil perquè l’usuari pugui triar d’entre els temes. CSS: sistemes de nomenclatura i d’arquitectura 13
  • 14. ITCSS Inverted Triangle CSS. CSS: sistemes de nomenclatura i d’arquitectura 14
  • 15. Què conté el ITCSS? • Settings: És on situarem les variables • Tools: Són mixins i funcions. • Generic: El codi genèric i els resets o normalize anirien aquí. • Element: Elements d’HTML. • Object: Aquí incorporaríem les classes i tot allò relacionat amb el layout. • Components: Blocs del nostre web. Components a nivell de UI. • Utilities: Classes que sobreescriuran estils significatius. Your Date Here Your Footer Here 15
  • 16. La pirámide invertida …un sistema de capes CSS: sistemes de nomenclatura i d’arquitectura 16