The AI2 Themes are slightly different to the Default Website themes but they should be compatible. This is not the case vica-versa; you cannot use Default Website themes with the AI.
Although included in the Themes folder, there is a theme - purple & dark_purple included in the release files. This would need to be manually included in the ai-settings.js file if you want to view and/or use it.
The purple theme can be viewed below:
It's quite easy to create your own theme simply by copying any of the themes in the theme folder and renaming it.
You then need to set the variables in th e:root section as described below. To use your theme, you will need to copy its name into the js/ai-settings.js file in the appropriate section. You should remember that it should be all lower case and not have it .js extension.
Below is a description and explanation of the various sections.
These are the foundation for all themes. The first three variables: –baseR, –baseG and b–baseB define the red, green and blue component of the theme colour.
The following 9 variables: –color1 to –color9 define a range of colours from dark to light based on the theme colour. I obtain these from https://icolorpalette.com/ but any site that provides colour ranges based on a single colour can be used. Dark Themes
The next three variables; –modal, –shadow1 and –shadow2 define the background used while displaying the almanac popup; and the two shadows available. You should see that these variabls are all based on variables described above. This ensures that they maintain the theme colours. If you understand how to generate shadows then feel free to edit them. Note
Finally, there are four variables that define the gradients that again use existing variables. Again feel free to adjust these if you want.
The three classes included are all in the mid-range of the theme. This is to enable changes to be made to the foreground colours as the background gets lighter. Some backgrounds need the darkest colour for text, while others need the lightest. Including these in the theme makes sure that sufficient contrast is maintained.
The same issues arise with gradients as they all use mid-range colours. Even if you don't change the gradients themselves, you may need to use the lightest or darkest avaialable theme colour to ensure sufficient contrast for text on a hovered gradient.
If you do modify the gradients themselves, it is almost certain that you will need to adjust this colour. (You may even need to add colours for no hover.) Note