Comments (9)
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.
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.
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.
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.
@jamiebrightlemon -
from a technical standpoint compass should work just fine.
from patternlab-php.
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.
You're welcome :) We have some cool features in the pipeline so hopefully it only gets better.
from patternlab-php.
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.
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)
- Gruntfile Configuration - Needs Updated? HOT 1
- Documentation for Upgrading from 1 -> 2 HOT 1
- Adding tabs to the UI (a la plugin-node-tab) HOT 2
- "The partial could not be found" when using styleModifier HOT 1
- PatternStates not working as expected HOT 5
- Best Practice - Laravel HOT 5
- Possible to add a space in a custom Pattern State name? HOT 1
- Using pattern-specific data when using 'View All'
- Documentation request: Viewing Patterns (connection refused error when viewing on other computers on the same network) HOT 1
- Serving patternlab doesn't seem to work correctly from a gulp shell task
- Adding multiple classes via styleModifier not working HOT 1
- Class '\PatternLab\TwigNamespaces\PatternLabListener' not found HOT 1
- Add favicon and touch icons to Pattern Lab?
- Is there a convention to integrating Vue components into Patternlab?
- Patterlab-php with Mustache starter-kit not Installing correctly
- Patternlab php not working with PHP 8.0 HOT 3
- Pulse rates
- Pattern Fluctuation
- Patternlab and PHP 8.1? HOT 1
- pattern-lab/core and its doctrine/collections dependency is not compatible with PHP 8.1 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from patternlab-php.