Get your stylesheets more organized with Sass partials

Поділитися
Вставка
  • Опубліковано 25 сер 2024

КОМЕНТАРІ • 112

  • @AbhinavKulshreshtha
    @AbhinavKulshreshtha 3 роки тому +14

    I never liked 7+1 approach because I always have hard time classifying between pages, pages, layout. I usually have a variable folder, utility folder, components ( like buttons, ) and main.scss .
    I learned sass with you years ago, I can't wait to re-learn it again with you. Waiting for your new course on sass.

  • @tasmto
    @tasmto 3 роки тому +3

    THANK YOU SO MUCH! I've been 'lowkey' using something similar for years now thinking I was soooo original... But just having someone else to model the way I've been doing it to helps a TON! Thank you.

  • @ayushdedhia25
    @ayushdedhia25 3 роки тому +4

    Thanks Kevin 🙏 this is gonna make life easier to work with sass from now 👍❤️

  • @burmesepotato447
    @burmesepotato447 3 роки тому +6

    Wow! This is amazing! Could you please make a short vid on that colors.scss structure?

  • @zachjensz
    @zachjensz 3 роки тому +1

    Awesome! Can't wait for the Sass course

  • @motomadman573
    @motomadman573 3 роки тому +2

    Yesterday, I was doing my ICT work for making a website. I was stuck on the design and so instinctively, after looking on w3 schools, which I would DEFINATLEY recommend, I went to UA-cam. Now I look back wondering why I haven't found this channel earlier! Thanks for the help and I'm sure to stick around

  • @deepak8586
    @deepak8586 3 роки тому +1

    Sass is great thanks to partials!! and one great thing is we can make a sass variables and include them where ever we want!!

  • @GavHTFC
    @GavHTFC 3 роки тому +17

    Never mind the SASS, where do I get that shirt 😂

  • @brianmoeller3539
    @brianmoeller3539 2 роки тому

    Ok. I know the video will be amazing (like always), but I paused at 0:06 to mention that the shirt is pure FACT! Love it!

  • @luiscolome75
    @luiscolome75 3 роки тому +2

    Really nice file organazation with SASS. I made a fork of a proyect for my WP Genesis Starter Theme, so I started working with the file organized the way they were. Maybe I will do some changes. For sure, I will start using @use and @forward. Thanks again for your amazing content!!

  • @abenjamin13
    @abenjamin13 2 роки тому

    Kevin. First Thank you very much. I appreciate the video and the organization. I'm on a huge WordPress + SASS project, this is extremely helpful. :)

  • @sanjibchanda21
    @sanjibchanda21 3 роки тому +1

    Thank you sir, love from India(WB)

  • @robertkaminski1781
    @robertkaminski1781 3 роки тому

    Thanks this day i have on plan reorganize styles on my project to make bundles mode reusable and i wake up take my phon and like always if i see short tips movie from you i don't postpone watching it. Thanks now I have good starting point for read more about others style file organization methodology

  • @Sellwawy
    @Sellwawy 2 роки тому

    Thanks a lot Kevin for sharing awesome details

  • @creativereasons7588
    @creativereasons7588 3 роки тому

    This is just the best timing, thank you so much

  • @meerinoh
    @meerinoh 3 роки тому

    Just what I needed. Thanks a lot!

  • @haythamkenway1561
    @haythamkenway1561 3 роки тому +2

    Awesome work Kevin, if you make video about learning sass. that will be more awesome

    • @KevinPowell
      @KevinPowell  3 роки тому +1

      I have some stuff in the works!

  • @dapolcio3405
    @dapolcio3405 11 місяців тому

    I would be very grateful if you made video about sass's good practices - i.e how to nest, when to nest, how deep to nest and other things. I've been looking everywhere for that information but and have found nothing yet

  • @JaredNichols909
    @JaredNichols909 3 роки тому

    Excellent suggestions. Thanks for sharing

  • @MrBlaq
    @MrBlaq 3 роки тому

    Good vid. I use the Inverted Triangle to organize my partials.

  • @CharlesSmall
    @CharlesSmall Рік тому

    This is cool Kevin.

  • @sebabatso
    @sebabatso 3 роки тому

    Much appreciated Sir!

  • @zerosandones7547
    @zerosandones7547 2 роки тому

    THANK YOU! 🤩

  • @kdfksfkldsklfkldsff
    @kdfksfkldsklfkldsff 3 роки тому

    Thanks alot kevin

  • @kunalmathur4890
    @kunalmathur4890 3 роки тому

    This is awesome 👍

  • @svoloSlovakia
    @svoloSlovakia 3 роки тому +4

    Hi, I want to ask, what is that feature that is shown at 4:04 where you have the ".h2 with --flow-space: 1.5; font-size: --fs-700". This notation "--xy--z" is usually used with the CSS variables but I don't see any var() used and also I didn't find any hint googling sass feature. Thnks

  • @thibaultboutaud5216
    @thibaultboutaud5216 2 роки тому

    Thanks you

  • @orbigokenneth
    @orbigokenneth 3 роки тому

    Thanks Kevin. :)

  • @DoctorSclero
    @DoctorSclero 3 роки тому +5

    @Kevin Powell When you have multiple pages, do you link the entire CSS with the classes of the other pages too or do you split the CSS files to have a dedicated CSS for each page? Thank you in advance, and sorry for my English, I'm not so good 😀

    • @phamthang6558
      @phamthang6558 2 роки тому

      @Doctor Sclero Have you got your answer yet? I have the same question with you...

  • @GiancarloCarccamo
    @GiancarloCarccamo 2 роки тому

    great video

  • @balajiravi9259
    @balajiravi9259 3 роки тому

    Please more sass vids 🙏🙏🙏👍👍❤️

  • @cuftamaster
    @cuftamaster 11 місяців тому

    good stuff :D

  • @kiranfrancis7397
    @kiranfrancis7397 3 роки тому

    Thanks

  • @it_is_ni
    @it_is_ni 3 роки тому

    You still need to decide (and remember) where you put stuff right?
    What do you think of that in relation to functional/utility-based CSS like Tailwind/Tachyon where you have to make a lot less of those decisions?
    You probably still need to organize the utility classes that you add yourself, but those are going to be quite straightforward I'd say.
    So maybe another question is: do you think this workflow/work organization style is more suited to code bases that are not as component-focused?
    Thanks for the great content btw, your deep knowledge shines through 👍

  • @radob3710
    @radob3710 3 роки тому

    Great video, i would like to ask you when you release video about the color maps ? Thank you

  • @mohammadnoushadsiddiqui4786
    @mohammadnoushadsiddiqui4786 3 роки тому

    I learned every thing from u

  • @daniellindegren1182
    @daniellindegren1182 3 роки тому

    Great video, as always. Stay away from `@use ... as *`, as that's normally bad practice in any language. This requires new devs reading the code to hunt down where your imports are coming from, as opposed to importing them explicitly.

  • @ChristopherPhillipsDev
    @ChristopherPhillipsDev 2 роки тому

    Could REALLY use a nice tutorial about how you do this for a multiple page website. For example, if you share a common nav and footer element. Do you create the css styling for each twice? One for the home page and one for another and link each page to the specific css output?

  • @jitendrakr
    @jitendrakr 3 роки тому +2

    How do you use @use in VSCode with Live Sass extension? It doesn't compile for me and I tried another extension with dart sass but that one as well throws error saying undeclared variable. I had to go back to @import and use live sass.

    • @KevinPowell
      @KevinPowell  3 роки тому +2

      You can't with that extension, it's based on the old version of Sass and hasn't been updated in a few years. I've heard there is a new extension out there that can do it, but i haven't tried it.

    • @jitendrakr
      @jitendrakr 3 роки тому

      @@KevinPowell Thank you for your reply. Following one of your videos, I have now started using parcel-bundler with sass CLI. It works like a charm.

  • @axMf3qTI
    @axMf3qTI 3 роки тому +1

    What are the elements called that are shown on every on every page like footer and header? So everything on a page that doesn't change get injected when visiting a new page on a site?

    • @KevinPowell
      @KevinPowell  3 роки тому +1

      I'll often put things like the nav and footer under components, though you could make a case for putting them under layout if you'd prefer :)

  • @KleckaGandalf
    @KleckaGandalf 3 роки тому +2

    Wicked shirt

  • @kiranjoshi893
    @kiranjoshi893 7 місяців тому

    hey,
    The problem is @use keyword refers whole CSS file but I want to import only variable which we are using in specific file, Is it possible ?
    To speed up the application need this approach. any idea?

  • @GioFar
    @GioFar 5 місяців тому

    Thanks for the video, I started using the mothod but since I did, I can't get my font-face to work anymore, my structure is basically the same as yours, did you do anything special? I assume your font-face is inside the base/_font-face.scss

  • @atosupriyanto6990
    @atosupriyanto6990 2 роки тому

    Can you show how you apply bem methodology to to this 7-1 structures??

  • @jsart_pl
    @jsart_pl 2 роки тому

    Any clue why it won't display my images/svgs from assets folder?
    My files structure goes like this:
    node_modules/
    public/
    css/
    index.html
    src/
    assets/
    sass/
    index.html

    In index.html file I'm trying to import image using:
    and it doesn't appear. I get an error in console: "localhost:3000/src/assets/logo.svg 404 (Not Found)". Seems like path to file is incorrect but I can't figure out why. Possibly there is other way for accessing images I guess..
    Thanks for any hints!

  • @w3bman
    @w3bman 2 роки тому

    question:
    how to have separate sass files for every device size. i tried it didn't work

  • @md.rakibhasan4053
    @md.rakibhasan4053 Рік тому

    could you please give us the access or tell us where we can find the project you have shown in the video for understanding the the organizing scss use

  • @Sebastian-zs8cp
    @Sebastian-zs8cp 6 місяців тому

    Is the order important in the listing in all _index.scss and style.scss?

  • @rpardoz
    @rpardoz 2 роки тому

    how does 7-1 handle multiple pages with different css each?

  • @tattarrrrattat
    @tattarrrrattat 3 роки тому

    Cheers Kevin. When's your Sass course opening again?

    • @KevinPowell
      @KevinPowell  3 роки тому

      Fingers crossed for the end of April.

    • @tattarrrrattat
      @tattarrrrattat 3 роки тому

      @@KevinPowell Great. I had actually been learning the 7 - 1 pattern yesterday too!

  • @newnam
    @newnam 3 роки тому

    Thanks Kevin. I see you using a lot of custom variables (i.e.; --font-weight: 500; in your button class at 1:58)... what's the difference between that and declaring $font-weight as 500, and just referencing $font-weight?

  • @HeitorYT
    @HeitorYT Рік тому

    How would i do that with normal css? Does @import impact in my site performance?

  • @LeventeMalnasi
    @LeventeMalnasi 3 роки тому

    Nice shirt :) Love it :))

  • @hossain2010
    @hossain2010 2 роки тому

    Thnx for ur video, I found that u have used "rem" and "em" units, but can u plz explain when and why did u choose one over the other? (BTW I do know the difference).

  • @philidornews4055
    @philidornews4055 3 роки тому

    I'm curious: Where would you put general styles of html elements like p { margin-bottom 1rem } ? They clearly are neither typography nor layout and it doesn't really feel right to me to treat them as components either.. Use the base directory and create another file?

  • @philidornews4055
    @philidornews4055 3 роки тому

    By the way: Are you a musician? Or why does it say "minor third" and "augmented fourth" in your _type.scss?

  • @jimhalpert9803
    @jimhalpert9803 3 роки тому

    That shirt is very SASSY

  • @davidho3173
    @davidho3173 3 роки тому

    your @use and @forward video definitely helped! thanks.
    I have a quick question. I noticed that your nest html elements as seen on 1:11. I do this also. However, I recently saw MDN website suggest that it is better to give it a class name instead. I was wondering what was your hot take on that? Its in their article about Semantics under "Semantics in CSS"

    • @davidho3173
      @davidho3173 3 роки тому

      @@GabrielSoldani tru. thanks :)

  • @LalindaDias
    @LalindaDias 3 роки тому

    When we use the 7-1 pattern as suggested in the SASS official guide, we are loading all the styles in the initial bundle which is downloaded by browsers. Since we do not need every style to render initial pages, does anyone know a proper way to structure our scss files so that we can only render what the page wants?

  • @walnutsandbeastiality866
    @walnutsandbeastiality866 3 роки тому

    I'd love to learn web development, but I have no idea where to start: Is there a good starter book that you guys can recommend?
    Thanks!

  • @GR_BackingTracks
    @GR_BackingTracks Рік тому

    Anything about skeleton?

  • @chrisprenn
    @chrisprenn 3 роки тому

    Hi Kevin, what about BEM here?

    • @KevinPowell
      @KevinPowell  3 роки тому +1

      You can still use BEM with Sass. I talk a bit about it with nesting in an upcoming video :)

    • @chrisprenn
      @chrisprenn 3 роки тому

      @@KevinPowell Thanks for your reply! I am currently using bem with sass but i don't like bem. Can't see the point and want to remove it from my current project to get back to simpler/shorter classnames....

  • @abhim6380
    @abhim6380 3 роки тому

    I don't understand. Why can't I find your sass course that you mentioned in your other video. Why can't I just buy your course. It seems like I should wait a certain time or something. What is happening

  • @whatthefunction9140
    @whatthefunction9140 2 роки тому

    Does this work with tailwind?

  • @tyrantx3
    @tyrantx3 3 роки тому

    Great Video. Do you have this on git?

  • @mrastrogastro
    @mrastrogastro 3 роки тому

    My question is do we still need sass beside styled-components or this is just another approach to the same thing? I found sass very useful in a big projects (big corporation projects) but in my small websites maybe I don't need anything but CSS. What do you think?

    • @KevinPowell
      @KevinPowell  3 роки тому

      It depends on the project for sure, but I find it useful having Sass. There are a few mixins that I use in every project that I love too much, plus a few other things that I do to generate utility classes and a few other things.

  • @vivienhounsounou1867
    @vivienhounsounou1867 3 роки тому

    Can't join the discord group, says 'unable to accept invite'
    How do I setup sass on vscode. Everything I have been reading says different things so I have some doubt. How did you setup yours?

  • @venil82
    @venil82 3 роки тому

    Thank you! Can you please explain why every file starts with an underscore, eg "_something.scss", is this a common convention?

  • @animefanboy842
    @animefanboy842 3 роки тому

    need js tips also

  • @IbrahimElmourchidi
    @IbrahimElmourchidi 3 роки тому

    Hello sir , can you please recommend some books about front-end and UI/UX dev.

  • @clickryan
    @clickryan 3 роки тому

    sass deprecated?

  • @Yolo_Swagins
    @Yolo_Swagins 2 роки тому

    Well im glad you wont ever see the .less in company i joined as a, learn all while employed junior :D

  • @ariell121
    @ariell121 2 роки тому

    Todo dia um 7 a 1 diferente

  • @itzikca
    @itzikca 3 роки тому

    Do you have something about exporting to pdf? We have created a platform to create A4 forms and export to pdf always has small css bugs i have to fix because it doesn’t look the same as in chrome/FF, if you can make a video to give some pointers about things to take care when exporting to pdf it would be nice.

    • @KevinPowell
      @KevinPowell  3 роки тому

      It's not something I have *any* experience with... strange that chrome and FF would have differences though. Are you using print stylesheets to go to PDF, or is there another method?

    • @itzikca
      @itzikca 3 роки тому

      @@KevinPowell we use puppeteer to render the page and export it to pdf, but we have @print media query to make adjustments for the headless browser.

  • @talhaibnemahmud
    @talhaibnemahmud 3 роки тому

    I was wandering what those .njk files are

    • @KevinPowell
      @KevinPowell  3 роки тому +1

      Ah, those are nunjucks files, which are a templating language that gets turned into HTML :).
      I'll be looking at that type of thing in the not too distant future as well :D

    • @talhaibnemahmud
      @talhaibnemahmud 3 роки тому

      @@KevinPowell Eagerly waiting ❤️

  • @pexeixv
    @pexeixv 3 роки тому

    Can someone explain to me the humour that's on Kevin's shirt?

    • @castlemoyle
      @castlemoyle 3 роки тому

      API is coding (Application Programming Interface). IPA is beer drinking. (IPA is a style of beer). A great play on words (or initials).

    • @pexeixv
      @pexeixv 3 роки тому

      @@castlemoyle Okay thanks. Got it now. I thought IPA would be coding related. 😬

  • @federicoraulmaciasaparicio1339
    @federicoraulmaciasaparicio1339 3 роки тому

    But you can use @import with css, can't you??

    • @KevinPowell
      @KevinPowell  3 роки тому

      @import with CSS is very different. CSS files are render blocking, and even if it's all being imported into one file, each one is loaded one after the next, instead of as one big file. Basically the browser starts loading your CSS file, then finds an import, so it stops, loads and parses that file, then keeps on going. It can have a pretty big impact on performance.

    • @federicoraulmaciasaparicio1339
      @federicoraulmaciasaparicio1339 3 роки тому

      @@KevinPowell I didn't know that. Thanks a lot.

  • @YunisRajab
    @YunisRajab 3 роки тому +1

    Ever since I picked up Sass and the 7-1 pattern, regular CSS just feels old and stupid. It's like how Tesla's make other cars feel dumb

  • @ilyesbrh7667
    @ilyesbrh7667 3 роки тому

    twitch link plz ?

    • @KevinPowell
      @KevinPowell  3 роки тому

      I need to add it to my descriptions! twitch.tv/kevinpowellcss

  • @zappellin2398
    @zappellin2398 3 роки тому

    My organization is way simpler, one big ol' file

  • @momakplayz7985
    @momakplayz7985 3 роки тому +1

    hey kevin, please make more cources for free on your website and you can put ads to make money and it will benefit us learners and you :)

    • @KevinPowell
      @KevinPowell  3 роки тому +1

      Ads don't pay very much :( - Just look at YT, even with the views I get, it's not close to a salary. Static ads on websites tend to pay much less from those that I've talked to. It also depends on where we live in the world of course, but cost of living in Canada isn't the cheapest, at least where I am :\
      I will keep up with the free content here, and I have plans for another free course down the road, but I'll also be making paid ones as well.

  • @outpost31737
    @outpost31737 Рік тому

    This doesn't explain how to import them in to your projects.

  • @dadaabiola2474
    @dadaabiola2474 3 роки тому +3

    Mr. Kevin please quickly edit your Title from "*Get You " to "*Get Your"

  • @somnvm37
    @somnvm37 3 роки тому

    Butt moment

  • @Sebastian-zs8cp
    @Sebastian-zs8cp 2 роки тому

    hi, what mean mixins.scss ?