<!-- settings box -->

<!-- the gear icon that opens the box when you click on it -->
<input id="settings-btn" type="checkbox" class="settings-btn">
<label for="settings-btn" class="settings-box-element"><i class="fa fa-2x fa-gear"></i></label>
<!-- the white box that contains the buttons -->
<div class="buttons-wrapper settings-box-element"></div>

<!-- background styles -->

<!-- light background (#eaeaea) -->
<input id="light-layout" class="light-layout" type="radio" name="layout" checked>
<label for="light-layout" class="layout-buttons settings-box-element">Light Background</label>
<!-- dark background (#494949) -->
<input id="dark-layout" class="dark-layout" type="radio" name="layout">
<label for="dark-layout" class="layout-buttons settings-box-element">Dark Background</label>
<!-- image background (you can use any image of your choice) -->
<input id="image-layout" class="image-layout" type="radio" name="layout">
<label for="image-layout" class="layout-buttons settings-box-element">Image Background</label>
<!-- pattern background (you can use any pattern of your choice) -->
<input id="pattern-layout" class="pattern-layout" type="radio" name="layout">
<label for="pattern-layout" class="layout-buttons settings-box-element">Pattern Background</label>

<!-- // background styles -->

<!-- hide/show content -->

<input id="hide-show-content" class="hide-show-content" type="checkbox">
<label for="hide-show-content" class="layout-buttons settings-box-element">Hide/Show content</label>

<!-- // hide/show content -->
<!-- // settings box -->

<div class="main-wrapper">
  <div class="content">
    <h1>A Style Switcher with Pure CSS!</h1>
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium
      quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus.
      Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus.
    </p>
  </div>
</div>
* {
  transition: all 0.3s;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  line-height: 1.4;
}

.main-wrapper {
  height: 100%;
}

h1 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 30px;
}

.main-wrapper {
  padding-top: 100px;
}

.content {
  margin: auto;
  max-width: 600px;
  padding: 30px;
  background: #777;
  color: white;
}
/*==========================================
    settings box
==========================================*/

input[type="checkbox"],
input[type="radio"] {
  position: absolute;
  visibility: hidden;
}

.settings-box-element {
  z-index: 10;
}

.buttons-wrapper {
  position: fixed;
  top: 130px;
  right: -200px;
  width: 200px;
  height: 240px;
  background: #fff;
}

.settings-btn + label {
  position: fixed;
  top: 130px;
  right: 0;
  display: block;
  width: 35px;
  color: #e83737;
  text-align: center;
  background: #fff;
  cursor: pointer;
}

.settings-btn:checked + label {
  right: 200px;
}

.settings-btn:checked ~ .buttons-wrapper {
  right: 0;
}

.layout-buttons {
  display: block;
  width: 150px;
  padding: 10px 0;
  text-align: center;
  border: 2px solid black;
  box-sizing: border-box;
  font-size: 0.875em;
  cursor: pointer;
}

.settings-btn:checked ~ .layout-buttons {
  right: 30px;
}

input[type="radio"]:checked + label {
  background: #e83737;
  color: #fff;
  border-color: #e83737;
}

.light-layout + label {
  position: fixed;
  top: 140px;
  right: -150px;
}

.dark-layout + label {
  position: fixed;
  top: 185px;
  right: -150px;
}

.image-layout + label {
  position: fixed;
  top: 230px;
  right: -150px;
}

.pattern-layout + label {
  position: fixed;
  top: 275px;
  right: -150px;
}

.hide-show-content + label {
  position: fixed;
  top: 320px;
  right: -150px;
}

.dark-layout:checked ~ .main-wrapper {
  background: #494949;
}

.light-layout:checked ~ .main-wrapper {
  background: #eaeaea;
}

.image-layout:checked ~ .main-wrapper {
  background: url(http://bestinspired.com/wp-content/uploads/2015/03/4-Nature-Wallpapers-2014-1.jpg) no-repeat center 0 fixed;
  /*-- change the image from here --*/
}

.pattern-layout:checked ~ .main-wrapper {
  background: url(https://i.imgur.com/uKfMXs7.png) repeat;
  /*-- change the pattern from here --*/
}

.hide-show-content:checked ~ .main-wrapper .content {
  display: none;
}
// Demo by Omar Wraikat. See:
// http://www.sitepoint.com/building-style-switcher-with-pure-css-using-checked

External CSS

  1. https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css

External JavaScript

This Pen doesn't use any external JavaScript resources.