Setting up Tailwind CSS in a Next.js Project

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

ความคิดเห็น • 56

  • @azuraflame1
    @azuraflame1 2 ปีที่แล้ว +5

    Thank you this was very straight forward with no extra unnecessary material. very helpful!

  • @piyush9688
    @piyush9688 2 ปีที่แล้ว +1

    Thank you so much for clear instructions, I wished the official docs had this type of clear instructions.

  • @codeNameMoose907
    @codeNameMoose907 2 ปีที่แล้ว +3

    This was beautifully perfect, Simon. Thank you! 🎉 You just got yourself a new subscriber! 😊

    • @simonswiss
      @simonswiss  2 ปีที่แล้ว +1

      Thank you! Glad you enjoyed the tutorial!

  • @matiasvaldez370
    @matiasvaldez370 2 ปีที่แล้ว +4

    Was already missing your videos! 😅

    • @simonswiss
      @simonswiss  2 ปีที่แล้ว +1

      Haha, it's been a while!

  • @japarradog
    @japarradog ปีที่แล้ว +1

    🎯 Key Takeaways for quick navigation:
    00:00 🚀 *Configuración rápida de Tailwind CSS en un proyecto Next.js*
    - Creación y configuración inicial rápida de un proyecto Next.js con Tailwind CSS.
    - Uso del ejemplo preconfigurado con Tailwind CSS para una integración inmediata.
    01:09 🔧 *Configuración manual de Tailwind CSS en Next.js*
    - Pasos detallados para instalar y configurar manualmente Tailwind CSS en un proyecto Next.js.
    - Creación de archivos de configuración de Tailwind CSS y PostCSS.
    - Personalización de Tailwind CSS para adaptarse a las necesidades específicas del proyecto.
    03:02 📁 *Configuración avanzada de archivos de contenido en Tailwind*
    - Uso de patrones globales para simplificar la configuración de archivos de contenido en Tailwind CSS.
    - Explicación sobre cómo incluir múltiples extensiones de archivos y directorios en la configuración de Tailwind.
    04:12 ✨ *Aplicación de Tailwind CSS en el proyecto*
    - Implementación de las directivas de Tailwind CSS en el archivo CSS global.
    - Demostración de la aplicación de utilidades de Tailwind CSS en una página de ejemplo.
    Made with HARPA AI

  • @amazingchannel27
    @amazingchannel27 ปีที่แล้ว +1

    Excellent 🔥

  • @MichaelShingo
    @MichaelShingo 11 หลายเดือนก่อน

    so easy, even setting it up after Nextjs installation.

  • @ahmadyovan6304
    @ahmadyovan6304 2 ปีที่แล้ว

    straight tutorial ever, exelent

  • @dragidavid
    @dragidavid 2 ปีที่แล้ว

    Looking forward to the upcoming videos! 😄 been a while

  • @ronakfuntimes
    @ronakfuntimes ปีที่แล้ว +1

    Thank you !

  • @dominuskelvin
    @dominuskelvin 2 ปีที่แล้ว

    Another great one!

    • @simonswiss
      @simonswiss  2 ปีที่แล้ว +1

      🙏 I've got some more coming with different frameworks!

    • @dominuskelvin
      @dominuskelvin 2 ปีที่แล้ว

      @@simonswiss Awesome. This is motivation for me

  • @TheMoviesManX
    @TheMoviesManX ปีที่แล้ว +1

    Thank you so much! a quick question, how do you preview your app through vscode?

    • @simonswiss
      @simonswiss  ปีที่แล้ว

      You can use Live Preview for that: marketplace.visualstudio.com/items?itemName=ms-vscode.live-server

  • @rishiyadav5362
    @rishiyadav5362 2 ปีที่แล้ว

    Thank you for this sir

  • @juanguerra3472
    @juanguerra3472 2 ปีที่แล้ว +1

    Manual setup didn't work for me. I need it in that way because I'm using JavaScript instead of TypeScript! Any idea? Thanks!

    • @simonswiss
      @simonswiss  2 ปีที่แล้ว

      If the manual setup is not working for you, you're probably missing one step or doing something wrong. You can always use the `with-tailwindcss` example and change the files from TS to JS, remove the type annotations, delete the TS config, and you're good to go 👍

    • @justinmichael447
      @justinmichael447 2 ปีที่แล้ว

      @@simonswiss please i tried doing it manually but couldn't add the directives to my css indicating error(unknown at rule @tailwind why?. i tried with-tailwindcss but installed typescript please how can i solve the error or change the typescript to javascript

    • @DiveIntoOpenSource
      @DiveIntoOpenSource 2 ปีที่แล้ว

      It's just VS code settings 😌

  • @catreunion
    @catreunion 2 ปีที่แล้ว

    Thank you Simon 🙏🏻

  • @assiajeanngoran4601
    @assiajeanngoran4601 ปีที่แล้ว +1

    Good video Simon. Thks ! Please what is your vs code font 😁 i found it very cool 😊👌🏽

    • @simonswiss
      @simonswiss  ปีที่แล้ว +1

      It's called Dank Mono ✨

  •  2 ปีที่แล้ว +1

    I'm getting this error when I try to run dev
    error - ./node_modules/next/dist/client/dev/amp-dev.js
    Error: Cannot find module 'xwind/babel'

  • @Qasimyaps
    @Qasimyaps ปีที่แล้ว +4

    To anyone watching the video now, his method of installation will no longer work.
    Run the command below and configure your project accordingly.
    npx create next-app --typescript

  • @eazrayildirim
    @eazrayildirim 2 ปีที่แล้ว

    Great video thanks.

  • @maresal4271
    @maresal4271 2 ปีที่แล้ว +1

    Great video. Can you share your vscode configs & theme?

  • @aim178
    @aim178 ปีที่แล้ว

    what is name this editor it`s looks cool

  • @TechWrathTV
    @TechWrathTV 2 ปีที่แล้ว +2

    You should add TYPE SCRIPT in the title as well as if someone wants to use JS they can use with-tailwindcss-emotion

  • @brandonr1288
    @brandonr1288 ปีที่แล้ว

    when I make the project I only get a readme file and a gitignore

  • @sayyedaaman5719
    @sayyedaaman5719 2 ปีที่แล้ว

    Thank you

  • @nitijjhangra8607
    @nitijjhangra8607 2 ปีที่แล้ว

    This is very basic. How about watching and building page specific css files?

  • @proteus1
    @proteus1 2 ปีที่แล้ว +1

    I just can't tailwind to work and i've been try to install it for 5 days. I just does nothing with the html...Can you help?

    • @dyslexicunt
      @dyslexicunt 2 ปีที่แล้ว

      What's your project setup?

    • @proteus1
      @proteus1 2 ปีที่แล้ว

      I have visual studio running on a Mac. For some bizarre reason, this reply was sent to me today. Good old UT

    • @dyslexicunt
      @dyslexicunt 2 ปีที่แล้ว

      @@proteus1 - Did you get it working?

    • @proteus1
      @proteus1 2 ปีที่แล้ว

      @@dyslexicunt I followed a video that showed installation line by line, but still didn't work. I made sure I had node is latest version, did the npm stuff. Still issues. Do you use Mac or PC?

  • @cmyk8964
    @cmyk8964 ปีที่แล้ว

    It’s not working. The utility classes do nothing, and Visual Studio Code doesn’t recognize “@tailwind”.

  • @mrattitude4759
    @mrattitude4759 2 ปีที่แล้ว

    grid utilities are not working can you please help

    • @simonswiss
      @simonswiss  2 ปีที่แล้ว

      Hard to help on a TH-cam comment. Can you create a Tailwind Play showing what doesn't work, and share the link? I'll take a look!

  • @Jeffrey7P
    @Jeffrey7P 2 ปีที่แล้ว

    I've been trying to upgrade ever since v3 was released and didn't work. Had success with new builds but couldn't make it work with storybook because of JIT. I'm now reattempting to upgrade on another project and it seems only tailwind utilities work. Is anybody else experiencing the same issue?

    • @simonswiss
      @simonswiss  2 ปีที่แล้ว

      Make sure the path to Storybook's stories (and file extensions!) are set up properly in your content array. 99.999% of JIT issues are due to a wrong content configuration.

    • @Jeffrey7P
      @Jeffrey7P 2 ปีที่แล้ว

      @@simonswiss purge path location was working on v2, when transitioned to v3 only utilities worked. Thanks for the response

  • @vahidsediqi5638
    @vahidsediqi5638 2 ปีที่แล้ว

    when i type npx create-next-app --example with-tailwindcss with-tailwindcss-app it creates nextjs app with typsctipt

    • @simonswiss
      @simonswiss  2 ปีที่แล้ว

      Yep, the Tailwind CSS example uses TypeScript. If I want a project without TypeScript, I find myself doing the "manual" install, which still only takes a minute or so.

  • @suphawatwong9438
    @suphawatwong9438 2 ปีที่แล้ว +1

    you forgot to mention that you need to import 'globals.css' file to '_app.tsx' file . . . .

    • @simonswiss
      @simonswiss  2 ปีที่แล้ว

      No need to, the globals.css file already exists in the fresh new Next.js project, and it's already imported. I just change the contents of this file at the 4:13 mark in this video 👍

  • @yokubibnsafar7895
    @yokubibnsafar7895 2 ปีที่แล้ว +1

    Assalomu Aleykum thanks man )

  • @arcosd63
    @arcosd63 ปีที่แล้ว +1

    It doesn't work, it just places a README document.

  • @The_Awakened_Hybrid
    @The_Awakened_Hybrid 2 ปีที่แล้ว

    GREAT content bro, thanks man. BTW, I ain't even gay man, but damn, you're a handsome dude! Must be all that VIKING DNA over there in Northern Europe! Victory OR Valhalla! SKOL my NORDIC brothers, let's march and bring the BEARSERKERS, we are gonna party with the hot village chix! ahahaha