text: let theme = localStorage.getItem('theme');
  if (theme == '' || theme == null) {
  	theme = 'light';
  }
  
  $('body').addClass('theme-' + theme);
  
  /*
  ==================================================================
  DOCUMENT ON READY
  ==================================================================
  */
  
  $(document).ready(function () {});
  
  /*
  ==================================================================
  FUNCTIONS
  ==================================================================
  */
  
  // CHANGING THEME COLOR
  function changeTheme(themeName) {
  	// Remove any class .theme- of body
  	$('body').removeClass(function (index, className) {
  		return (className.match(/(^|\s)theme-\S+/g) || []).join(' ');
  	});
  
  	// Add new theme class into body
  	$('body').addClass('theme-' + themeName);
  
  	// Write data theme into localstorage
  	localStorage.setItem('theme', themeName);
  }
  
  function switchTheme() {
  	if (!$('body').hasClass('theme-light')) {
  		$('body').removeClass(function (index, className) {
  			return (className.match(/(^|\s)theme-\S+/g) || []).join(' ');
  		});
  
  		$('body').addClass('theme-light');
  	} else {
  		$('body').removeClass(function (index, className) {
  			return (className.match(/(^|\s)theme-\S+/g) || []).join(' ');
  		});
  
  		$('body').addClass('theme-dark');
  	}
  }
  