Skip to content

Instantly share code, notes, and snippets.

@edds
Created October 8, 2013 07:42
Show Gist options
  • Save edds/6881064 to your computer and use it in GitHub Desktop.
Save edds/6881064 to your computer and use it in GitHub Desktop.
Test the creation of buttons using the govuk_frontend_toolkit.
#!/bin/bash
# Make folder for our test and cd into it
mkdir toolkit_test
cd toolkit_test
# Clone down a new copy of the toolkit
git clone https://github.com/alphagov/govuk_frontend_toolkit.git
# Make sub folder for the test so the toolkit isn't in a child folder
mkdir myproj
cd myproj
# Create a very simple Sass file
cat > base.scss << EOF
@import "design-patterns/buttons";
@import "colours";
.button {
@include button;
}
EOF
# Set the Sass load path to include the toolkit and compile our Sass file
sass --load-path ../govuk_frontend_toolkit/stylesheets base.scss base.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment