Transcript
Page 1: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

11

Page 2: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

2

Documentation

2

Page 3: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

3

Documentation Theme

3

Page 4: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

4

Before

4

Page 5: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

5

After

5

Page 6: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

Let’s get started

6

You can do it too!

6

Page 7: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

Jens Schumacher

Product Manager – Atlassian

How to build a Confluence ThemeConfluence Themes 101

77

Page 8: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

Building Blocks• Module Types• Colour Schemes• Style Sheets• Layouts

88

Page 9: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

Colour Schemes• The simplest way to match the look and feel

of your Corporate Identity

• Headings• Text• Links• Header• Menu Items• etc.

99

Page 10: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

10

<theme key="mytheme"> <colour-scheme key="earth-colours"/></theme>

<colour-scheme key="earth-colours" name="Brown and Red Earth Colours"> <colour key="property.style.topbarcolour" value="#000"/> <colour key="property.style.linkcolour"value="#999999"/></colour-scheme>

Colour Scheme Module

10

Page 11: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

11

<theme key="mytheme"> <colour-scheme key="earth-colours"/></theme>

<colour-scheme key="earth-colours" name="Brown and Red Earth Colours"> <colour key="property.style.topbarcolour" value="#000"/> <colour key="property.style.linkcolour"value="#999999"/></colour-scheme>

Colour Scheme Module

11

Page 12: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

Example

1212

Page 13: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

Style Sheets• Web standard• Used to style web pages• Separation of document content

and presentation

1313

Page 14: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

14

<theme key="mytheme"><resource type="download" name="my-theme.css" location="styles/my-theme.css"/>

</theme>

Style Sheet – Resource Module

14

Page 15: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

15

<theme key="mytheme"><resource type="download" name="my-theme.css" location="styles/theme.css"/>

</theme>

Style Sheet – Resource Module

15

Page 16: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

Example

1616

Page 17: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

Layouts• Powerful• New elements • Version specific

1717

Page 18: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

Layout Types

context

main

• Global• Space• Page• Blog• Mail

1818

Page 19: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

19

main

context

Layout Types

19

Page 20: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

20

<layout key="main" name="Main Decorator"overrides="/decorators/main.vmd"><resource type="velocity" name="decorator"location="simpletheme/main.vmd" />

</layout>

Layout Module

20

Page 21: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

21

<layout key="main" name="Main Decorator" overrides="/decorators/main.vmd"><resource type="velocity" name="decorator"location="simpletheme/main.vmd" />

</layout>

Layout Module

21

Page 22: Confluence Theming 101: How to Build a Theme - Atlassian Summit 2010 - Lightning Talks

22

Glo

bal N

avig

atio

n

Example

22