It's not possible to conditionally import a file. I'd say the way to do this
is to have one Sass file for each color theme that defines whatever color
variables you need, then imports "_base.sass" or whatever which supplies the
rest of the styles.

On Thu, Dec 23, 2010 at 3:02 AM, rosstimson <rosstim...@googlemail.com>wrote:

> Hi
>
> I was wondering if the following is possible with SASS.  I currently
> have many colour themes as CSS which have a lot of duplication across
> them, it is mainly just the colours that are changing.  I would like
> to have one main SASS stylesheet which has all the base/common styles
> and assigns variables instead of colours, I could then import a colour
> theme partial which sets the colours for these variables.
>
> How could I tell SASS (pass as an option) which colour theme partial
> to import into the main stylesheet before compiling to CSS?  Is this
> possible or am I taking entirely the wrong approach?
>
> Thanks,
> Ross
>
> --
> You received this message because you are subscribed to the Google Groups
> "Haml" group.
> To post to this group, send email to h...@googlegroups.com.
> To unsubscribe from this group, send email to
> haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to h...@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to