Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Subtheme Colors

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1784 Views
  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Subtheme Colors Link to this post

    Hey Richard, And Welcome

    Glad you like SS so far!. If you want to make a different color scheme you cant make a 'Subtheme' as such - they are designed for modules. But you could copy/paste the /themes/blackcandy folder to /themes/orangecandy or something . And then you would just need to change the site theme from blackcandy to orangecandy by opening the /mysite/_config.php file and editing the SSViewer::set_theme('orangecandy').

    Once you have edited that your site will be using your own 'theme' so you can go ahead and tweak all the images, css etc under the /themes/orangecandy folder.

    You can see some nice BC tweaks in the Site Showcase - this one was done by a GHOP Student and changed to a greeny teal - http://ghop-seanc.willr.co.nz/

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Subtheme Colors Link to this post

    Themes designers Im guessing! The lazy bunch... . Has SS really got no liquid themes? well theres a job for someone. For alternative color schemes I think you can just make another theme for now and submit it as a separate theme as thats how it will have to be run and the theme uploader would need to be tweaked to support multithemes etc.

    Or unless you provide several colors inside a theme. Have something like html id="BlueTheme" and have support in your css to dynamically change the colors based on the ID on html

    #Header { normal }
    #BlueTheme { blue header!}
    #RedTheme { red header!}
    etc etc

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: Subtheme Colors Link to this post

    Drupal's Default theme 'Garland' does this (http://drupal.org/node/91964). It would be a good starting point for any hard core theme designer. It actually has a color picker to change core elements to any color on the websafe palette. I always run into sites using this theme, always in different shades.


    However, I think such a theme would require a coder too. Drupal has a configuration system in the admin for any theme, so something like this would have to be integrated into the CMS for it to be truly usable for everyone. To my knowledge, only Garland has this level of configuration. All other Drupal themes are static, with customisation working the same way Will describes.


    How would we go porting the theme license-wise? I think Wordpress has already ported Garland some time ago. Both are GPL.

  • Wojtek
    Avatar
    Community Member
    149 Posts

    Re: Subtheme Colors Link to this post

    Porting Garland wouldn't be a wise choice IMO. The guys from wordpress were strongly criticised about it and Drupal was extremely unhappy to see their own theme ported to wp.

    I would rather advise to develop a similiar theme ourselves (^.^)

  • Wojtek
    Avatar
    Community Member
    149 Posts

    Re: Subtheme Colors Link to this post

    Hmm... am I missing something? Creating some stuff like this requires specifying a few page types, it's not about the theme?!

    1784 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.