How to use SCSS with Shopify Themekit (2021)

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

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

  • @liubomyr-peteliuk
    @liubomyr-peteliuk 3 года назад +6

    I think you are an underrated Shopify Development youtuber.

  • @MichaelThomasDev
    @MichaelThomasDev 3 года назад +4

    Yeeees he’s back!!! Good to see you mate.

  • @gabeadams2926
    @gabeadams2926 3 года назад +1

    Nice of you to come back with another great video!

  • @Incomestreamsurfers
    @Incomestreamsurfers 3 года назад

    Lmao dude I've been trying to work out how to sort my scss theme file out all day, then I find out I don't even need to use it anymore... Thanks for finally saving me

  • @Boytok2012
    @Boytok2012 3 года назад

    I'm new to Shopify Development, and this has been VERY HELPFUL! Thanks for this! Keep it up!

  • @christinalozova
    @christinalozova 3 года назад +1

    Why does the video have about 1000 views and so few likes? injustice! the video is cool and informative, thanks !!!!

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

    Great video as always Chris! I was hoping to hear there was a workaround for preserving Liquid variables in the Gulp task but doesn't seem to be the case.
    Appreciate you walking through this setup and was looking at implementing local development with Gulp or some other bundler like Webpack, but Gulp seems to be pretty simple/ideal for the Shopify dev flow.

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

    that's so helpful . would you please tell how to use custom javascript file in theme kit and update it on shopify? thanks

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

      'Themekit watch' watches for any file change within the theme so all you would have to do is put the JS file into your assets folder and include the script tag in your theme.liquid to bring it in.

  • @NicoMelian
    @NicoMelian 3 года назад

    Im learning the Shopify environment, thanks Chris!

  • @moonstone82
    @moonstone82 3 года назад

    You have saved my life with this video thank you!

  • @svip2.036
    @svip2.036 3 года назад

    Hey Chris, if you download the theme file from Shopify Admin, you can turn theme.scss.liquid to theme.scss. In fact, you will get 2 files after you download it, then you can work with gulp.

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  3 года назад

      That's another idea, yes! But essentially it's the same amount of work as if you just used the SCSS file in Shopify. One benefit is that you could use the latest version of sass as you're processing locally.

  • @davide4607
    @davide4607 3 года назад

    Great video! Thanks for it! One note on minifying, I'd probably not do that if you're building for a client, as it will make making future edits by the client more difficult.

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  3 года назад

      Possibly but remember the SCSS is not minified so as long as they have access to the SCSS files, they can turn off minification and regenerate the CSS ;)

    • @davide4607
      @davide4607 3 года назад

      @@CodewithChristheFreelancer Yes but I'm thinking of clients with minimal dev skills. A lot of people know a little CSS but most clients won't know how to compile the Sass files.

  • @caiodallessandro
    @caiodallessandro 3 года назад

    Hi Crhis coul you please help? it says Task never defined: sass when i try to run: gulp sass i was at the minute 20:45 seconds of your video when this arrow come up. thanks for your help

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  3 года назад

      Hi Caio. That error message sounds pretty descriptive. I would have to see your code to figure out what you're doing wrong.

  • @diegognoatto8706
    @diegognoatto8706 3 года назад +1

    nice video, thanks for the tips. btw: theneKit,comand('watch', {
    env: 'development'
    }) not workig here cause it says i got to add --allow-live flag and for what it seems gulp dont know how to run it if i add the flag there. any insight?

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  3 года назад +1

      Hi Diego. You must be trying to run 'theme watch' on the live theme. In order to add in the live flag, I'm pretty sure you add it to the options object. Think someone already asked about that 🤔

    • @diegognoatto8706
      @diegognoatto8706 3 года назад +1

      @@CodewithChristheFreelancer sorry i didnt read the below comments before ask, i bumped my head few times but got it to work, thanks

    • @amazonreviews2524
      @amazonreviews2524 3 года назад

      Here is the modified code to allow deploying to a live site:
      const gulp = require('gulp');
      const themeKit = require('@shopify/themekit');
      const sass = require('gulp-sass');
      gulp.task('sass', function() {
      return gulp.src('styles/custom-styles.scss')
      .pipe(sass())
      .pipe(gulp.dest('assets'));
      });
      gulp.task('watch', function() {
      gulp.watch('styles/**/*.scss', gulp.series('sass'));

      themeKit.command('watch', {
      allowLive: true,
      env: 'development'
      });
      });

    • @diegognoatto8706
      @diegognoatto8706 3 года назад +1

      Thanks a lot ☺️ I'm new to shopify and grunt, very helpful,

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

      @@CodewithChristheFreelancer Good day! What's flag name in order to allow --allow-live flag. in docs, its say Not applicable. Searched everywhere. Couldn't find anything

  • @trixievillarica644
    @trixievillarica644 3 года назад

    Great video! So helpful, thank you!!!

  • @karishmamohun2473
    @karishmamohun2473 3 года назад

    Amazing content ! thanks for creating these videos❤

  • @Krishana99
    @Krishana99 3 года назад

    Hi Chris, followed all steps , it is still not converting in gulp scss.liquid file into css.liquid file ? Can you provide some support.

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  3 года назад +1

      As I mention towards the end of the video, you can only do SCSS to CSS. It won't parse Liquid code for you as that is always done on the server side.

  • @beckysolomon8281
    @beckysolomon8281 3 года назад

    Hi Chris, is there anything to do differently since you aired this video, now that Shopify recommends using Shopify CLI instead of Themekit?

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  3 года назад +1

      Hey Becky. It's on my to-do list to do a Shopify CLI of this video. You can of course continue to use Themekit in the I talk about in the video. I've just applied a very similar concept to a CLI project in my own workflow.

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

    What do you use for the API password now? It seems they have changed that part of it, I added the site API token but then when running theme download i get an error?

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

      How have they changed it? Honestly I haven't used Themekit much at all since Shopify CLI for themes came out.

  • @danyaalhallak4992
    @danyaalhallak4992 3 года назад

    Thank you so much !

  • @999NRG
    @999NRG 3 года назад

    hello sir i any tips for new developers on how to get first clients?

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  3 года назад

      Hi Nisarg. Check out my video entitled 'How to become a Shopify Theme Developer'

    • @999NRG
      @999NRG 3 года назад

      @@CodewithChristheFreelancer thanks

  • @markryandelarmente8349
    @markryandelarmente8349 3 года назад

    Thanks man 🙏

  • @biggieg3881
    @biggieg3881 11 месяцев назад

    Do you still recommend SCSS/Sass with Shopify theme development in 2024? Or does it affect performance in a bad way?

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

      How would it affect performance in a bad way?

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

      @@CodewithChristheFreelancer mate, I don't know lol. I'm a complete beginner who's literally asking you 'cause you run a channel on Shopify development and you seem to be more knowledgeable on it.

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

      @@biggieg3881 Sure but your question had to come from somewhere right? What gave you the idea that it might affect performance in a bad way?
      To cut straight to answer: the answer is definitely no if you compile the SCSS locally but I'm curious to understand your thought pattern here.

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

      ​@@CodewithChristheFreelancer The assumption came from the understanding that libraries and using JavaScript affects performance. Gulp, based on what you presented is a library, and it affects performance. And then you install numerous packages for SCSS (which is a ton of file size). Just wanted to err on the side of caution so I figured I'd ask.

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

      Yeah so if the process is run on build then I can't see how it would affect performance as the Shopify site itself is not processing your SCSS.

  • @yudeval1647
    @yudeval1647 3 года назад

    Amazing!)

  • @svip2.036
    @svip2.036 3 года назад

    Hi Chris! It's been a long time! But, why this? Why not talk more staffs about Shopify API? Waiting for your next course!

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  3 года назад

      This video was inspired by Shopify's recent decision to deprecate SASS from themes. This is important, especially for my newer students who realise that there is now a css file in their theme instead of an scss file.

    • @CodewithChristheFreelancer
      @CodewithChristheFreelancer  3 года назад +1

      New class will be out by April 21st!

    • @svip2.036
      @svip2.036 3 года назад

      @@CodewithChristheFreelancer Perfect! I will definitely be there! What's it about?

  • @ShapeLuxury
    @ShapeLuxury 3 года назад

    Hello sir,
    What is your Shopify theme customising charge ? Can you send email of charge details ??

  • @chelinemagsano6185
    @chelinemagsano6185 3 года назад

    The title is SCCS?