Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Colour Schemes and custom themes

Glenn Garraway September 3, 2013

Hi everyone.

I'm trying to upgrade one of our custom themes for Confluence 5.2 and I'm having trouble with the colour scheme. The Atlassian documentation only lists the colour keys up to Confluence 3.0, and it seems they have changed since then. Can someone please provide the latest list of these keys?

Here's what I had for Confluence 3.5...

<colour-scheme key="defaultscheme" name="External Colour Scheme" class="com.atlassian.confluence.themes.BaseColourScheme">

<colour key="property.style.topbarcolour" value="#a01202"/>

<colour key="property.style.navbgcolour" value="#b32a31"/>

<colour key="property.style.navtextcolour" value="#ffffff"/>

<colour key="property.style.breadcrumbstextcolour" value="#ffffff"/>

<colour key="property.style.spacenamecolour" value="#a01202"/>

<colour key="property.style.headingtextcolour" value="#a01202"/>

<colour key="property.style.linkcolour" value="#a01202"/>

<colour key="property.style.bordercolour" value="#b32a31"/>

<colour key="property.style.navselectedbgcolour" value="#a01202"/>

<colour key="property.style.navselectedtextcolour" value="#ffffff"/>

<colour key="property.style.topbarmenuselectedbgcolour" value="#a01202"/>

<colour key="property.style.topbarmenuitemtextcolour" value="#a01202"/>

<colour key="property.style.menuselectedbgcolour" value="#b32a31"/>

<colour key="property.style.menuitemtextcolour" value="#a01202"/>

<colour key="property.style.menuitemselectedbgcolour" value="#b32a31"/>

<colour key="property.style.menuitemselectedtextcolour" value="#ffffff"/>

</colour-scheme>

Thanks in advance.

- Glenn

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 3, 2013

check this document for theme development

https://developer.atlassian.com/display/CONFDEV/Writing+a+Confluence+Theme

sample code you can get here

https://bitbucket.org/atlassian_tutorial/confluence-themes/src/ff33fbf7e742/src/main/resources/atlassian-plugin.xml

check this document by changing extenstion to pdf(i renames to txt because it is not allowed to upload here)

(CP-HowtosetyourThemeColorScheme-040913-0058-2.txt)

Glenn Garraway September 3, 2013

Thanks for the quick reply, but both those links are missing a few keys. Confluence 5.2 list 19 configurable items in it's colour scheme (as defined in both the global and space colour schemes) as follows...

Top Bar

Top Bar Text

Header Button Background

Header Button Text

Top Bar Menu Selected Background

Top Bar Menu Selected Text

Top Bar Menu Item Text

Menu Item Selected Background

Menu Item Selected Text

Page Menu Selected Background

Page Menu Item Text

Heading Text

Space Name Text

Links

Borders and Dividers

Tab Navigation Background

Tab Navigation Text

Tab Navigation Background Highlight

Tab Navigation Text Highlight

The equivalent atlassian-plugin.xml colour keys must be listed somewhere.

Glenn Garraway September 4, 2013

Actually, you're spot on. That last link above lists the correct keys for Confluence 5, and matches the list of colours in the Confluence global colour scheme and the Confluence API for the ColourScheme interface perfectly.

Thank you.

TAGS
AUG Leaders

Atlassian Community Events