SlideShare une entreprise Scribd logo
1  sur  11
Intro to Tailwind CSS – May 2022
WHO AM I?
Intro to Tailwind CSS
2 @ileshmistry | @IM_TechMeetup
IM Tech Meetup
ILESH MISTRY
(CMS SPECIALIST & KONTENT
MVP) CONTACT ILESH
@ileshmistry /@IM_TechMeetup
SUBSCRIBE TO MY YOUTUBE
CHANNEL
WHAT I’LL BE COVERING?
3
• What is Tailwind CSS?
• Why use it?
• Quick demo with configuration
• Takeaways
@ileshmistry | @IM_TechMeetup
IM Tech Meetup
Intro to Tailwind CSS
WHAT IS TAILWIND CSS?
4
• It’s a utility-first CSS framework allowing you to quickly build user interfaces
• Predefined utility classes that you can use for common CSS styling
@ileshmistry | @IM_TechMeetup
IM Tech Meetup
Intro to Tailwind CSS
WHAT IS TAILWIND CSS?
5
• It’s a utility-first CSS framework allowing you to quickly build user interfaces
• Predefined utility classes that you can use for common CSS styling
@ileshmistry | @IM_TechMeetup
IM Tech Meetup
Intro to Tailwind CSS
WHY USE IT?
6
• As it’s utility-first, you don’t have to worry about common issues with CSS classes and changes
on projects
• Scans all HTML, JS, TS, etc... files and writes them out into a static CSS file
• Smaller bundle sizes, as it only ships what you are using and removes unwanted CSS 💪🏽
• Ideal to use on both small and large projects
• Easy to use and understand the framework and has an awesome documentation 🏽
• Easy to extend it using Tailwind config
@ileshmistry | @IM_TechMeetup
IM Tech Meetup
Intro to Tailwind CSS
WHY USE IT?
7
• It uses the latest CSS features (CSS Grid,
Transform etc…) and has dark mode! 🏽🏽
• If you use VS Code, you will love the
Tailwind CSS IntelliSense extension ❤️
• Works with CSS Preprocessors like SASS and
LESS
• Biggest thing for me is convenience and speed
of delivery
@ileshmistry | @IM_TechMeetup
IM Tech Meetup
Intro to Tailwind CSS
CONFIGURATION
8
• Different ways to install Tailwind CSS.
You can use the Tailwind Installation Guide to follow these steps…
• The quickest way is using the Tailwind CLI
> npm install -D tailwindcss
• Add the tailwind.config.js
> npx tailwindcss init
• Configure the paths for all your files e.g. HTML, JS, TS, SCSS etc…
module.exports = {
content: ["./src/**/*.{html,js}"],
theme: { extend: {}, },
plugins: [],
}
@ileshmistry | @IM_TechMeetup
IM Tech Meetup
Intro to Tailwind CSS
CONFIGURATION
9
• Include the Tailwind directives in your CSS input file
@tailwind base; @tailwind components; @tailwind utilities;
They provide the core category layers to your CSS file so you can use or override them
• You can add a build process to convert all the input to an output CSS file
> npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch
• Use the output CSS file in your website or application
• Start using Tailwind CSS 😍
@ileshmistry | @IM_TechMeetup
IM Tech Meetup
Intro to Tailwind CSS
TAKEAWAYS
10
• Once you start using it, I feel you will not want to turn back to traditional CSS
• Smaller bundle sizes, as it only ships what you are using and removes unwanted CSS
• Super convenience to use and allows for speedy delivery
• VS Code IntelliSense extension is an awesome advantage
• Awesome documentation
• Easy to install and get going
@ileshmistry | @IM_TechMeetup
IM Tech Meetup
Intro to Tailwind CSS
THANK YOU
11
CONTACT ILESH
@ileshmistry
@IM_TechMeetup
ILESH MISTRY
(CMS SPECIALIST & KONTENT
MVP)
@ileshmistry | @IM_TechMeetup
IM Tech Meetup
SUBSCRIBE –
IM Tech Meetup
Intro to Tailwind CSS

Contenu connexe

Tendances

Estrutura de um Front-End eficiente (para iniciantes)
Estrutura de um Front-End eficiente (para iniciantes)Estrutura de um Front-End eficiente (para iniciantes)
Estrutura de um Front-End eficiente (para iniciantes)
Sérgio Vilar
 

Tendances (20)

WordPress what is Wordpress
WordPress what is WordpressWordPress what is Wordpress
WordPress what is Wordpress
 
CSS
CSSCSS
CSS
 
Bootstrap 5 ppt
Bootstrap 5 pptBootstrap 5 ppt
Bootstrap 5 ppt
 
CSS Introduction
CSS IntroductionCSS Introduction
CSS Introduction
 
Bootstrap 5 basic
Bootstrap 5 basicBootstrap 5 basic
Bootstrap 5 basic
 
Introduction to WordPress
Introduction to WordPressIntroduction to WordPress
Introduction to WordPress
 
Basic WordPress for Beginner ppt
Basic WordPress for Beginner pptBasic WordPress for Beginner ppt
Basic WordPress for Beginner ppt
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
SASS - CSS with Superpower
SASS - CSS with SuperpowerSASS - CSS with Superpower
SASS - CSS with Superpower
 
Wordpress
WordpressWordpress
Wordpress
 
Wordpress
WordpressWordpress
Wordpress
 
Introduction to Wordpress
Introduction to WordpressIntroduction to Wordpress
Introduction to Wordpress
 
Wordpress
WordpressWordpress
Wordpress
 
Bootstrap
BootstrapBootstrap
Bootstrap
 
CSS Grid vs. Flexbox
CSS Grid vs. FlexboxCSS Grid vs. Flexbox
CSS Grid vs. Flexbox
 
Front-end development introduction (HTML, CSS). Part 1
Front-end development introduction (HTML, CSS). Part 1Front-end development introduction (HTML, CSS). Part 1
Front-end development introduction (HTML, CSS). Part 1
 
Bootstrap - Basics
Bootstrap - BasicsBootstrap - Basics
Bootstrap - Basics
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
 
WordPress Course Outline
WordPress Course OutlineWordPress Course Outline
WordPress Course Outline
 
Estrutura de um Front-End eficiente (para iniciantes)
Estrutura de um Front-End eficiente (para iniciantes)Estrutura de um Front-End eficiente (para iniciantes)
Estrutura de um Front-End eficiente (para iniciantes)
 

Similaire à Introduction to Tailwind CSS - IM Tech Meetup - May 2022.pptx

Similaire à Introduction to Tailwind CSS - IM Tech Meetup - May 2022.pptx (20)

Get Started With Tailwind React and Create Beautiful Apps.pdf
Get Started With Tailwind React and Create Beautiful Apps.pdfGet Started With Tailwind React and Create Beautiful Apps.pdf
Get Started With Tailwind React and Create Beautiful Apps.pdf
 
Know the reason behind choosing bootstrap as css framework
Know the reason behind choosing bootstrap as css frameworkKnow the reason behind choosing bootstrap as css framework
Know the reason behind choosing bootstrap as css framework
 
Post css - Getting start with PostCSS
Post css - Getting start with PostCSSPost css - Getting start with PostCSS
Post css - Getting start with PostCSS
 
html5_css3
html5_css3html5_css3
html5_css3
 
Introducing PostCSS
Introducing PostCSSIntroducing PostCSS
Introducing PostCSS
 
Css week10 2019 2020 for g10 by eng.osama ghandour
Css week10 2019 2020 for g10 by eng.osama ghandourCss week10 2019 2020 for g10 by eng.osama ghandour
Css week10 2019 2020 for g10 by eng.osama ghandour
 
Discover the Top 23 CSS Frameworks for 2023.pdf
Discover the Top 23 CSS Frameworks for 2023.pdfDiscover the Top 23 CSS Frameworks for 2023.pdf
Discover the Top 23 CSS Frameworks for 2023.pdf
 
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
 
Azure Resource Manager templates: Improve deployment time and reusability
Azure Resource Manager templates: Improve deployment time and reusabilityAzure Resource Manager templates: Improve deployment time and reusability
Azure Resource Manager templates: Improve deployment time and reusability
 
AWS ECS Copilot DevOps Presentation
AWS ECS Copilot DevOps PresentationAWS ECS Copilot DevOps Presentation
AWS ECS Copilot DevOps Presentation
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
 
AWS Kochi User Group Presentation
AWS  Kochi User Group PresentationAWS  Kochi User Group Presentation
AWS Kochi User Group Presentation
 
How to Use Tailwind Config to Customize Theme Styles
How to Use Tailwind Config to Customize Theme StylesHow to Use Tailwind Config to Customize Theme Styles
How to Use Tailwind Config to Customize Theme Styles
 
Developer Night - Opticon18
Developer Night - Opticon18Developer Night - Opticon18
Developer Night - Opticon18
 
MANAGE STATIC RESOURCES IN SITECORE IN HELIX WAY
MANAGE STATIC RESOURCES IN SITECORE IN HELIX WAYMANAGE STATIC RESOURCES IN SITECORE IN HELIX WAY
MANAGE STATIC RESOURCES IN SITECORE IN HELIX WAY
 
Extending VSTS Build/Release Pipelines to AWS - WIN402 - re:Invent 2017
Extending VSTS Build/Release Pipelines to AWS - WIN402 - re:Invent 2017Extending VSTS Build/Release Pipelines to AWS - WIN402 - re:Invent 2017
Extending VSTS Build/Release Pipelines to AWS - WIN402 - re:Invent 2017
 
Css week11 2019 2020 for g10 by eng.osama ghandour
Css week11 2019 2020 for g10 by eng.osama ghandourCss week11 2019 2020 for g10 by eng.osama ghandour
Css week11 2019 2020 for g10 by eng.osama ghandour
 
HTML5 and CSS3 Techniques You Can Use Today
HTML5 and CSS3 Techniques You Can Use TodayHTML5 and CSS3 Techniques You Can Use Today
HTML5 and CSS3 Techniques You Can Use Today
 
MongoDB.local Atlanta: MongoDB Stitch Tutorial
MongoDB.local Atlanta: MongoDB Stitch TutorialMongoDB.local Atlanta: MongoDB Stitch Tutorial
MongoDB.local Atlanta: MongoDB Stitch Tutorial
 
Getting started with titanium
Getting started with titaniumGetting started with titanium
Getting started with titanium
 

Plus de Ilesh Mistry

Delivering client sites - KC2015
Delivering client sites - KC2015Delivering client sites - KC2015
Delivering client sites - KC2015
Ilesh Mistry
 

Plus de Ilesh Mistry (13)

Getting started with Next.js - IM Tech Meetup - Oct 2022.pptx
Getting started with Next.js - IM Tech Meetup - Oct 2022.pptxGetting started with Next.js - IM Tech Meetup - Oct 2022.pptx
Getting started with Next.js - IM Tech Meetup - Oct 2022.pptx
 
Never too late to learn - IM Tech Meetup - Feb 2022
Never too late to learn - IM Tech Meetup - Feb 2022Never too late to learn - IM Tech Meetup - Feb 2022
Never too late to learn - IM Tech Meetup - Feb 2022
 
Launching a website before xmas
Launching a website before xmasLaunching a website before xmas
Launching a website before xmas
 
Common accessibility mistakes
Common accessibility mistakesCommon accessibility mistakes
Common accessibility mistakes
 
Introduction to Svelte - Mmt tech meetup - September 2020
Introduction to Svelte - Mmt tech meetup - September 2020Introduction to Svelte - Mmt tech meetup - September 2020
Introduction to Svelte - Mmt tech meetup - September 2020
 
GatsbyJS Recipes - Mmt tech meetup - August 2020
GatsbyJS Recipes - Mmt tech meetup - August 2020GatsbyJS Recipes - Mmt tech meetup - August 2020
GatsbyJS Recipes - Mmt tech meetup - August 2020
 
Digital Transformation - How the world is changing for you
Digital Transformation - How the world is changing for youDigital Transformation - How the world is changing for you
Digital Transformation - How the world is changing for you
 
Are CMSs on the brink of extinction
Are CMSs on the brink of extinctionAre CMSs on the brink of extinction
Are CMSs on the brink of extinction
 
Brown bag - Reasons to upgrade to Kentico 9
Brown bag - Reasons to upgrade to Kentico 9Brown bag - Reasons to upgrade to Kentico 9
Brown bag - Reasons to upgrade to Kentico 9
 
Delivering client sites - KC2015
Delivering client sites - KC2015Delivering client sites - KC2015
Delivering client sites - KC2015
 
Scope website - how to make an accessible website
Scope website - how to make an accessible websiteScope website - how to make an accessible website
Scope website - how to make an accessible website
 
Website development accessibility
Website development accessibilityWebsite development accessibility
Website development accessibility
 
Content Centric RWD - Kentico Connection 2013 - London
Content Centric RWD - Kentico Connection 2013 - LondonContent Centric RWD - Kentico Connection 2013 - London
Content Centric RWD - Kentico Connection 2013 - London
 

Dernier

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 

Dernier (20)

Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
THE BEST IPTV in GERMANY for 2024: IPTVreel
THE BEST IPTV in  GERMANY for 2024: IPTVreelTHE BEST IPTV in  GERMANY for 2024: IPTVreel
THE BEST IPTV in GERMANY for 2024: IPTVreel
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAK
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 

Introduction to Tailwind CSS - IM Tech Meetup - May 2022.pptx

  • 1. Intro to Tailwind CSS – May 2022
  • 2. WHO AM I? Intro to Tailwind CSS 2 @ileshmistry | @IM_TechMeetup IM Tech Meetup ILESH MISTRY (CMS SPECIALIST & KONTENT MVP) CONTACT ILESH @ileshmistry /@IM_TechMeetup SUBSCRIBE TO MY YOUTUBE CHANNEL
  • 3. WHAT I’LL BE COVERING? 3 • What is Tailwind CSS? • Why use it? • Quick demo with configuration • Takeaways @ileshmistry | @IM_TechMeetup IM Tech Meetup Intro to Tailwind CSS
  • 4. WHAT IS TAILWIND CSS? 4 • It’s a utility-first CSS framework allowing you to quickly build user interfaces • Predefined utility classes that you can use for common CSS styling @ileshmistry | @IM_TechMeetup IM Tech Meetup Intro to Tailwind CSS
  • 5. WHAT IS TAILWIND CSS? 5 • It’s a utility-first CSS framework allowing you to quickly build user interfaces • Predefined utility classes that you can use for common CSS styling @ileshmistry | @IM_TechMeetup IM Tech Meetup Intro to Tailwind CSS
  • 6. WHY USE IT? 6 • As it’s utility-first, you don’t have to worry about common issues with CSS classes and changes on projects • Scans all HTML, JS, TS, etc... files and writes them out into a static CSS file • Smaller bundle sizes, as it only ships what you are using and removes unwanted CSS 💪🏽 • Ideal to use on both small and large projects • Easy to use and understand the framework and has an awesome documentation 🏽 • Easy to extend it using Tailwind config @ileshmistry | @IM_TechMeetup IM Tech Meetup Intro to Tailwind CSS
  • 7. WHY USE IT? 7 • It uses the latest CSS features (CSS Grid, Transform etc…) and has dark mode! 🏽🏽 • If you use VS Code, you will love the Tailwind CSS IntelliSense extension ❤️ • Works with CSS Preprocessors like SASS and LESS • Biggest thing for me is convenience and speed of delivery @ileshmistry | @IM_TechMeetup IM Tech Meetup Intro to Tailwind CSS
  • 8. CONFIGURATION 8 • Different ways to install Tailwind CSS. You can use the Tailwind Installation Guide to follow these steps… • The quickest way is using the Tailwind CLI > npm install -D tailwindcss • Add the tailwind.config.js > npx tailwindcss init • Configure the paths for all your files e.g. HTML, JS, TS, SCSS etc… module.exports = { content: ["./src/**/*.{html,js}"], theme: { extend: {}, }, plugins: [], } @ileshmistry | @IM_TechMeetup IM Tech Meetup Intro to Tailwind CSS
  • 9. CONFIGURATION 9 • Include the Tailwind directives in your CSS input file @tailwind base; @tailwind components; @tailwind utilities; They provide the core category layers to your CSS file so you can use or override them • You can add a build process to convert all the input to an output CSS file > npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch • Use the output CSS file in your website or application • Start using Tailwind CSS 😍 @ileshmistry | @IM_TechMeetup IM Tech Meetup Intro to Tailwind CSS
  • 10. TAKEAWAYS 10 • Once you start using it, I feel you will not want to turn back to traditional CSS • Smaller bundle sizes, as it only ships what you are using and removes unwanted CSS • Super convenience to use and allows for speedy delivery • VS Code IntelliSense extension is an awesome advantage • Awesome documentation • Easy to install and get going @ileshmistry | @IM_TechMeetup IM Tech Meetup Intro to Tailwind CSS
  • 11. THANK YOU 11 CONTACT ILESH @ileshmistry @IM_TechMeetup ILESH MISTRY (CMS SPECIALIST & KONTENT MVP) @ileshmistry | @IM_TechMeetup IM Tech Meetup SUBSCRIBE – IM Tech Meetup Intro to Tailwind CSS

Notes de l'éditeur

  1. Disclaimer – I’m not an expert but today I will be talking about Tailwind CSS