02: The Utility-First Workflow - Tailwind CSS v2.0: From Zero to Production

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

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

  • @zalodias123
    @zalodias123 3 ปีที่แล้ว +39

    I like how you explain some design concepts along the way when you are styling the components.

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

    Terrific! Bite-sized code-along tuts, perfect to show us how Tailwind makes CSS intuitive and fast. Loved the bonus design tips...already used a few

  • @Ismail-hq8cq
    @Ismail-hq8cq ปีที่แล้ว +5

    Anyone who want to add autocomplete:
    - Install: Tailwind CSS IntelliSense extension in VS code.
    - Open your settings.json file then add this to get the intellisense working on all files:
    "tailwindCSS.includeLanguages": {
    "html": "html",
    "javascript": "javascript",
    "css": "css"
    },
    "editor.quickSuggestions": {
    "strings": true
    }

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

    Excellent tool and the supporting content like this is just amazing

  • @kvncnls
    @kvncnls 3 ปีที่แล้ว +6

    How did you get the autosuggestions?

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

    Nice , after watching this video I decided to use Tailwind in my new project. thank you!

  • @juliangzr4998
    @juliangzr4998 3 ปีที่แล้ว +12

    i don't understand why the div appears centered in the body, you didn't specified that in any place

    • @EugeneBuvard
      @EugeneBuvard 3 ปีที่แล้ว

      I was wondering exactly that, I don't get it. Any idea?

  • @deepfuchsia7204
    @deepfuchsia7204 3 ปีที่แล้ว +19

    I just noticed this channel is actually Tailwind Labs channel.

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

      Wow! Really good content

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

    How did you get Preview inside Vs-code. If anyone knows please tell.

  • @fabiothebest89lu
    @fabiothebest89lu 3 ปีที่แล้ว

    Very cool..Keep these kinds of examples coming. they are very useful for learning Tailwind CSS.

  • @vladutcornel
    @vladutcornel 3 ปีที่แล้ว +14

    I am old enough to remember the < font > HTML tag and people telling me I shouldn't mix styling and markup.
    Guess it's full circle now.

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

      Same, but the old HTML attributes and tags had the disadvantage of not being reusable or versatile at all. Since this is still CSS, you can change a color in one place and still have it change everywhere, which was impossible back then with color="red"

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

      @@RemizZ That works if you use the same color, but in a slightly different shade.
      If you need to use a completely different color (e.g. red to blue), or even a different saturation (e.g. red-900 to red-800), you still have to change it everywhere.

    • @TheRafark
      @TheRafark 3 ปีที่แล้ว

      This paradigm really shines when combined with markup components (like React components, for example) not only do you avoid repetition, the level of flexibility you have is unmatched with external or inline css.
      For example, in a React component, as an argument you can accept the size of a button (let’s say small and large) and only conditionally add/remove utility classes right from the view without messing with ugly and frágil css styles. It’s awesome.

    • @SuperQuwertz
      @SuperQuwertz 3 ปีที่แล้ว

      @@vladutcornel That depends, when you also use color-primary-xxx and then change the primary color from blue to orange, you do not have to change the stufff.
      What I mean:
      You define blue and orange.
      Then you do: primary = orange.

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

    I am intrigued by the extension name of his html preview. If you don't mind to share it'll be great.

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

      @@ZulluBalti I think that one is the tailwin css intelliSence try it and when you hover the class click on ctl, it may work.

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

      "Browser Preview" extension

  • @botnarimihail3294
    @botnarimihail3294 3 ปีที่แล้ว

    Very good staff for beginners, thanks

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

    what was the reason for the inline-block on the a tag?

    • @chickeninegg6997
      @chickeninegg6997 3 ปีที่แล้ว +9

      the a tag has ‘display: inline’ by default. We need to change it to inline-block or block to give padding

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

    Great CSS Framework,
    Could you please share your vscode extentions and theme, I really like it.

    • @vijal-patel
      @vijal-patel 3 ปีที่แล้ว

      looks like the nightowl theme, extension is likely "Tailwind CSS IntelliSense"

  • @Наталимоєжиття
    @Наталимоєжиття ปีที่แล้ว

    Привіт цікаво переглянула дякую за відео

  • @J90JAM
    @J90JAM 3 ปีที่แล้ว

    Loving this series 👍

  • @whyyshivam
    @whyyshivam 7 หลายเดือนก่อน

    Hey! What 's your vscode font name?

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

    Hi, which preview extension are you using?

  • @HMaxTube11
    @HMaxTube11 3 ปีที่แล้ว

    Nicely thought-out platform. 👏👍⭐️

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

    What 's your vscode font name? It's very beautiful

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

    Does anyone know why he surrounded the anchor in a div to make it display block instead of telling the anchor itself to be display block?

    • @EnigmaSnape
      @EnigmaSnape 10 หลายเดือนก่อน

      Extra div is unnecessary, especially when we use inline-block for the anchor

  • @Arkl1te
    @Arkl1te 3 ปีที่แล้ว +9

    What vscode extensions do you use for tailwind autocompletion? I tried "Tailwind CSS IntelliSense" but it isn't working. Or are you using a different extension/editor?

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

      You have to include the language you are using in your tailwind config file. A quick google search should help you out. Look for "tailwind included languages".

    • @Virtualmix
      @Virtualmix 3 ปีที่แล้ว +6

      Tailwind CSS IntelliSense

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

      add this to the VS Code config:
      {
      "tailwindCSS.includeLanguages": {
      "plaintext": "html"
      }
      }

    • @barbaros_burak
      @barbaros_burak 3 ปีที่แล้ว

      @@nikitalive3845 Thank you so much. That helped a lot.

  • @ufufu001
    @ufufu001 3 ปีที่แล้ว +5

    do i need to install anything in order to have them autocomplete suggestions on vscode? they don't show up for meg

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

      @@nplayon fantastic! thank you king

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

      Great tutorials 👍

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

      @@kernelpanic901Awesome!

  • @hmsmurtaza
    @hmsmurtaza 5 หลายเดือนก่อน

    Which extension are you using in vs code for tailwindcss code completion??

    • @hmsmurtaza
      @hmsmurtaza 5 หลายเดือนก่อน

      i found this one during search: Tailwind CSS IntelliSense

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

    how to take live preview. I am using visual studio code, and installed 'html preview' . But its not work with tailwind. Help please!

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

      you have to right click and use live server for html preview

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

      @@goodluck_charliee Thank you. I have already Vite dev server of tailwind css as he described previous startup video of tailwind, do I face any conflict between these two. I also want to know what type of preview is he using above video. I also have 'browser preview'. Is it same of Live Server?

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

      @@abhilashoommen4704 The Vite dev server is the one he's using. Since I have Live Server as well and was actually running it before we got to the Vite dev server walkthrough I can confidently say that there isn't a conflict between the two.

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

      @@DerickMasai when I open vite, it loads the index.html on a new safari tab. How do I get vite to open within VSCODE in the same manner in the video? (it's displayed to the right side of the code)

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

      @@iamthekingofchoco He mentioned in another video that that is done by an internal tool at Tailwind. Not sure on this though but he also mentioned they would release it once it was stable.

  • @Jack-ss4re
    @Jack-ss4re 2 ปีที่แล้ว

    You explain so well. Do you teach somewhere that i can learn?

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

    Should've done it with some different design tho. I coded up the same thing with TW2 and it had virtually no difference at all. You can easily follow Adam coding up the same thing with TW1 and it will be the same.

    • @ExtraServingsBTS
      @ExtraServingsBTS 3 ปีที่แล้ว

      yeah I'm a big tailwind believer, but why recreate the whole workcation series already done so well by Adam? The sexy French accent?

    • @shivrajnag12
      @shivrajnag12 3 ปีที่แล้ว

      That's the only bad thing about this series

    • @TailwindLabs
      @TailwindLabs  3 ปีที่แล้ว +6

      So, that's a fair point - but the idea was to give this course a refresh.
      A lot of things have changed since the original course (setup steps, built in Purge CSS, variants.exend, ...) so we needed an up-to-date version of this material.

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

      @@TailwindLabs I still say it's all about the French accent ;). Keep up the amazing work. Cheers from the 905.

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

    thanks, great video to start with TW VERY WELL EXPLAINED THNKS

  • @joshmanhuwa2475
    @joshmanhuwa2475 3 ปีที่แล้ว

    Hie i like your text editor font, what i the font name? where can i buy or download it?

    • @Virtualmix
      @Virtualmix 3 ปีที่แล้ว

      comic sans ms

  • @prodprotto
    @prodprotto 3 ปีที่แล้ว

    'flex justify-center' either body or div, don't know why his is automatically centered lol

  • @SunGod-887
    @SunGod-887 3 ปีที่แล้ว

    dammm. this is amazing.

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

    I did the same code with different images and logo.The page content is not centered.I feel like there are other parts missing. but I appreciate very much these efforts.
    Merci beaucoup pour les efforts que vous etes entrain de faire.J'ai compris que vous parlez le francais depuis le depart. :p

    • @superliontech8781
      @superliontech8781 3 ปีที่แล้ว

      I know it's been a while but I'm facing the exact same issue. Could you find a way to center things the way he did on the video? On the Tailwind documentation they suggest using flexbox or grid. But somehow his did without adding any flex attribute.

    • @HarishBP-o3l
      @HarishBP-o3l 11 หลายเดือนก่อน

      update like this

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

    Nothing about node/npm/vscode extensions and other details that would make it easier for a first-time beginner to follow.

  • @theshubhagrwl
    @theshubhagrwl 3 ปีที่แล้ว

    This is super helpful :)

  • @abdi_pie7266
    @abdi_pie7266 3 ปีที่แล้ว

    thx, this is useful stuff

  • @sinaukode
    @sinaukode 3 ปีที่แล้ว

    this tutorial is similar with the one that Adam Wathan make on his channel

  • @cas4425
    @cas4425 3 ปีที่แล้ว

    👍🏻👍🏻👍🏻

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

    poggers