p { color: hsl($hue: 0, $saturation: 50%, $lightness: 50%); }
hue: 它代表的顏色,如120紅色,240綠色,290為柔和的紫等
saturation: 它是一個百分比值,增加顏色的飽和度。
lightness: 它是一個百分比值而減小顏色的亮度。
<html>
<head><meta charset="UTF-8"> <title>Functions Example</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Example using Functions</h2>
<p>SASS stands for Syntactically Awesome Stylesheet..</p>
</div>
</body>
</html>
p { color: hsl(290,60%,70%); }
sass --watch C:\Ruby22-x64\style.scss:style.css
p { color: #d185e0; }