ElkArte Community

Project Support => Support => Topic started by: Auctor Lucan on April 18, 2017, 06:17:04 am

Title: Changing colours in the font colour palette
Post by: Auctor Lucan on April 18, 2017, 06:17:04 am
As the subject says, can someone point me in the right way in the files to change the colours? Some of them doesn't work well with my theme. :)

Best,

Auctor Lucan
Title: Re: Changing colours in the font colour palette
Post by: badmonkey on April 18, 2017, 07:04:02 am
You can create a file called custom.css in the appropriate corresponding theme css folder.  Any rules in that file will override the main css rules.  You can use this technique to tweak one rule, or all.  Lots of flexibility.   8)
Title: Re: Changing colours in the font colour palette
Post by: Spuds on April 18, 2017, 08:52:04 am
If you are referring to the font color pallet that is available in the editor then you will have to edit the GenericControls.template.php (if the custom theme does not have that file, simply copy the one from the default theme to the custom theme)

In that file you will find
Code: [Select]
					colors: "black,red,yellow,pink,green,orange,purple,blue,beige,brown,teal,navy,maroon,limegreen,white",

Change those to what you want, you can also use hex color codes ie #cccccc in place of the standard html color names.
Title: Re: Changing colours in the font colour palette
Post by: Auctor Lucan on April 18, 2017, 09:20:27 am
Awesome, thanks!