CSS Files

Last modified by Ecaterina Moraru (Valica) on 2017/09/06

This page helps you understand the different css files used in XWiki, their purpose and content. XWiki skins use several css files to separe the different components of the skin: basic elements, layout, colors, etc. Check this page to learn about the XWiki layout.

Core files


This is the top level style file. It's purpose is to include all the other files. It shouldn't have any other css in there. It looks like this:

@import "classes.css";
@import "colorsblack.css";
@import "elements.css";
@import "presentation.css";
@import "screenlayout.css";


This stylesheet is intended to provide general design rules regarding the html elements. For example, default font size and family for headings, underline for links, etc. You can get a blank version of this stylesheet at this address. It should not provide color properties. It looks like this:

body {
 margin: 0;
 padding: 0em;
 font-size: 90.01%;
 line-height: 1.25em;
 background: white;
 color: black;
 font-family: "Arial", "Lucida", "Trebuchet MS", "Luxi Sans", "Helvetica", sans-serif;
h1 {
 font-size: 1.5em;
 line-height: 1.33em;
 margin: 0.89em 0;
ul {
 margin: 1em 0;
 padding: 0 0 0 2.5em;


Like elements.css, but formats elements having a similar semantic meaning (after all, a class should have a semantic name, and not a random id). As examples: .underline, .hidden, .sep, wikicreatelink, or .heading-1-1. This should only contain general classes (for specific elements see presentation.css). It looks like this:

.xwikisep, .xwikisep2 {
  display: none;
.clear, .clearfloats {
 clear: both;
.none, .hidden {
 display: none;


The place where the general layout of the interface is specified. This file should contain rules regarding position, dimension and display mode for the major elements of the interface (header, side panels, menu, footer...).

 width: 100%;
 padding: 0;
 margin: 0 ;  
 min-width: 760px;
.minwidth, .minwidthb, .minwidthc{
 width: 720px;
 height: 0px;
 width: 438px;


Refinement of screenlayout.css. This is where borders, margins, paddings are set, font styling for objects not in elements.css or classes.css, along with some specific elements of the layout which are not affecting the general layout (where is the profile picture displayed, how is the comment author displayed, etc.).

.main-content {
 margin: 0.5em;


This is the place where the skin gets painted. Without this file, the skin should be black and white only (except the blue links). Font color, background, border color.

.heading-1, .heading-1-1, .heading-1-1-1, .heading-1-1-1-1 {
 color: #369;
 border-bottom-color: #DDD;
 background-color: #EEE;

Special purpose files


A few rules to format how the profile rss is displayed.


Stylesheet to format the different microformats-enabled pages (user profile, blog, calendar...).


Formatting for the Chart Wizard.


Formatting the Table Datasource Wizard (part of Chart Wizard).


Formatting for the @media print.

Deprecated (soon to be removed)


It was supposed to format wiki generated syntax, like .wikilink and .heading-1-1.


It was one of the few files holding css (stage 1).


Some old hacks to make the default skin work in IE too.


Variants of the 'default' skin, with green, pink and yellow colors.


Used for some tests.

Possibly usable files

if somebody makes the skin wizard


A dynamic version of screenlayout.css using properties defined in a skin object. Should be parsed by velocity.


Same, but for colors.

Created by Ecaterina Moraru (Valica) on 2017/09/06

Get Connected