sass-site/source/documentation/values.html.md

38 lines
1.3 KiB
Markdown
Raw Normal View History

2018-09-01 22:35:20 +02:00
---
title: Values
2019-03-05 01:24:31 +01:00
introduction: >
Sass supports a number of value types, most of which come straight from CSS.
Every [expression](syntax/structure#expressions) produces a value,
[variables](variables) hold values. Most value types come straight from CSS:
overview: true
2018-09-01 22:35:20 +02:00
---
* [Numbers](values/numbers), which may or may not have units, like `12` or
`100px`.
2018-09-01 22:35:20 +02:00
* [Strings](values/strings), which may or may not have quotes, like
`"Helvetica Neue"` or `bold`.
2018-09-01 22:35:20 +02:00
* [Colors](values/colors), which can be referred to by their hex representation
or by name, like `#c6538c` or `blue`, or returned from functions, like
`rgb(107, 113, 127)` or `hsl(210, 100%, 20%)`.
* [Lists of values](values/lists), which may be separated by spaces or commas
2018-09-01 22:35:20 +02:00
and which may be enclosed in square brackets or no brackets at all, like
`1.5em 1em 0 2em`, `Helvetica, Arial, sans-serif`, or `[col1-start]`.
A few more are specific to Sass:
* The [boolean](values/booleans) values `true` and `false`.
2018-09-01 22:35:20 +02:00
* The singleton [`null`](values/null) value.
2018-09-01 22:35:20 +02:00
* [Maps](values/maps) that associate values with keys, like
`("background": red, "foreground": pink)`.
2018-09-01 22:35:20 +02:00
* [Function references](values/functions) returned by [`get-function()`][] and
called with [`call()`][].
2019-09-05 23:47:14 +02:00
[`get-function()`]: modules/meta#get-function
[`call()`]: modules/meta#call