Theme components
A Tiki theme can be made of several components. as there is at least a CSS style sheet, as well as background images, fonts and, in the future, icons, and possibly one or more theme-specific Smarty templates although having customized templates is not encouraged due to potential compatibility problems.
As Tiki contains a full set of default templates, the minimum requirement to create a custom theme is a custom CSS stylesheet.
Themes are stored in the directory "themes," which is a subdirectory of the Tiki root installation directory.
Every theme has its own directory that contains the components of the theme. The name of the theme's directory is the same as the name of the theme.
The following is an example of the directory structure:
- themes
- mytheme
- css
- mytheme.css
- The CSS file must be named the same as the theme's directory, eg: "mytheme.css" - Tiki names the theme from the specific theme-containing folder.
- The mytheme.css is usually compiled from the SCSS files which are in the SCSS directory.
- custom.css
- The custom.css file contents override and complete mytheme.css. This is the place for hand-made CSS changes.
- mytheme.css
- fonts
- This is the place to store fonts to be used by the theme in cases when web fonts aren't used.
- icons
- This is the place for a specific icon font set to be used by the theme.
- images
- This is the place to store theme-related images for backgrounds and other purposes.
- js
- custom.js
- The custom.js file is the place for hand-made Javascript changes (without surrounding your code with
- custom.js
- css
- mytheme