Setting up Tailwind CSS in a Next.js Project

Поделиться
HTML-код
  • Опубликовано: 12 ноя 2024

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

  • @azuraflame1
    @azuraflame1 2 года назад +5

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

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

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

  • @matiasvaldez370
    @matiasvaldez370 2 года назад +4

    Was already missing your videos! 😅

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

      Haha, it's been a while!

  • @codeNameMoose907
    @codeNameMoose907 Год назад +3

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

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

      Thank you! Glad you enjoyed the tutorial!

  • @MichaelShingo
    @MichaelShingo 9 месяцев назад

    so easy, even setting it up after Nextjs installation.

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

    straight tutorial ever, exelent

  • @amazingchannel27
    @amazingchannel27 11 месяцев назад +1

    Excellent 🔥

  • @japarradog
    @japarradog 9 месяцев назад +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

  • @TechWrathTV
    @TechWrathTV Год назад +2

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

  • @Qasimbiz
    @Qasimbiz Год назад +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

  • @ronakfuntimes
    @ronakfuntimes 11 месяцев назад +1

    Thank you !

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

    Looking forward to the upcoming videos! 😄 been a while

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

    Thank you for this sir

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

    Great video thanks.

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

    Thank you Simon 🙏🏻

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

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

  • @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

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

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

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

    what is name this editor it`s looks cool

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

    Thank you

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

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

  •  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'

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

    Assalomu Aleykum thanks man )

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

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

  • @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 Год назад

      It's just VS code settings 😌

  • @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 👍

  • @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

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

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

  • @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.

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

    grid utilities are not working can you please help

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

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

  • @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?

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

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

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

    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