A look at the CUBE CSS methodology in action

Поделиться
HTML-код
  • Опубликовано: 5 июл 2024
  • There are a lot of different approaches to writing CSS, with CUBE CSS by Andy Bell being one of the newer methodologies out there. I get a lot of questions about it, so in this video I look at coding up a Frontend Mentor project using the CUBE CSS approach.
    🔗 Links
    ✅ CUBE CSS Documentation: cube.fyi/
    ✅ The Design I'm working on: www.frontendmentor.io/challen...
    ✅ Andy Bell's CSS reset: piccalil.li/blog/a-modern-css...
    ✅ Written overview of CUBE: piccalil.li/blog/cube-css/
    ✅ My look at BEM: • Why I use the BEM nami...
    ✅ Custom Properties: • CSS Variables - An int...
    ✅ Logical properties: • Write better CSS using...
    ✅ The :where() selector: • :where() - Remove the ...
    ⌚ Timestamps
    00:00 - Introduction
    00:48 - What we're building
    01:12 - What is CUBE CSS
    02:17 - What we're starting with
    03:18 - Writing the HTML
    09:18 - Setting up the global styles
    13:42 - Utilities
    23:26 - Composition
    30:15 - Groupings
    33:09 - More composition
    39:00 - Exceptions
    #css
    --
    Come hang out with other dev's in my Discord Community
    💬 / discord
    Keep up to date with everything I'm up to
    ✉ www.kevinpowell.co/newsletter
    Come hang out with me live every Monday on Twitch!
    📺 / kevinpowellcss
    ---
    Help support my channel
    👨‍🎓 Get a course: www.kevinpowell.co/courses
    👕 Buy a shirt: teespring.com/stores/making-t...
    💖 Support me on Patreon: / kevinpowell
    ---
    My editor: VS Code - code.visualstudio.com/
    ---
    I'm on some other places on the internet too!
    If you'd like a behind the scenes and previews of what's coming up on my RUclips channel, make sure to follow me on Instagram and Twitter.
    Twitter: / kevinjpowell
    Codepen: codepen.io/kevinpowell/
    Github: github.com/kevin-powell
    ---
    And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

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

  • @MMH94MMH
    @MMH94MMH 2 года назад +193

    Whenever I want to learn a certain thing in CSS, I type that thing into RUclips concatenated with Kevin's name and I find it, this channel is my CSS reference. Thank you very much for the effort you have made to bring us such amazing content Kevin.

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

      Kevin is just Awesome!

    • @caseypearce1049
      @caseypearce1049 2 года назад +3

      You know what I mean 😂

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

      I do exactly the same! Great content every time.

  • @octothorpe12
    @octothorpe12 2 года назад +32

    This is the first "framework" that I feel really embraces what CSS is all about. Glad to see it's getting more love.

  • @agent-33
    @agent-33 2 года назад +22

    "One of the best ways to be *less frustrated with CSS* is to have some structure to how you're writing it."
    Perfect intro.

  • @mikehill1114
    @mikehill1114 2 года назад +49

    When doing my CUBE classes I do:
    class="
    [composition] comp-class
    [utility] utility-class-1 utility-class-2
    [block] block-class
    [exception] exception-class-1 exception-class-2
    "
    This makes it clear what is intended, which classes are which, where to find them, etc.
    I also have my IDE set whenever I do class to put in the [] tags automatically.

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

      This is the pro-tip I didn't know I needed. Thank you for this. I've always found it messy when you start having too many classes and tried to give it some order myself but this is an excellent practice imo!

    • @Sampad-Sarker
      @Sampad-Sarker 2 года назад

      good advice to follow

    • @aakash-codes
      @aakash-codes 6 месяцев назад

      That's a clever idea, thanks for sharing.

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

    I followed this tutorial till the very end and the level of clarity it brought is just mind blowing! Thanks Kevin!

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

    I've been writing my CSS kind of like this for some time now. Definitely something that I am going to be deep diving into. Great video overview, this was super useful and fun.

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

    I'm learning the front end starter kit HTML/CSS/JS and I'm glad I found your channel, you provide very good material. This CUBE workflow IMHO feels very modern and streamlined just like the fancy frameworks out there!

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

    I really love your videos! I've discovered your channel recently and it just openned my mind about how powerful css is!
    I'm a backend dev, and was not very good at css, but I always loved designing UIs! I'm currently trying to make a 3D scene with css after watching your videos about it!
    I wish I could do more frontend professionnaly, but I've been a backend dev for too much time...
    Thank again for your content!

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

    You are just awesome, if now i am a front end developer is because of you, i just started 2 years ago with an internship knowing literally nothing about CSS, you made my work so much easier and professional, thank you so much for your work Kevin.

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

    Totally agree with you regarding BEM and the "plan" standalone component. Most people just lengthens the card class while can be definitely an individual component. Probably because most of them don't fully understand it's purpose. Big props for pointing that out - writing clean code Is an art 😄

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

    Love cube! I think I learned of it from your channel a year or two back and have been enjoying it!

  • @ThetaSimulator
    @ThetaSimulator 2 года назад +3

    I love how he's been improving his enunciation of "front-end friends" over the past few videos after numerous confused comments lol You Rock Kevin!

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

    Oh wow! What a timing.
    Please make more frontendmentor challenges. That is sooo helpful!

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

    clearly, CUBE CSS is the illegitimate child of BEM and Tailwind =))

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

    That…is a very good and well-thought out CSS reset! Thanks for the link, Kevin!

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

    I'm currently halfway through the Scrimba career path, and this morning I've decided to take some time to adopt a css methodology before moving on with the rest of the path. What do you know, the Amazing Kevin comes in with a Cube CSS demo using the very same frontendmentor project that I dabbled with a couple of weeks ago.
    You're a gift from the Gods Kevin. Keep it up!

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

    I actually love this. Especially the exceptions part. As someone who primarily works with JS, this makes a lot of sense.

  • @agent-33
    @agent-33 2 года назад +1

    Thanks sir Kevin. You are really good at educating us. I learned a lot in 50 minutes and I'm gonna try your way until I can come up with my own way of styling. I was using grid area template because I find it easier.

  • @Fatima-zd4el
    @Fatima-zd4el 2 года назад

    I'd almost given up on css until i found this channel! thank you so much kevin :)

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

    AWESOME video! Love stuff like this. Thanks Kevin, you're the best!

  • @RobertMcGovernTarasis
    @RobertMcGovernTarasis 2 года назад +7

    Like some others I struggle with the how to break things down so this was a useful video. I’m not a fan of cluttering the html up with so many classes; something I detest about bootstrap. I prefer (and I’m still learning) to have the separation of concerns as much as possible. But I can also see the benefit of CUBE.

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

    Perfect timing! I recently completed this challenge and was unsure how to name that "plan" component with BEM. I ended up with something like card__plan-name, card__plan-pricing so on...

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

    That's so nice. Thanks for your wonderful videos about CSS.

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

    OK but "the lobotomized owl" made me crack up for real. I don't know how, but I've never heard that nickname for it before and I love it. 😅

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

    Thanks for that. All this time you made typos and couldn't figure out things made it more obvious to me why I shouldn't use utility classes too much. Instead of just remembering CSS you need to remember a lot more. So it was really useful to see your method. It made me see what is not working and what is working.

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

    I love your content and clear explanations. This methodology looks super clear and makes sense! Will you ever do any video about CSS in JS - particularly styled-components library?

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

    Great tutorial. Thanks, Kevin. Love your videos!!🙂😊

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

    Ive watched so many of Kevin's videos that his voice takes over the voice in my head whenever I open VSC

  • @Tom-ow6gw
    @Tom-ow6gw 2 года назад +2

    Great stuff Kevin! Very timely too, just went through Andy's Eleventy from Scratch course where he uses the CUBE CSS methodology. I'm a little conflicted about it. On the one hand I love how it embraces the cascade and uses composition classes to control layout. On the other hand, I don't tend to like utility classes. It's nice for those moments where there's not really a good name for something, and on bigger projects you'll probably see a performance boon by delivering less CSS. It kind of clutters up the HTML though, and makes it harder to read and reason about which styles are being applied, since the styles are applied in different places. For small/medium projects where the performance gains are minimal, I think it makes more sense to use variables or mixins (if using SCSS) as pseudo-utilities and popping them on the block class. Still getting used to it though, maybe I'll come around to utility classes

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

    I like this. I have a family project for this weekend and I'll apply this to it.

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

    This approach looks really great. I have to dive into it.

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

    amazing bro, thx a lot for sharing this precious knowledge

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

    Pointer: Cursor 😅😅 That happens to me a lot, Thank you Kevin, I feel like am lucky to find your RUclips Channel, You have no idea how much I frustrate to learn CSS, although I got some basic of CSS but I am not confident to use CSS with full of its potential. Again thanks 😊

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

    I miss "friend and friends"! Now, your enunciation is on point. I like the quality and polish of your videos regardless of the intro. Keep up the good work!

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

      btw you prob know but it's "front end friends" if I'm not wrong

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

      Thank you! 😃

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

      @@namesurname6294 Look up the definition of "enunciation". I think Nephi knows full well it's "front-end friends"... that's the whole point of the comment!

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

    Thanks Kevin. learned a lot from you.
    My goto channel for css.

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

    I think that this convention is awesome with CSS, but shines and gives out the most with pre-processors/PostCSS mixins: for example, the a tag style could have used the .link class as a mixin, or the .card block could have used all the utility classes for writing them only once.
    I really like this methodology and I'm working to a suggestion on the parenthesis standard they adopted!

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

    When you are working on bigger projects, do you have a bunch of utility classes that you just paste in ready to use them or do you set them up for each project individually?

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

    My man!! We asked, you provide ^^. Can't wait to watch it today. Thanks!! 👍👍

  • @qorzzz9252
    @qorzzz9252 2 года назад +19

    If you are writing straight HTML and CSS utility classes are way too verbose and make maintaining stuff a nightmare. I really think you need to make a video explaining WHEN it is best to use utility classes (when you are creating re-usable components).

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

      It's not a matter of vanilla HTML/CSS vs framework but a matter of project size. A big project with an attached design system benefits 100% from utility classes. A small website/landing page would get next to no value from utilities

    • @Issvor
      @Issvor 2 года назад +3

      I'm right there with you. I've only worked on small projects, so I'm not really understanding this video that well. Having a class called "padding-48" with a single padding property doesn't make any sense to me. Why not just use an inlune style at that point?

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

      @@Issvor because kevin example is bad. You do not have a class named `padding-48` you have classes named `padding-1` to `padding-N`. And you go from 1 to N in a step given by your design system. Again, you need a large project and a design system to get any use of this. Utilities are not the best for 10 pages websites

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

      @@Issvor There's a tutorial called "Build a dashboard with CUBE CSS"-a tool called gorko is used to generate the utility classes (e.g. color-primary, color-light, bg-tertiary-glare) from design tokens.
      Similarly with "Learn Eleventy from Scratch"; using Nunjucks template inheritance styling repeated all over the site typically only exist on a single template somewhere in the source.

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

      I only do large-project sites, and even then, utility classes are annoying as hell. Just set a CSS Custom Prop and you're good to go.

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

    Great job!

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

    Thank you, Kevin. Very nice and informative video once again. Might want to add "at" in the title (A look "at" the CUBE CSS..)

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

      Good call, thanks for pointing it out! I just fixed it

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

    I like the idea of using utility classes to do a lot of the work. But how do you deal with utility classes in combination with a responsive layout? For example it’s not uncommon for a text to be aligned right on big screens and left or center on small(er) screens. And there are tons of other situations where using a utility class instead of a block/element specific class could pose a challenge when it comes to responsive changes.
    I’ve seen CSS frameworks that implement the same utility class for different breakpoints e.g. .text-left-lg .text-right-md or whatever. But that adds a ton of overhead because you end up with lots of utility classes that you never use.

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

    Awesome tutorial thanks

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

    FINALLY!!! THANK YOU SO MUCH FOR SHARING THIS KEVIN!

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

    what is your opinion about styled-component? I find it amazingly fast and useful

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

    you could give a align-self to the image that is flex item with any value other than stretch to fix it.

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

    Giving a very quick loo. It basically looks like tailwind, just that we're building our own? Is it really that or is there something more to it? If the case, why use it instead of tailwind? (or any other utility-first css frameworks)

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

    What's your thought on Wordpress Divi? I'm despertaly trying to move away from wordpress as it's hastle. I expect behind the scenes it uses a lot more baggage than plain old html and css. I'm trying my hardest to learn from you and thankyou for your uploads and knowlwedge.

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

    Good stuff... ✨

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

    You pronounced "front end friends" so much more clearly this time 😂

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

    how are you adding brackets around things with the push of a button (or two buttons)

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

    Hi and thank you for your videos !
    This has nothing to do with this video, but, what's the name of your vsc color theme ? 😅

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

    Hey Kevin, thanks for making things really easy to understand, as you always do!! A little bit off-topic here, do you have an opinion on tools like Stitches and Radix UI? And what about Alpine.js?

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

      Haven't tried any of them, so I can't really comment, sorry.

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

      @@KevinPowell No problem! Thank you for the reply! It was only out of curiosity. Love your videos, btw!

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

    32:40 one reason for why I never started with bracket-grouping classnames. I had no idea why it wasn't working.

  • @Voidstroyer
    @Voidstroyer 2 года назад +6

    It seems that something like this would pair well with Tailwind since Tailwind provides all the utility classes for you (with the ability to extend it with your own). And Tailwind allows you to create your own compositions using @apply.

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

      At that point you just writing css with css, Tailwind not working well with sass

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

      @@codernerd7076 sass is not necessary I think.

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

      @Miguel Lansdorf neither is Tailwind

    • @Voidstroyer
      @Voidstroyer 2 года назад +3

      @@codernerd7076 you mentioned tailwind doesn't work well with sass. I said that sass is not necessary. What I meant by that is that you can use tailwind as is. Tailwind provides all the utility classes you could ever need with the ability to extend them. The U in CUBE stands for Utility. What tailwind does is that it helps you not have to deal with the U anymore and you can then just focus on the CBE. And with the use of @apply, you can easily take care of the C as well leaving you just with B and E. That is why I said that CUBE pairs well with Tailwind.

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

      @Miguel Lansdorf you do make a good point there

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

    I just can't get behind multiple utility classes that are single lines of css. unless it's something I need to toggle with Js, like el.classlist.toggle('hidden')
    I feel like I might as well be writing inline styles.
    But I kinda do like how it means you can more easily throw on a new class to override some style. Instead of having to come up with a unique classname for your component, just to be able to select it and override some style via the css filé

  • @TranNguyen-pw5xo
    @TranNguyen-pw5xo Год назад

    Thanks for the great video. But I have no idea how to responsive spacing when using those utility classes.
    For example: if I use "padding-48" class, how to change the padding spacing to another size in smaller screen?
    I'm facing this issue when using utility class for padding and margin. Does anyone have any idea?

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

    Cool!

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

    In every video you make, did you manually wrote that custom properties in your root?

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

    but if you have to change, for example, the background of all your cards through the site? You'll have to search for all cards and change de background class?

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

    Thank you.
    :')

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

    37:43 : You acknowledge a part of the problem...
    Utility classes violate the separation of concerns. You're making styling decisions in the HTML.
    Your HTML becomes so messy with the usage of these classes, you end up using invalid selectors (square brackets) to try and see what's going on.
    You seem to be doing a lot of extra and unnecessary work styling a site like this.

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

    Thanks!

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

    Sticking to BEM

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

    i don't use css, i'm using tailwind. Best solution ever.

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

    Sorry what’s do you use to format your css… I’ve been looking for a css formatter, I’ve installed beautify and prettier. It doesn’t work for the css

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

    This reminds me very much of what inuitcss does (or did, since it seems to be dead).

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

    At 28:27 in figma, press cmd+click to select the exact element you are clicking on. No need for that double and triple clicking jazz ;)

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

    44:45 the underline looks different because it is a different font, which I'm guessing is the default sans-serif that is also applied to your other buttons since they need to have the font-family property specified explicitly.

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

      Same font, the reset I used had form elements and buttons inheriting the font properties 🙂. It's just the line is lower down in the design, and I don't think Figma can do the skip-ink effect which is the default in browsers now.
      You could modify the text decoration to pull the line down and may be it more closely though.

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

      @@KevinPowell The font is definitely different (just compare the lowercase a or e, or uppercase S or C). But now I see that it's not just the button. The font-family you specify in your body element is "Red Hat" but there is no such font, there's "Red Hat Display", "Red Hat Text" and "Red Hat Mono". The Display variant is the one used in this design.

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

    Hi Kevin, what plugin do you use to code that much easier
    what i mean is this --> p*2 gives u 2 paragraphs

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

      I think it's an extension called Emmet, look it up. Saves so much time :D

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

    How do you auto create containers with class names like that, is that a extension or a key press?

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

      It's an extension called Emmet

  • @MohamedAhmed-rf5bk
    @MohamedAhmed-rf5bk 2 года назад

    Hey Kevin, I have “learnt” html and css, not to an extent where I can confidently sit down and make a website/ landing page from scratch on my own, I’m looking for like a series of css projects where you kind of take us through your thought process from looking at a page and designing it. I did see one on your page, could you tell me where I can find many others like that? I don’t mind paid ones even but please don’t say scrimba, I hate their style.

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

      Start building projects on your own on frontendmentor. Start with beginner and you’ll eventually end up learning how to build full landing pages

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

    curser: pointer; - "I always get that backwards the first time". I can relate to that all too well 😅

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

    💯💯💯

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

    Do you think CSS in JS tools like emotion or styled components make these methodologies unnecessary or do you think it would be usefull to use them together?

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

      I think this makes stuff like emotion and styled components unnecessary? 😅 - What I like about CUBE the most is it's about embracing how CSS works, rather than trying to make it something it isn't, which I feel is often the goal with CSS-in-JS solutions. CSS, for the most part, should be globally available. I think there can be a balance as well though, and I know why those solutions are popular, but I've seen some really bloated projects (on the styling side of things), because of how people sometimes use them.

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

      Yeah, just put the utility classes in your css, and your component specific styles in the component.

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

      I think styled components simplify things greatly ... You can reuse them like usual and you're developing a part of the project that fits together in one piece, so it makes sense to have CSS and JS together. If you're a mechanic, you wouldn't separate your tools by color, would you? That's the vibe I kind of get with separating CSS from JS - it just doesn't make sense and doesn't help you with your job of what you should be doing: implementing features to make the webpage work.

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

    👏👏

  • @wfl-junior
    @wfl-junior 2 года назад

    Why not a different file for each category? i.e. composition.css, utility.css and main.css, and you could import everything into style.css and link only one file in the html

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

    + new fan here :D

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

    CSS KING

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

    why did you put button styles in data type not in a class? i know you sort of covered it, but any pointers to why it helps?

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

      It's because you can't have data-type=primary secondary. It forces you to pick one, and makes it clear there should only be one. With classes, it might be obvious a button shouldn't both be primary and secondary, but there is nothing stopping from doing it either. It also provides a nice hook for JS as well.
      I only started doing this. Beofre I made this video I actually used classes instead, and there's nothing wrong with it at all! But now that I actually took the time to do it this way, I sort of like it 😂

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

    Instead of the "lobotomized owl", which is a great name btw, why not make the parent container a single column grid, and then use gap to control the vertical "rhythm" or spacing between elements? That's my preferred approach

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

      Nevermind, I commented too soon lol

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

      And still he leaves it up for the historical record. Gotta respect that.

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

    Thought it was a video about kube css framework... But no disappointed

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

    Idea for new format; 1-5 minute video highlighting why a new technology is better, & roughly how it works.
    I don't have time to watch 40+mintues on how to type in HTML & CSS anymore, even though I'd like to hangout & watch :/

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

      It’s great for those of us that want / need to see the process. Have you tried watching at 1.5 through 2.0 speed? Works really well.

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

      I'm pretty sure the RUclips algorithm punishes creators for the 1-5 minute video length. Too long to be a short, too short to pepper with ads. (I hope I'm wrong though.)
      The full walkthroughs are great, and I like Robert McGovern's suggestion to play it back faster if you don't need all the details. Still 8x (with a plugin) to get down to the 5 minute area might be too fast.

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

    Is cube css covered in one of your courses?

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

    can you make a video on tailwind css

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

    Excellent video. However, the square brackets make it more difficult to read for me.

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

    FWIW, IMO if an image doesn't add sufficient info to the page to require alt text, it probably should be a background image instead.

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

    i still dont understand the custom property naming convention isnt easier to just write the color name instead?

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

      do what makes sense to you.

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

    So CUBE is just Tailwind will slightly less class soup?

  • @user-ms8ei9le7x
    @user-ms8ei9le7x 2 года назад

    🎓

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

    Will You make video on atom?

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

      Atom the editor, or atomic CSS?
      I don't really know how much value there is in looking at atomic CSS, it's basically making every class done one single thing. Tailwind might be more interesting as it takes that approach but offers a bit more, but I'm not the biggest Tailwind person.

  • @jomy10-games
    @jomy10-games 2 года назад +1

    Would’ve loved to see a better introduction before jumping into the project

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

    Every so often, I'll try moving your head thinking it's Messenger

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

      😂😂

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

      lol, I just swiped at him, too

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

    Thats good, but how is this different from tailwindcss.

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

    "Hello my friend & friends!" :D

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

      You know? When KP was saying it fast up until a few videos ago I heard "Frontend Friends" but now I'm hearing "Frent. End. Frenz." I think I just read too many comments about it, and the word "front" doesn't exist in my ears anymore :)

  • @clevermissfox
    @clevermissfox 8 месяцев назад

    Never heard of CUBE…. Kevin Powell to the rescue!

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

    CSS has a very limited layout protocol. Look into flutter to see how design is done over there

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

    Was expecting a rubix cube as a project ngl

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

      Ayyyeeeee thx for your heart.
      Now imma sell it on the dark web hehe.

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

    It's a neat concept but I feel that it just pollutes the markup which is meant to define the content, not the design. You get into a project that is mature and it's littered with all these composition and utility classes and you have to change to a new UI? That's probably more nightmarish then just refactoring basic html into a new layout with css

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

    Typo in the description - "Fronend"