Dark Mode
Qoduby template supports dark mode. Changing the template to dark mode is extremely simple.
Simply add data-bs-theme="dark"
attiribute to the <html>
tag of the page you want to convert to dark mode.
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Qoduby - Admin & Dashboard Template</title>
<!-- Favicon -->
<link rel="icon" type="image/png" href="assets/media/logo/favicon.png" />
<!-- Google Font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!-- Global CSS -->
<link href="assets/css/style.css" rel="stylesheet" type="text/css"/>
<!-- Light-Dark Mode & Theme Direction Selector -->
<script src="assets/js/theme.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- Plugin Bundle -->
<script src="assets/js/plugins.bundle.js" crossorigin="anonymous"></script>
<!-- Common Javascript -->
<script src="assets/js/app.js" crossorigin="anonymous"></script>
</body>
</html>
Also, the qoduby template stores the last selected theme mode using localstorage with key theme
and value dark|light
.
If you don't want to use this feature, you can remove the following line from the html code.
<!-- Light-Dark Mode & Theme Direction Selector -->
<script src="assets/js/theme.js" crossorigin="anonymous"></script>