Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
It would be really nice if this theme is integrated with color module where you can change the color of header strip and other elements.
Comments
Comment #1
frankbaele CreditAttribution: frankbaele commentedI personally think this is not a good solution because the color module is not a good solution
Comment #2
frankbaele CreditAttribution: frankbaele commentedwhat works well is the sweaver module, what i prefer far more then any other client color picking solution
http://drupal.org/project/sweaver/
Comment #3
valor CreditAttribution: valor commentedYes I agree with you.
Comment #4
frankbaele CreditAttribution: frankbaele commentedComment #5
andregriffin CreditAttribution: andregriffin commentedComment #6
vlooivlerke CreditAttribution: vlooivlerke commentedHi, I am opening this issue again. When you state "colour module is not a good solution" what do you mean?
In my use case I use domain access with domain theme module. If you have a theme with colour module enabled you can give each domain its own theme colour as the variables is stored per domain. This is an easy way to give each domain its own colour pallet.
Or will the colour module affect the performance of bootstrap. Then it is not a good solution.
How about using these sites for example, a site like http://www.lavishbootstrap.com will let you create a custom css from an image (color scheme)
or paintstrap is even better, as it uses kuler: http://paintstrap.com
Or would the only solution be to have 100's of subthemes to choose from in a domain access setup?
Comment #7
andregriffin CreditAttribution: andregriffin commentedIt would likely be best to use a subtheme with your color variation for each domain. Either using a the third-party bootstrap building site, or just changing the LESS variables and recompiling the stylesheets.
Comment #8
vlooivlerke CreditAttribution: vlooivlerke commentedOk thanks. I noticed that the colour module will not be able to change the LESS values. So I think we can clearly state that the colour module is no solution for bootstrap.
Comment #9
iaminawe CreditAttribution: iaminawe commentedThis video shows how to use the less module as a bridge to allow this if its what you need to do
https://www.youtube.com/watch?v=r8vVfmQLmAA
I found this theme has a simple implementation with the color module not using less
https://drupal.org/project/bootstrap-business
Comment #10
markhalliwellYes, I personally know Kyle and saw his presentation on this very topic at our last http://www.meetup.com/North-Texas-Drupal/. It should be interesting to see how we can actually integrate this directly into the base-theme. I'll ping him this thread so he can get involved with this discussion.
Comment #11
kyletaylored CreditAttribution: kyletaylored commentedTotally, I'd be happy to help and see if we can. It might be more suitable for Bootstrap UX, but either way I think we can get something started.
Comment #12
iaminawe CreditAttribution: iaminawe commentedAlso cross linking with this relevant feature request in bootstrap_ux - https://www.drupal.org/node/2129353
I have been attempting to do this in a sub theme and have made some progress following along with the code in Kyles video but have found a few errors I am still trying to work through
Notice: Undefined index: palette in color_scheme_form_validate() (line 351 of ***/modules/color/color.module).
Warning: Invalid argument supplied for foreach() in color_scheme_form_validate() (line 351 of ***/modules/color/color.module).
Notice: Undefined index: palette in color_scheme_form_submit() (line 372 of ***/modules/color/color.module).
Warning: implode(): Invalid arguments passed in color_scheme_form_submit() (line 413 of ***/modules/color/color.module).
Warning: Invalid argument supplied for foreach() in _color_rewrite_stylesheet() (line 500 of ***/modules/color/color.module).
Notice: Undefined index: text in _color_rewrite_stylesheet() (line 527 of ***/modules/color/color.module).
Notice: Undefined index: link in _color_rewrite_stylesheet() (line 527 of ***/modules/color/color.module).
Notice: Undefined index: link in _color_rewrite_stylesheet() (line 527 of ***/modules/color/color.module).
Notice: Undefined index: link in _color_rewrite_stylesheet() (line 527 of ***/modules/color/color.module).
Notice: Undefined index: base in _color_rewrite_stylesheet() (line 527 of ***/modules/color/color.module).
Notice: Undefined index: link in _color_rewrite_stylesheet() (line 527 of ***/modules/color/color.module).
Comment #13
iaminawe CreditAttribution: iaminawe commentedI was able to resolve those issues by making sure I had a a base, text and link variable set for each color palette - all works nicely now.
@kyletaylored - how were you able to view the changed stylesheet without emptying the less cache? When I make the change in settings, there is no current visible change until after I empty the less cache and only then do I see that my updates have worked. I have enabled developer mode in the less module settings which I thought was supposed to rebuild from the less file on each page load.
Thanks for the awesome video series by the way - very helpful stuff.
Comment #14
kyletaylored CreditAttribution: kyletaylored commentedYep, you definitely want to make sure you at least have the variables defined or it'll throw those errors, which is why I stick with the brand_primary, brand_secondary, etc and then use those to color links, body text, backgrounds, etc.
In the color.inc, I just call less_flush_caches() to make sure the cache gets rebuilt upon saving.
Comment #15
iaminawe CreditAttribution: iaminawe commentedThank you Kyle - that totally does the trick. Much appreciated - its working perfectly.
Comment #16
markhalliwellComment #17
kyletaylored CreditAttribution: kyletaylored at LevelTen Interactive commentedThis was a video I recently made highlighting some integrations I did using LESS and a couple other modules.
Automated Themes using Color Palettes in Drupal
FWIW, i don't think this is something that should be built in, but more or less documented on how to do in a subtheme. With LESS 7.x-4.x, it's much easier to do by dropping variables into an .info file.
Comment #18
markhalliwellHeh, thanks for the shout out.
I'm still kind of optimistic that we can, one day, support this out of the box. Color/LESS can be quite confusing for most and anything we can do to "officially" support it would nice. That's why I'm postponing this for now. Definitely not an active "feature".
Comment #19
Kristina Katalinic CreditAttribution: Kristina Katalinic as a volunteer and at Webmar commented@kyletaylored that is some really awesome work there. Can you point to the code repository for enterprise bootstrap theme from your video in #17? Thanks
Comment #20
markhalliwellChanging to proper branch version for #2554199: Bootstrap 4.
Comment #21
markhalliwellI don't think this is going to happen. Re-open if, and only if, there's real progress to be made (aka patch).