Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: gevv on February 27, 2021, 12:48:18 PM

Title: Theme color options for members (SMF 2.1 default theme)
Post by: gevv on February 27, 2021, 12:48:18 PM
Hello,

Styles taken from Curve2 Color Changer  (https://custom.simplemachines.org/mods/index.php?mod=4231)  + smf 2.1 dark mode style.
Style 1: Default
Style 2: Dark
Style 3: Dark blue
Style 4: Light red
Style 5: Light orange


index.template.php find
global $settings, $txt;
add after

    $settings['theme_variants'] = array('style1', 'style2', 'style3', 'style4', 'style5');
upload all styles to Themes/ default/ css folder    upload  menudark.svg   to Themes/ default/ images / icons  folder
Title: Re: Theme color options for members (SMF 2.1 default theme)
Post by: gevv on February 23, 2022, 12:10:08 PM
Hi,

Curve2 Color Changer  (https://custom.simplemachines.org/mods/index.php?mod=4231) css and dark mode css files updated

a more descriptive code to choose;

$settings['theme_variants'] = array('index', 'flat', 'brownish', 'redihs', 'darkblue', 'dark');
Title: Re: Theme color options for members (SMF 2.1 default theme)
Post by: thomasc1989 on February 24, 2022, 07:10:25 PM
Nice! thanks for the update!  :D