Closed (fixed)
Project:
radix
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2013 at 19:09 UTC
Updated:
7 Sep 2013 at 14:00 UTC
Jump to comment: Most recent
The latest dev version ships with a more flexible radix_starter theme to kickstart sub theming. Here's a quick guide.
sudo apt-get install rubygemssudo gem update; sudo gem install sasssudo gem install compasssudo gem install compass_twitter_bootstrapgit clone --recursive --branch 7.x-2.x http://git.drupal.org/project/radix.gitcompass clean && compass watch.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.
Comments
Comment #1
chriz001 commentedThis all looks really good. I have a few questions for you.
in _raxix.scss there a re a bunch of import statements like this
@import "../../../radix/assets/sass/page";
This assumes radix is sitting next to my theme, right? what if i have a multisite setup and i want to put radix inside the sites/all/themes folder and then a sub theme for a particular domain? i guess this wont work in that case. Not without reconfiguring those paths anyway (i think)
Also i noticed the radix-style.css in the base theme is 718kb, that seems pretty big, is that right?
Thanks and nice work on this!
Comment #2
shadcn commentedYes. We've considered this situation and working on a solution for this. ^^
Comment #3
shadcn commentedSee http://drupal.org/node/1896382 for more info on this.
Comment #4
shadcn commentedClosing this issue. Theming guide moved to http://drupal.org/node/1896382.
Comment #5
rerooting commentedThe only problem with this approach is that the radix-styles are still included, though the radix scss is pulled into the subtheme styles. Thus the radix-style.css file needs to be excluded in order to prevent the duplication!
Comment #6
shadcn commented@rerooting, see the theming guide here: http://drupal.org/node/1896382 using a compass extension for radix.
Comment #7
rerooting commented@chris001 Yes, radix-style is that big! It includes all of the bootstrap css and more. You can remove unused bootstrap partials by removing them from the includes in the base theme, at least for now.
There are a few other tactics for keeping the size of the stylesheet low:
"line_comments: false" in config.rb < will turn off your auto-generated comments
compass compile -e production --force < will also remove the comments and some other helpful default settings.
Comment #8
Kristina Katalinic commentedHi I am new to Radix but I am loving it!! Especially compatibility with bootswatch :)
Speaking of Bootswatch themes I tried building a subtheme based on Bootswatch Slate theme today and came across an issue
Most of the styles get applied when I copy/paste stuff from slate _variables.scss file however I noticed that some styles are also imported from _bootswatch.scss file and it is those styles that are not updated. Am I missing something here?
Appreciate any help :)
Comment #9
shadcn commented@Kristina, see http://drupal.org/patch/apply.
Comment #10
Kristina Katalinic commented@arshadcn I am sorry but I am having trouble understanding how patch apply will help me get bootswatch specific styles applied to my subtheme from _bootswatch.scss and after looking at http://drupal.org/patch/apply I couldn't find any clarification.
Is there a Compass Bootswatch plugin perhaps that I need to install in order for _bootswatch.scss styles to be applied? If yes than perhaps that step should also be included in Installing Compass instructions above.
Sorry for being a bother but I am new to radix, compass and SASS so please help.
Also if I can make a suggestion for Documentation for Radix. Perhaps there should be a page that explains how to work with Bootswatch themes because I see bootswatch themes compatibility as one huge advantage for Radix.
Thank You
Comment #10.0
Kristina Katalinic commentedFixed typo
Comment #11
henrikakselsen commentedAgree with #10, some quickstart info for bootswatch would help adoption.
Comment #12
Kristina Katalinic commentedI've since started using CodeKit and makes working with LESS and SASS a walk in the park.
Unfortunately its available for Mac only so I guess Windows users will have to look up for a similar app
Nonetheless, Bootswatch quickstart info would help adoption as #11 already said
Comment #13
pmackay commentedI am also interested in some additional info on how to integrate different Bootswatch themes into a Radix subtheme.
Comment #14
shadcn commentedThanks for the report.
I've created an issue here #2082723: Make Bootswatch integration easier.
Lots of work going on right now to make this easier. I'll post updates there.
Thanks.
Comment #15
shadcn commentedOk. Radix + Bootswatch is easier and super simple now. See the guide here https://drupal.org/node/2083993.
Comment #15.0
shadcn commented'uncomment' should be 'comment out'
Comment #16
trungonly commentedIf you failed to install compass:
Failed to build gem native extension...Try install ruby dev package first then install compass again:
apt-get install ruby-dev