The AI Themes
Colour themes form a fundamental part of both the AI and the Alternative Website. Both sites use the same theme files and alternative themes can be generated easily.
Unlike previous themes supplied with the AI, both alternative systems use a primary theme that defines the bulk of the styles and then secondary themes to alter default colours. The primary theme is always loaded while the secondary theme is only loaded if you change from the default colours. This makes the secondary theme files smaller and ore easily understood and edited.
The Secondary Themes
These supply the alternative colours and should form the framework if you decide to create your own theme.
@charset "utf-8"; /*. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Theme: grey (#00332C) v3.0 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * For: ai? websites * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Author: DNC THomas * Last edit: 29/11/2024 * **** DO NOT EDIT THIS THEME **** * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ /* Theme colour variables */ :root { --baseR: 25; --baseG: 25; --baseB:25; --color1: #191919; --color2: #333333; --color3: #4c4c4c; --color4: #666666; --color5: #7f7f7f; --color6: #999999; --color7: #b2b2b2; --color8: #cccccc; --color9: #e5e5e5; --modal: rgba(var(--baseR), var(--baseG), var(--baseB), 0.3); --gradient-down: linear-gradient( var(--color7), var(--color6)); --gradient-up: linear-gradient( var(--color6), var(--color7)); --gradient-left: linear-gradient( to right, var(--color7), var(--color6)); --gradient-right: linear-gradient( to left, var(--color7), var(--color6)); --gradientBar: linear-gradient(var(--color5) 0%, transparent 20%, transparent 80%, var(--color5) 100%); --shadow: 0 0.15em 0.3em -0.1em var(--color1); --shadows: 0 0.1em 0.3em 0 rgba(var(--baseR),var(--baseG),var(--baseB),0.3),0 0.1em 0.7em 0 rgba(var(--baseR),var(--baseG),var(--baseB),0.4); } /* Theme colour combinations (Foreground / Background) */ /* They are provided in secondary themes to adjust contrast for mid-range colours */ .ax-theme4 {color: var(--color9); background-color: var(--color4);} .ax-theme5 {color: var(--color1); background: var(--color5);} .ax-theme6 {color: var(--color1); background-color: var(--color6);} /* Theme colour combinations for HOVER effects (Foreground / Background) */ .ax-theme4-hvr:hover {color: var(--color9); background-color: var(--color4);} .ax-theme5-hvr:hover {color: var(--color1); background-color: var(--color5);} .ax-theme6-hvr:hover {color: var(--color1); background-color: var(--color6);}
Colour Variables
At the top of each theme stylesheet are the colour variables used throughout the theme. These define the colours for all classes used throughout the site. For light themes the colours get progressively lighter, i.e.,
var(--color1)
is the darkest variation and
var(--color9)
is the lightest. For dark themes, I simply reverse the order.
The first three variables, are the component colours1) of the base colour.
All Themes include the sub-sections for Foreground/Background and their respective hover variations. This is to ensure that the mid-range colour combinations have sufficient contrast. If you are using a theme that does not have sufficient contrast then these are the classes the change.
