sass-site/source/install.html.haml

137 lines
4.8 KiB
Plaintext
Raw Normal View History

2013-10-09 12:30:53 +02:00
---
title: Install Sass
2013-10-09 12:30:53 +02:00
layout: layout_1_column
---
2013-10-11 22:06:20 +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
2013-10-16 09:11:01 +02:00
%p= image_tag "illustrations/mouse.png", class: "header-image", height: "160"
2013-10-12 23:39:55 +02:00
%p
There are a good many applications that will get you up and running
2013-10-12 23:39:55 +02:00
with Sass in a few minutes for Mac, Windows, and Linux. You can download
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/"
%span.info (Paid)
2013-10-12 17:57:34 +02:00
%span.mac-icon
%li
= link_to "Compass.app", "http://compass.handlino.com/"
%span.info (Paid, Open Source)
2013-10-12 17:57:34 +02:00
%span.mac-icon
%span.windows-icon
%span.linux-icon
%li
= link_to "Hammer", "http://hammerformac.com/"
%span.info (Paid)
%span.mac-icon
2013-10-12 17:57:34 +02:00
%li
= link_to "Koala", "http://koala-app.com/"
%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/"
%span.info (Paid, Open Source)
2013-10-12 17:57:34 +02:00
%span.mac-icon
%span.windows-icon
%li
= link_to "Mixture", "http://mixture.io/"
%span.info (Paid)
%span.mac-icon
%span.windows-icon
2013-10-11 22:06:20 +02:00
%li
2013-10-12 17:57:34 +02:00
= link_to "Prepros", "http://alphapixels.com/prepros/"
%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
2013-10-12 17:57:34 +02:00
= link_to "Scout", "http://mhs.github.io/scout-app/"
%span.info (Open Source)
2013-10-12 17:57:34 +02:00
%span.mac-icon
%span.windows-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
2013-10-16 09:11:01 +02:00
%p= image_tag "illustrations/keyboard.png", class: "header-image", height: "160"
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
first. You can install Ruby through the apt package manager, rbenv, or rvm.
2013-10-12 23:39:55 +02:00
%dl#install-ruby-windows
%dt Windows
%dd
Before you start using Sass you will need to install Ruby. The fastest
way to get Ruby on your Windows computer is to use
<a href="http://www.rubyinstaller.org">Ruby Installer</a>. It's a
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
The installer will also install a Ruby command line
powershell application that will let you use the Ruby libraries.
2013-10-12 23:39:55 +02:00
%dl#install-ruby-mac
%dt Mac
%dd
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
you're using a Mac, congratulations, Ruby comes pre-installed.
%dl
%dt Install Sass
2013-10-12 23:39:55 +02:00
%dd
%p
Here's the quickest way we've found to start using Sass by using
the command line:
2013-10-12 23:39:55 +02:00
%ol
%li
%p
<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
in your "Utilities" folder. On Windows, run `cmd`.
2013-10-12 23:39:55 +02:00
%li
%p
2013-10-14 01:57:42 +02:00
<strong>Install Sass.</strong> Ruby uses Gems to manage its
2013-10-12 23:39:55 +02:00
various packages of code like Sass. In your open terminal
window type:
%pre
:preserve
gem install sass
%p
This will install Sass and any dependencies for you. It's pretty
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:
%pre
:preserve
sudo gem install sass
2013-10-12 23:39:55 +02:00
%li
%p
<strong>Double-check.</strong> You should now have Sass
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)
%p It should return <code>Sass #{data.version.number} (#{data.version.name})</code>. Congratulations! You've successfully installed Sass.
- else
%p It should return <code>Sass ???</code>. Congratulations! You've successfully installed Sass.
2013-10-12 23:39:55 +02:00
%li
%p
<strong>Go and play.</strong> If you're brand new to Sass
we've set up some resources to help you learn pretty darn
quick.
%p= link_to "Learn More About Sass", "/guide", :class => "button primary"