Get started

SFUMATO is simply a folder containing SCSS files that you can modify for use with your own web application project.

Already familiar with using Sass or SCSS?

Download SFUMATO and add the contents of the styleguide folder to your project. Build your SCSS as you normally would before you deploy or test.

Download SFUMATO 4 from github

Then skip ahead to section 3 to learn about color, forms, grids, and more.

Haven't used Sass or SCSS before?

You're in for a treat. SCSS gives you a ton of programming power with your CSS code by adding the missing pieces, like if/then logic, variables, and more. Check out the Sass language website to learn about what it can do, and then play with the SFUMATO style guide site on a web server (local or remote).

Your HTML/CSS development workflow will be:

  1. Run the transpiler script before you start building.
    Open a command prompt ( Windows) or bash terminal ( macOS or Linux) and run the watch script. It will transpile your SCSS into real CSS as you work and save files.
  2. Write code.
    Build your HTML and SCSS markup, page scripts (like PHP or ASP.NET), etc. The SCSS files will be transpiled into CSS every time you save them.
  3. Deploy and/or test.
    Upload your files to your web server. If you also upload your SCSS files you'll get CSS inspection into your SCSS source files! They're not needed for production deployments.

Peek inside

Below is a brief tour of the SFUMATO folder structure.

/styleguide/
Usage and style guide sample website root
/styleguide/images/
Images used as samples and for framework support
/styleguide/scss/
SFUMATO and your SCSS live here
/styleguide/scss/core/
Core SFUMATO SCSS mixins and functions; do not edit
/styleguide/scss/custom/
Your SCSS partial files go here
/styleguide/scss/styles/
Browser resets and default SFUMATO styles; do not edit
/styleguide/stylesheets/
Generated CSS files are saved here
/styleguide/scss/_config-colors.scss
Edit this config file
/styleguide/scss/_config-measurements.scss
Edit this config file
/styleguide/scss/_config-media-breakpoints.scss
Edit this config file
/styleguide/scss/_config-typography.scss
Edit this config file
/styleguide/scss/_manifest.scss
Core SFUMATO manifest; do not edit
/styleguide/*.shtml
Usage and style guide pages or include files
/package.json
Node package manager configuration used to set up your machine to watch and compile SCSS
/watch-release.*
OS-specific script files to transpile, minify, and watch for changes (release mode); do not edit
/watch.*
OS-specific script files to transpile and watch for changes (dev mode); do not edit

Note: You can edit the _config-*.scss files to set various defaults, like font sizes, screen breakpoints, etc. The files are fairly well documented so it should be easy enough to follow.

3-step setup

The best way to transpile Sass/SCSS files is to use node-sass. It's a native code transpiler built for each operating system, so it's blazingly fast. If you don't already have it installed follow these instructions.

1 Install a Package Manager

Install Homebrew for macOS Homebrew is the de facto standard package manager for macOS that allows you to install all kinds of open source software from the terminal, including the Sass tool we'll be using.

Install Homebrew

Install Chocolatey for Windows Chocolatey is the de facto standard package manager for Windows that allows you to install all kinds of open source software using PowerShell, including the Sass tool we'll be using.

Install Chocolatey

2 Install the Sass Transpiler

Open terminal ( macOS) and use the following command to install Sass with Homebrew: brew install sass/sass/sass

Open PowerShell ( Windows) and use the following command to install Sass with Homebrew: choco install sass

3 Download SFUMATO

After downloading SFUMATO unzip the files wherever you'd like.

Download from github

Test build

In your command prompt or terminal, try running the development build script to transpile the SFUMATO usage and style guide. You would leave this running in the background as you work.

Windows command prompt

                                                        
                                                            cd sfumato
                                                            watch.bat
                                                        
                                                    
scrollable

Windows PowerShell

                                                        
                                                            cd sfumato
                                                            ./watch.ps1
                                                        
                                                    
scrollable

macOS

                                                        
                                                            cd sfumato
                                                            zsh watch.sh
                                                        
                                                    
scrollable

Linux

                                                        
                                                            cd sfumato
                                                            sh watch.sh
                                                        
                                                    
scrollable
Example on macOS: Your output should look similar to this, with the green text indicating a successful transpile. Every time you save a SCSS file it will output green (success) or error (debug) output.

Build for release

If you want to build for release to production, use watch-release instead of watch (e.g. watch-release.bat) in your script names. This will trigger the minification process on each build.

Host the sample site

If you want to run the sample website that comes with the project (this website), you'll need a web server that can handle *.shtml files and which supports server-side includes.

macOS and Linux

Apple macOS and many distros of Linux come with the Apache web server pre-installed. If you're feeling adventurous, you can configure it to host the sample site. There are many good instructionals on the web to help you.

You can also install a third party app like MAMP PRO which provides turnkey website hosting on your Mac. Just be sure to enable server-side includes.

Windows

Windows Pro comes with Internet Information Server (IIS) pre-installed. Follow the instructions on Microsoft's site, then set up a site, set the default document to index.shtml and point the site at the SFUMATO project folder. You can also install a third party app, like MAMP PRO which provide turnkey website hosting on your Windows PC.