Expand description
Port of src/syntax/constants.ts.
Constants§
- COLORS_
FUNC - COLORS_
NAMES COLORS_NAMES: name to color- COLOR_
FUNC_ COLOR_ SPACE - COMBINATORS
- CONTAINER_
FUNC - D50
- DEPRECATED_
SYSTEM_ COLORS deprecatedSystemColors(lowercase)- FUNC_
LIKE - GRID_
TEMPLATE_ FUNC - IMAGE_
FUNC - MATH_
FUNCS - MEDIA_
TYPES - PAGE_
MARGIN_ BOX_ TYPE - PSEUDO_
ELEMENTS - SUPPORT_
FUNC - SYSTEM_
COLORS systemColors(lowercase)- TIMELINE_
FUNC - TIMING_
FUNC - TOKENS_
FUNC_ DEF_ MAP tokensfuncDefMap: function definition token type -> function token type- TRANSFORM_
FUNCTIONS - URL_
FUNC - WHEN_
ELSE_ FUNC - WILD_
CARD_ FUNCS - angle
Precision - color
Distance Precision - color
Precision - e
Math.pow(6, 3) / Math.pow(29, 3)- epsilon
- k
Math.pow(29, 3) / Math.pow(3, 3)- mFGT
- mFLT
Functions§
- color_
name_ to_ hex COLORS_NAMES[name]- color_
range colorRange: [min, max] of the components, by color space- hex_
to_ color_ name NAMES_COLORS[hex]: color to name (the last name of a color wins, like the typescript reduce)- is_
function_ def_ type - true if the token type is a function definition (
name() - is_
function_ type - true if the token type is a function (
tokensfuncSet.has(type)) - non_
standard_ colors nonStandardColors- reg_
match_ linear_ gradient /^-((webkit)|o|moz)(-repeating)?-linear-gradient$/i- reg_
match_ radial_ gradient /^-((webkit)|o|moz)(-repeating)?-radial-gradient$/i- tokens_
func_ def_ map tokensfuncDefMap.get(type)- tokens_
map tokensMap- trim_
token_ space trimTokenSpace- url_
token_ matcher /^(["']?)[a-zA-Z0-9_/.-][a-zA-Z0-9_/:.#?-]+(\1)$/- validation_
units - the units of the validation data, in their canonical spelling (
Hz,Q,dB)