Community Documentation

Radix Subtheming Guide

Last updated January 23, 2013. Created by arshadcn on January 23, 2013.
Log in to edit this page.

The latest dev version ships with a more flexible radix_starter theme to kickstart sub theming. Here's a quick guide.

Installing Compass Radix gem

  • Install rubygems: sudo apt-get install rubygems
  • Install Compass Radix: sudo gem update; sudo gem install compass_radix

This should also install sass, compass and other dependencies.

Create a subtheme

  1. Get the latest radix version: git clone --recursive --branch 7.x-2.x http://git.drupal.org/project/radix.git
  2. Copy radix_starter and place it in your themes directory.
  3. Rename radix_starter to YOUR_THEME_NAME.
  4. Rename radix_starter.info to YOUR_THEME_NAME.info
  5. Edit YOUR_THEME_NAME.info. Add a name, description and uncomment the line hidden: true.
  6. Open a terminal and cd to your theme directory.
  7. Run the following command: compass clean && compass watch.
  8. Visit Appearance in your Drupal admin and enable your new theme.

Customization

In your theme folder, you will find a _variable.scss partial under assets/sass. This file holds all the SASS variables used in the theme. You can customize your theme colors from there.

nobody click here