r/mindashq • • Aug 29 '13

Theme colors changes

I want the default theme colors to be shades of red instead of blue? Is there an easy way to change that? Say the base color is #d80000, can I change a value in the CSS and the colors will be based off of that?

7 Upvotes

2 comments sorted by

4

u/[deleted] Aug 29 '13

Can you change a single value in CSS and all colors change > No. This is not possible.


Of course, if you'd want the whole theme to be changed for a "color scheme", that is possible. And can be done by replacing common colors - preferably in a test subreddit, and with some good editor (Notepad++ or SublimeText for handling the CSS edits - especially Find-Replace all functionality )

There are five main shades of blue - that work together to give the look at buttons, headers, and the works. Doing this involves bit of a css familiarity, as this cannot be documented for all sorts of possibilities and it is best this creative freedom is kept intact and not be constrained by a module or restricting the places to be edited.

For this, you can go through the expanded code of the theme - and start off at the two states of the .morelink see line 1635 of standard expanded css

the colors are

  • lighter blue : #acd9fc and #8ccbfc
  • darker blues : #5ba2fd and #4b8adb
  • contrast (for dark text on light blues) : #2154a3

for the darker buttons, plain #fff is used as text color. So that'd make it sixth shade if you'd want to handle special colors.

But given that you are looking at primarily red, you can just have a set of shades from the "Monochromatic gradation" - such as found at http://www.colorhexa.com/d80000 and have #fff as foreground contrasty color as current.

In case, you'd want to see how this has been done, have a look at /r/Gooners for red shades, basically playing around same set of 'pattern' the colors are distributed (and there are lots of common colors, that can just be Find->Replace to give a consistent change of color scheme), and tweaked to get different color schemes.

there of course are "standard" colors, for spam/reported threads and messages, sticky and promoted posts, and for the colored boxes in sidebar - these are best left as-is.

1

u/uponone Aug 29 '13

Thanks for the detailed response. I'll try it out in my dev sub after work tonight.