2013-10-09 12:30:53 +02:00
|
|
|
---
|
2015-04-02 01:51:37 +02:00
|
|
|
title: Install Sass
|
2013-10-09 12:30:53 +02:00
|
|
|
---
|
2013-05-19 22:22:05 +02:00
|
|
|
|
2015-04-02 01:51:37 +02:00
|
|
|
%h2 There are a couple of ways to start using Sass:
|
2013-10-12 20:25:16 +02:00
|
|
|
%ol.list-columns
|
2013-10-12 17:57:34 +02:00
|
|
|
%li.gui-application
|
2013-10-12 23:39:55 +02:00
|
|
|
%h3 Applications
|
2015-01-07 05:39:20 +01:00
|
|
|
%p= image_tag "illustrations/mouse.svg", class: "header-image", height: "160", alt: "Mouse"
|
2013-10-12 23:39:55 +02:00
|
|
|
%p
|
2013-12-20 00:56:55 +01:00
|
|
|
There are a good many applications that will get you up and running
|
2015-04-02 01:51:37 +02:00
|
|
|
with Sass in a few minutes for Mac, Windows, and Linux. You can download
|
2013-10-12 23:39:55 +02:00
|
|
|
most of the applications for free but a few of them are paid apps
|
|
|
|
<small>(and totally worth it)</small>.
|
2013-10-09 12:30:53 +02:00
|
|
|
|
2013-10-12 23:39:55 +02:00
|
|
|
%ul.list-feature
|
2013-10-11 22:06:20 +02:00
|
|
|
%li
|
2013-10-12 17:57:34 +02:00
|
|
|
= link_to "CodeKit", "http://incident57.com/codekit/"
|
2013-10-15 15:18:56 +02:00
|
|
|
%span.info (Paid)
|
2013-10-12 17:57:34 +02:00
|
|
|
%span.mac-icon
|
|
|
|
%li
|
2017-02-16 01:23:44 +01:00
|
|
|
= link_to "Compass.app", "http://compass.kkbox.com/"
|
2013-10-15 15:18:56 +02:00
|
|
|
%span.info (Paid, Open Source)
|
2013-10-12 17:57:34 +02:00
|
|
|
%span.mac-icon
|
|
|
|
%span.windows-icon
|
|
|
|
%span.linux-icon
|
2015-08-07 13:51:21 +02:00
|
|
|
%li
|
|
|
|
= link_to "Ghostlab", "http://www.vanamco.com/ghostlab/"
|
|
|
|
%span.info (Paid)
|
|
|
|
%span.mac-icon
|
|
|
|
%span.windows-icon
|
2013-10-14 13:58:09 +02:00
|
|
|
%li
|
|
|
|
= link_to "Hammer", "http://hammerformac.com/"
|
2013-10-15 15:18:56 +02:00
|
|
|
%span.info (Paid)
|
2013-10-14 13:58:09 +02:00
|
|
|
%span.mac-icon
|
2013-10-12 17:57:34 +02:00
|
|
|
%li
|
|
|
|
= link_to "Koala", "http://koala-app.com/"
|
2013-10-15 15:18:56 +02:00
|
|
|
%span.info (Open Source)
|
2013-10-12 17:57:34 +02:00
|
|
|
%span.mac-icon
|
|
|
|
%span.windows-icon
|
|
|
|
%span.linux-icon
|
2013-10-11 22:06:20 +02:00
|
|
|
%li
|
2013-10-12 17:57:34 +02:00
|
|
|
= link_to "LiveReload", "http://livereload.com/"
|
2013-10-15 15:18:56 +02:00
|
|
|
%span.info (Paid, Open Source)
|
2013-10-12 17:57:34 +02:00
|
|
|
%span.mac-icon
|
|
|
|
%span.windows-icon
|
2013-10-11 22:06:20 +02:00
|
|
|
%li
|
2014-11-04 14:00:20 +01:00
|
|
|
= link_to "Prepros", "https://prepros.io/"
|
|
|
|
%span.info (Paid)
|
2013-10-12 17:57:34 +02:00
|
|
|
%span.mac-icon
|
|
|
|
%span.windows-icon
|
2014-11-04 14:00:20 +01:00
|
|
|
%span.linux-icon
|
2013-10-11 22:06:20 +02:00
|
|
|
%li
|
2016-09-07 00:14:40 +02:00
|
|
|
= link_to "Scout-App", "http://scout-app.io/"
|
|
|
|
%span.info (Free, Open Source)
|
2013-10-12 17:57:34 +02:00
|
|
|
%span.windows-icon
|
2016-09-07 00:14:40 +02:00
|
|
|
%span.linux-icon
|
|
|
|
%span.mac-icon
|
2013-10-09 12:30:53 +02:00
|
|
|
|
2013-10-12 17:57:34 +02:00
|
|
|
%li.command-line-unix
|
2013-10-12 23:39:55 +02:00
|
|
|
%h3 Command Line
|
2015-01-07 05:39:20 +01:00
|
|
|
%p= image_tag "illustrations/keyboard.svg", class: "header-image", height: "160", alt: "Keyboard"
|
2013-10-12 23:39:55 +02:00
|
|
|
%dl#install-ruby-linux
|
|
|
|
%dt Linux
|
|
|
|
%dd
|
|
|
|
If you're using a distribution of Linux, you'll need to install Ruby
|
2016-09-17 12:11:34 +02:00
|
|
|
first. You can install Ruby through the apt package manager, rbenv, or
|
2018-01-04 00:38:10 +01:00
|
|
|
rvm. You will also need the build-essential package, available
|
|
|
|
through a package manager as well.
|
2014-12-04 20:00:17 +01:00
|
|
|
%pre
|
|
|
|
:preserve
|
2016-06-26 14:51:57 +02:00
|
|
|
sudo gem install sass --no-user-install
|
2013-05-19 22:22:05 +02:00
|
|
|
|
2013-10-12 23:39:55 +02:00
|
|
|
%dl#install-ruby-windows
|
|
|
|
%dt Windows
|
|
|
|
%dd
|
2015-04-02 01:51:37 +02:00
|
|
|
Before you start using Sass you will need to install Ruby. The fastest
|
2013-10-12 23:39:55 +02:00
|
|
|
way to get Ruby on your Windows computer is to use
|
2014-10-05 20:40:59 +02:00
|
|
|
<a href="http://rubyinstaller.org">Ruby Installer</a>. It's a
|
2013-10-12 23:39:55 +02:00
|
|
|
single-click installer that will get everything set up for you super
|
|
|
|
fast.
|
2013-10-09 12:30:53 +02:00
|
|
|
|
2013-10-12 23:39:55 +02:00
|
|
|
%dd
|
2013-10-16 14:10:57 +02:00
|
|
|
The installer will also install a Ruby command line
|
2014-07-31 07:26:38 +02:00
|
|
|
powershell application that will let you use the Ruby libraries.
|
2013-05-19 22:22:05 +02:00
|
|
|
|
2013-10-12 23:39:55 +02:00
|
|
|
%dl#install-ruby-mac
|
|
|
|
%dt Mac
|
|
|
|
%dd
|
2015-04-02 01:51:37 +02:00
|
|
|
If you prefer the command line over an application then getting Sass
|
|
|
|
set up is a fairly quick process. Sass has a Ruby dependency but if
|
2013-10-12 23:39:55 +02:00
|
|
|
you're using a Mac, congratulations, Ruby comes pre-installed.
|
2013-05-19 22:22:05 +02:00
|
|
|
|
2013-10-16 14:10:57 +02:00
|
|
|
%dl
|
2015-04-02 01:51:37 +02:00
|
|
|
%dt Install Sass
|
2013-10-12 23:39:55 +02:00
|
|
|
%dd
|
|
|
|
%p
|
2015-04-02 01:51:37 +02:00
|
|
|
Here's the quickest way we've found to start using Sass by using
|
2013-10-12 23:39:55 +02:00
|
|
|
the command line:
|
2013-10-11 22:17:32 +02:00
|
|
|
|
2013-10-12 23:39:55 +02:00
|
|
|
%ol
|
|
|
|
%li
|
|
|
|
%p
|
2014-02-18 15:18:25 +01:00
|
|
|
<strong>Open your Terminal or Command Prompt.</strong> On the
|
2013-10-12 23:39:55 +02:00
|
|
|
Mac the Terminal.app comes installed by default. It's located
|
2014-02-18 15:18:25 +01:00
|
|
|
in your "Utilities" folder. On Windows, run `cmd`.
|
2013-10-11 22:17:32 +02:00
|
|
|
|
2013-10-12 23:39:55 +02:00
|
|
|
%li
|
|
|
|
%p
|
2015-04-02 01:51:37 +02:00
|
|
|
<strong>Install Sass.</strong> Ruby uses Gems to manage its
|
|
|
|
various packages of code like Sass. In your open terminal
|
2013-10-12 23:39:55 +02:00
|
|
|
window type:
|
|
|
|
%pre
|
|
|
|
:preserve
|
|
|
|
gem install sass
|
|
|
|
%p
|
2015-04-02 01:51:37 +02:00
|
|
|
This will install Sass and any dependencies for you. It's pretty
|
2016-09-17 12:11:34 +02:00
|
|
|
magical. If you get an error message then it's likely you will
|
|
|
|
need to use the <code>sudo</code> command to install the Sass
|
|
|
|
gem. It would look like:
|
2013-10-16 14:10:57 +02:00
|
|
|
%pre
|
|
|
|
:preserve
|
|
|
|
sudo gem install sass
|
2013-10-12 23:39:55 +02:00
|
|
|
|
|
|
|
%li
|
|
|
|
%p
|
2015-04-02 01:51:37 +02:00
|
|
|
<strong>Double-check.</strong> You should now have Sass
|
2013-10-12 23:39:55 +02:00
|
|
|
installed, but it never hurts to double-check. In your
|
|
|
|
terminal application you can type:
|
|
|
|
%pre
|
|
|
|
:preserve
|
|
|
|
sass -v
|
2013-10-13 01:32:01 +02:00
|
|
|
- if data.respond_to?(:version)
|
2017-07-14 01:23:02 +02:00
|
|
|
%p It should return <code>Sass #{data.version.number}</code>.
|
|
|
|
Congratulations! You've successfully installed Sass.
|
2013-10-13 01:32:01 +02:00
|
|
|
- else
|
2016-09-17 12:11:34 +02:00
|
|
|
%p It should return <code>Sass ???</code>. Congratulations!
|
|
|
|
You've successfully installed Sass.
|
2013-10-12 23:39:55 +02:00
|
|
|
|
|
|
|
%li
|
|
|
|
%p
|
2015-04-02 01:51:37 +02:00
|
|
|
<strong>Go and play.</strong> If you're brand new to Sass
|
2013-10-12 23:39:55 +02:00
|
|
|
we've set up some resources to help you learn pretty darn
|
|
|
|
quick.
|
2013-10-11 22:17:32 +02:00
|
|
|
|
2015-04-02 01:51:37 +02:00
|
|
|
%p= link_to "Learn More About Sass", "/guide", :class => "button primary"
|