colorTo.value;
			var via = colorVia.value;
			var direction = colorDirection.value;

			var gradient = 'bg-gradient bg-gradient-from-' + from + ' bg-gradient-to-' + to;

			if (via) {
				gradient += ' bg-gradient-via-' + via;
			}

			gradient += ' bg-gradient-' + direction;

			gradientPreview.className = gradient;
		}

		colorFrom.addEventListener('change', updateGradient);
		colorTo.addEventListener('change', updateGradient);
		colorVia.addEventListener('change', updateGradient);
		colorDirection.addEv