Тёмный

Adding Tailwind CSS to an Existing Project 

Tailwind Labs
Подписаться 95 тыс.
Просмотров 34 тыс.
50% 1

In this video, I'll show you how to add Tailwind CSS to an existing project without running into naming collisions or specificity issues, and while making sure we don't bloat the CSS by adding a whole new framework into the mix.

Опубликовано:

 

13 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 59   
@codernerd7076
@codernerd7076 2 года назад
Awesome, would love to see a video how to use TailWind to completely replace bootstrap on one extisting website
@ed1nh0
@ed1nh0 2 года назад
Up!
@aidanjporter
@aidanjporter 2 года назад
Really great video to learn more about modifying Tailwind to respect existing sites styling! Thank you man!
@simonswiss
@simonswiss 2 года назад
Glad you enjoyed that!
@joewesthead1
@joewesthead1 2 года назад
This is a good video in that it's realistic about actual scenarios. Need to add !important rules or 1px to media queries to make them work? Do it. Don't fret about perfect when good enough does the job.
@michaelterry7647
@michaelterry7647 2 года назад
Great point. I've done all of these and more and every time you have to pause for a second to decide how guilty you feel. But you shouldn't feel guilty!
@nicodomino6713
@nicodomino6713 2 года назад
Man I didn't think these tailwind videos could get any better! This is a fantastic real use-case that you've made look so simple with a few tailwind config tweaks that almost anyone could do it!
@oussou_lessou
@oussou_lessou Год назад
Just Amazing. This tailwind allow us get out of troubles with some responsive design issue an older project that use a GrapeJs builder and bootstrap. The client was amazed by the final result. Big respect to tailwind team 👏
@danrcastro
@danrcastro 2 года назад
It's amazing how anything in Tailwind can be configured to solve these edge cases.
@kevinuittenbosch
@kevinuittenbosch 2 года назад
Every time I use tailwind I am so amazed on how well thought this ecosystem is build. You guys are so damn smart!
@ajpl87
@ajpl87 2 года назад
These videos are truly amazing. I started incorporating TW into older Bootstrap 4 projects and I think to myself "Well I've got this figured out" and then Simon drops a new video which I watch for fun but then I realize there is SOO much more that I can do. Brilliant as always, Simon!
@michaelkiger-avianwebhosti202
SUPER EXCELLENT! Perfect, right to the point on all issues.
@simonswiss
@simonswiss Год назад
Nailed it 🎯
@coledrain2158
@coledrain2158 2 года назад
Man your videos are always interesting and fun to watch. Already a fan of you.👍
@EinLinuus
@EinLinuus 2 года назад
Heyy, I really love this videos, it's just awesome to see what you can do with tailwindcss. I'm wondering what Theme and extensions for VS Code you're using, can you put a list of them in the description or maybe make a video about your vs code setup? That would be awesome 🙌
@rojonali3374
@rojonali3374 2 года назад
Such a blessing for Tailwind lover
@nastygambler2522
@nastygambler2522 2 года назад
exactly just in time ... thanks so much
@esdev
@esdev 2 года назад
Hey dude! You're just Awesome!
@NorwayWithSaanj
@NorwayWithSaanj 2 года назад
Great video again…. Thanks 😊
@shamvuchandra
@shamvuchandra 2 года назад
awesome, thank you so much.
@cintron3d
@cintron3d 2 года назад
Needed this, thank you!
@boyrock75
@boyrock75 2 года назад
You are the awesome ❤️
@yeniercruz5306
@yeniercruz5306 2 года назад
awesome man!!
@MasterPloKoon
@MasterPloKoon 2 года назад
Another great video!
@juanramirez1419
@juanramirez1419 2 года назад
What is the extension you use to preview?
@kelvinzhao4960
@kelvinzhao4960 2 года назад
Love this! 🎉
@geoffyuendesign
@geoffyuendesign 2 года назад
Is it possible to import the original css in the base layer so that the site would only need to load in one single stylesheet?
@VinceKronlein
@VinceKronlein 2 года назад
It would be useful to see this methodology used on a large project like a Laravel/Vue project that has a lot of javascript and SCSS to compile. I've been asking about this for quite a while.
@sevenhero1
@sevenhero1 2 года назад
great tutorial thank you very much
@chandragie
@chandragie 2 года назад
This is great!!
@mgjulesdev
@mgjulesdev 2 года назад
If only I knew this in my previous project 😢
@simonswiss
@simonswiss 2 года назад
Now you know for the next one!
@RianY2K
@RianY2K 2 года назад
thank you for this tutorial, 😄
@arif-khan
@arif-khan 2 года назад
Amazing
@martinszeltins2045
@martinszeltins2045 2 года назад
Hey Simon, do you think you could include a repo with the tailwind config that you used in this video? Otherwise we have to try to find it in the video.
@realtonaldrum
@realtonaldrum Год назад
i want to write tw=' ' instead of class=' ' to apply tailwindcss. how do i do that?
@andrisoone
@andrisoone Год назад
It's a shame you had to remove Preflight for this and manually implement it to the respective elements. Would it be possible to create a `preflight` class that applies the rules to the children?
2 года назад
Hey Simon, how did you get IntelliSense to work without any node modules installed?
@chanmyaemaung
@chanmyaemaung 2 года назад
Does tips work in React tho? I have existing projects which I make up with Material UI, but I want to use TWCss alongside with my web app in just some cases.
@aayushchourasia5150
@aayushchourasia5150 2 года назад
Is it necessary to always name it as index.html? cuz I couldn`t link my .css file to any of my html projects :( please help
@evanmarshall740
@evanmarshall740 Год назад
I have tried your strategy with tailwind 3 and I run into an issue when adding text-color. It creates an output.css color with a variable ($green) which I am assumung is from the core plugins we opted out of. This throws and error because that $green variable is referencing nothing. Have you run into this? If so, is there a fix? Maybe this is an issue with the newest version of tailwind.
@coledrain2158
@coledrain2158 2 года назад
Hey Simon when's Tailwind 3.0 coming out? I'm having some issues with jit.
@simonswiss
@simonswiss Год назад
DAZZAAAAA
@cesin68
@cesin68 2 года назад
Hi, I'm having trouble doing ... for this to work I must do *, :: before, ::after { box-sizing: border-box; /* 1 * / border-width: 0; /* 2 * / border-style: solid; /* 2 * / border-color: currentColor; /* 2 * / } otherwise .. Is there another way?
@Troy-ol5fk
@Troy-ol5fk 2 года назад
Please make more videos about headless UI
@alex_ventura
@alex_ventura 2 года назад
I loved this minimum config to start working with TailwindCSS for a simple project like this, my question is, base on this simple config, what else do I need to do in order to build the final CSS file for production?
@alex_ventura
@alex_ventura 2 года назад
@Maiku Kamishiro thanks so much for your response!
@hfalucas
@hfalucas 2 года назад
Question: Why a grid of 10? Where does this number comes from? Could be 2 for example? Always having a hard time understanding grids 😅
@Kiliman3970
@Kiliman3970 2 года назад
I think he chose 10 so he would have some flexibility in how to divvy up the space to the actual content. In this instance, he had the image span 3 columns and the text was 7 columns. If he chose 2 columns, then by default the columns would be the same width. Again, it was an arbitrary decision. He could have used 12 columns (same as Bootstrap) and used a 4:8 ratio to get a similar result.
@hfalucas
@hfalucas 2 года назад
@@Kiliman3970 Ahhhh! Got ya, makes total sense, I had the feeling it had to do with that line of thinking as well. Thank you so much for answering :)
@simonswiss
@simonswiss 2 года назад
@@hfalucas Haha yes, totally arbitrary decision - 1/3 & 2/3 made the image just a bit too wide, so I went with 3/10 & 7/10 without really overthinking it 👍
@w2lkm2n
@w2lkm2n 2 года назад
Then comes the 3. person and introduces the next Best CSS framework, which works really well next to the original, tailwind and and only takes a small footprint, just another 2 commands and 0.5kb extra CSS. Then comes the 4. person... True story.
@gursimranvirdi9097
@gursimranvirdi9097 Год назад
how to use this with a php project
@HugRunner
@HugRunner 2 года назад
Could you show how to integrate Tailwind CSS in e.g. Visual Studio, and more specifically a ASP.NET / .NET (core) project?
@ringyring
@ringyring 2 года назад
Isn't it as simple as running a Tailwind CLI installation in the project directory, or would it conflict with another npm tool?
@irsyadadl
@irsyadadl 2 года назад
Lord Simon 😆
@yasingunaydiin
@yasingunaydiin 3 месяца назад
How are people saying that this works? Understood nothing from this tutorial starting from where he added 'jit'.
@CuriousBehruz
@CuriousBehruz 2 года назад
I have a problem with TailwindCSS to make hamburger menu
@kashnigahbaruda
@kashnigahbaruda 2 года назад
Moawr plz
Далее
Theming Tailwind with CSS Variables
27:24
Просмотров 124 тыс.
Building a YouTube Thumbnail with Tailwind CSS
14:17
Просмотров 28 тыс.
Ванесса 🆚 Крискас  | WICSUR #shorts
00:42
Learn CSS Subgrid in 14 minutes
14:19
Просмотров 73 тыс.
I WISH I Knew These Tailwind Tips Earlier
9:15
Просмотров 186 тыс.
13 Things To Remove From Your Website Immediately
12:33
Translating a Custom Design System to Tailwind CSS
10:10
Floating Labels with Tailwind CSS
10:19
Просмотров 101 тыс.
The Story of Next.js
12:13
Просмотров 576 тыс.
Styling Forms with Tailwind CSS
17:25
Просмотров 141 тыс.
Ванесса 🆚 Крискас  | WICSUR #shorts
00:42