Colour Themes

Developer
Size
2,662 Kb
Views
14,168

How do I make an colour themes?

Playing around with selectable colour themes. Added universal colour transitions for some added eye candy.. What is a colour themes? How do you make a colour themes? This script and codes were developed by Adam Orchard on 02 December 2022, Friday.

Colour Themes Previews

Colour Themes - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Colour Themes</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="centre outer"> <div class="switch"> <label><input type="radio" name="radio" checked="CHECKED" onClick="setTheme1()" />Theme 1</label> <label><input type="radio" name="radio" onClick="setTheme2()" />Theme 2</label> </div> <ul class="centre"> <li/> <li/> <li/> </ul>
</div> <script src="js/index.js"></script>
</body>
</html>

Colour Themes - Script Codes CSS Codes

* { transition: color 0.5s ease-in-out; transition: background-color 0.5s ease-in-out;
}
body { font-family: "Century Gothic", sans-serif; background: #556270; color: #dadada;
}
.centre { margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0;
}
.outer { width: 50%;
}
.switch { position: absolute; top: 15%;
}
.switch label { margin-right: 20px;
}
ul { height: 50%; list-style: none; margin: 0; padding: 0;
}
ul li { width: 30%; height: 100%; margin-left: 5%; float: left;
}
ul li:nth-child(1) { margin-left: 0; background: #FF6B6B;
}
ul li:nth-child(1).theme2 { background: #027169;
}
ul li:nth-child(2) { background: #C7F464;
}
ul li:nth-child(2).theme2 { background: #FF4E60;
}
ul li:nth-child(3) { background: #4ECDC4;
}
ul li:nth-child(3).theme2 { background: #FFAD01;
}
body.theme2 { background: #373231; color: #A6E843;
}
body.theme2 ul li:nth-child(1) { background: #027169;
}
body.theme2 ul li:nth-child(2) { background: #FF4E60;
}
body.theme2 ul li:nth-child(3) { background: #FFAD01;
}

Colour Themes - Script Codes JS Codes

function setTheme1() { var element = document.body; element.classList.remove("theme2");
}
function setTheme2() { var element = document.body; element.classList.add("theme2");
}
Colour Themes - Script Codes
Colour Themes - Script Codes
Home Page Home
Developer Adam Orchard
Username orchard
Uploaded December 02, 2022
Rating 3
Size 2,662 Kb
Views 14,168
Do you need developer help for Colour Themes?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Adam Orchard (orchard) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!