Setting up Tailwind CSS in a SvelteKit Project

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024
  • In this video, I'll show you how to set up Tailwind CSS in a new SvelteKit project.
    Enjoying my teaching style? I'm creating an independent Tailwind CSS course called Pro Tailwind. Check it out at protailwind.com ❤️

Комментарии • 25

  • @vimmasi1
    @vimmasi1 Год назад +1

    Man, I always copy this tailwing.config.js code, but with your video is the first time I actually learned what I've been doing all this time. Thank you!

    • @simonswiss
      @simonswiss  Год назад

      That is amazing to hear! 🛫

  • @a4rdev
    @a4rdev Год назад +7

    This is not accurate anymore. In order to setup the layout you need to use +layout.svelte now instead of __layout.svelte. I'm not sure when the breaking change occurred, but I thought other people should know.

  • @miguelandreas8198
    @miguelandreas8198 Год назад

    Well, it doesnt work now. How to add +page.svelte to my layout?

  • @galaxiegalaxie5003
    @galaxiegalaxie5003 2 года назад

    Amazing,Are you using vite? If not please make one video on it with sveltekit and tailwindcss.

    • @shawnlee6775
      @shawnlee6775 2 года назад +1

      SvelteKit uses Vite under the hood. The config has a vite property that you can use to add all of your normal Vite config.

    • @galaxiegalaxie5003
      @galaxiegalaxie5003 2 года назад

      @@shawnlee6775 nice,thank you

    • @isaacfink123
      @isaacfink123 2 года назад

      @@shawnlee6775 the latest update changed that, just a heads up, sveltekit now uses vite as the server and your vite config goes in a vite configuration file

  • @kingsgambit9284
    @kingsgambit9284 22 дня назад

    This got my out of brain fog i was hars stucked confuse what all this are

  • @zbecknell
    @zbecknell 2 года назад +2

    Your videos are like taking Tailwind vitamins. Although I'm very comfortable with Tailwind, I can't help but watch and either learn more or reinforce my existing knowledge! Also, a happy coincidence, I _just_ dove into Svelte 2 days ago and will eagerly use it the next chance I get. (I saw Steve Sanderson talking about it, and you and him probably tie for my favorite tech presenters!)

    • @simonswiss
      @simonswiss  2 года назад +1

      Thank you so much for the kind words - that's awesome to hear!

  • @abacuswithrehan264
    @abacuswithrehan264 2 года назад +1

    Please Simon can you create your vscode font, theme and terminal setup. Please

  • @Edasa
    @Edasa 10 месяцев назад

    i have your steps completely and get this error: Unknown at tule @tailwind
    how do i fix the error? thanks for the help!

  • @andrewheller1081
    @andrewheller1081 2 года назад +1

    Love this!

  • @believelody5531
    @believelody5531 2 года назад

    Hey Simon, great videos, thanks a lot ! I have a question about tailwind. I made some custom tailwind class. I cannot use them in every style tag in my svelte file. I always have to use @import 'path/to/my/style.css'. But they are available and work fine for other html tag.

  • @justinoneill2837
    @justinoneill2837 Год назад

    do you know how can use this tailwind in combination with `svelte-package` ? i'm trying to create a sveltekit/tailwind component lib but i'm having an issue generating the package correctly

  • @sontiyo7113
    @sontiyo7113 2 года назад

    I am unfamiliar with .cjs
    also another question: I see at 4:56 you type script and IDE makes tag out of it, I assume its extension can you tell me the name?

  • @nivekdreamman3834
    @nivekdreamman3834 2 года назад

    Hi Simons,
    I really like your vscode setup, do you have or can you make a video, or post on your socials where you show how you set it up please?

  • @jayhu6075
    @jayhu6075 2 года назад

    What a great explanation about the src file structure. I have a question which themes your use in Vscode? I like that. Many thanks.

    • @simonswiss
      @simonswiss  2 года назад

      Thanks! The theme is called Night Owl.

    • @jayhu6075
      @jayhu6075 2 года назад

      @@simonswiss Thanks.

  • @andrewheller1081
    @andrewheller1081 2 года назад

    You should be able to use: npx svelte-add@latest tailwindcss to do all of the setup