Giter Site home page Giter Site logo

Comments (9)

robrecord avatar robrecord commented on May 31, 2024 4

Yes, mightily confused about why my sass/scss didn't get compiled. Using node it shouldn't be hard to add a gulp/grunt task for this by default.

from patternlab-php.

heroheman avatar heroheman commented on May 31, 2024 1

For anyone else wanting a small script file for (Vanilla) SASS Watching , ive "created" a small watch script and started it with the other scripts

#!/bin/sh 
DIR="$( cd "$( dirname "$0" )" && pwd )"
sass $DIR/../source/css/style.scss:$DIR/../public/css/style.css
sass --watch $DIR/../source/css/style.scss:$DIR/../source/css/style.css

Maybe useful for someone.

from patternlab-php.

bradfrost avatar bradfrost commented on May 31, 2024

Hey @jamiebrightlemon!
The project's default CSS files can be found in source/css and that's where you should put your SCSS files. You'll see the default SCSS files in there, but please don't use them. Pattern Lab just gives you enough to get started with, but isn't a requirement.

Pattern Lab doesn't compile or watch for changes in SCSS. If you're looking to do that, I'd recommend checking out a tool like Codekit. That's what I use and it works wonderfully.

Moral of the story is that Sass is pretty cool and I enjoy using it, but it's not a requirement of Pattern Lab. Hope this clarifies things a bit.

from patternlab-php.

magique avatar magique commented on May 31, 2024

Hi @bradfrost
Thanks for your speedy response.

However I'm not looking to use Codekit use to compile the SCSS.

I usually use a config.rb file in the root of my project (and then use compass watch) - is this how you would recommend doing it also with this?

Also, why shouldn't we be using the default SCSS files?

Thanks
Jamie

from patternlab-php.

dmolsen avatar dmolsen commented on May 31, 2024

@jamiebrightlemon -

from a technical standpoint compass should work just fine.

from patternlab-php.

magique avatar magique commented on May 31, 2024

Thanks @dmolsen
I've just used a standard config.rb file to achieve this.

I'm still not sure why @bradfrost mentioned about not using the default files?

This is a great starting point for creating a live style guide that also stands as a prototype! Many thanks for all your hard work on this.

Jamie

from patternlab-php.

dmolsen avatar dmolsen commented on May 31, 2024

You're welcome :) We have some cool features in the pipeline so hopefully it only gets better.

from patternlab-php.

bradfrost avatar bradfrost commented on May 31, 2024

I'm still not sure why @bradfrost mentioned about not using the default files?

The reason why I don't recommend not using the default styles is that they're just a starting point, they aren't cross-browser tested, and I believe CSS should be authored the way that makes the most sense to the author, not because I wrote things a certain way.

I'll try to articulate this a little better in the future, but in the meantime, you're obviously free to use the style structure I set up. But just don't feel you have to do things that way.

from patternlab-php.

dmolsen avatar dmolsen commented on May 31, 2024

@heroheman -

thanks. we'll have to see if we can pull this into the docs so it gets more visibility.

from patternlab-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.