<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/css-color-parser](./css-color-parser.md) &gt; [SyntaxFlag](./css-color-parser.syntaxflag.md)

## SyntaxFlag enum

**Signature:**

```typescript
export declare enum SyntaxFlag 
```

## Enumeration Members

<table><thead><tr><th>

Member


</th><th>

Value


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

ColorKeyword


</td><td>

`"color-keyword"`


</td><td>

Is a color keyword, e.g. `transparent`<!-- -->, `currentColor`<!-- -->, ...


</td></tr>
<tr><td>

ColorMix


</td><td>

`"color-mix"`


</td><td>

Is a mixed color, e.g. `color-mix(in oklch, red, blue)`


</td></tr>
<tr><td>

ColorMixVariadic


</td><td>

`"color-mix-variadic"`


</td><td>

Is a variadic mixed color, e.g. `color-mix(in oklch, red)` `color-mix(in oklch, red, blue, green)`


</td></tr>
<tr><td>

ContrastColor


</td><td>

`"contrast-color"`


</td><td>

Is a contrasting color, e.g. `contrast-color()`


</td></tr>
<tr><td>

Experimental


</td><td>

`"experimental"`


</td><td>

Is an experimental color syntax


</td></tr>
<tr><td>

HasAlpha


</td><td>

`"has-alpha"`


</td><td>

Has an explicit alpha channel


</td></tr>
<tr><td>

HasDimensionValues


</td><td>

`"has-dimension-values"`


</td><td>

Has a channel with a dimension value, e.g. `50deg`


</td></tr>
<tr><td>

HasNoneKeywords


</td><td>

`"has-none-keywords"`


</td><td>

Has a channel with the `none` keyword


</td></tr>
<tr><td>

HasNumberValues


</td><td>

`"has-number-values"`


</td><td>

Has a channel with a number value


</td></tr>
<tr><td>

HasPercentageAlpha


</td><td>

`"has-percentage-alpha"`


</td><td>

Has an alpha channel with a percentage value


</td></tr>
<tr><td>

HasPercentageValues


</td><td>

`"has-percentage-values"`


</td><td>

Has a channel with a percentage value


</td></tr>
<tr><td>

HasVariableAlpha


</td><td>

`"has-variable-alpha"`


</td><td>

Has an alpha channel with a `var()` function value


</td></tr>
<tr><td>

Hex


</td><td>

`"hex"`


</td><td>

Is Hex notation


</td></tr>
<tr><td>

LegacyHSL


</td><td>

`"legacy-hsl"`


</td><td>

Is legacy HSL, e.g. `hsl(50deg, 0%, 0%)`


</td></tr>
<tr><td>

LegacyRGB


</td><td>

`"legacy-rgb"`


</td><td>

Is legacy RGB, e.g. `rgb(0, 0, 0)`


</td></tr>
<tr><td>

NamedColor


</td><td>

`"named-color"`


</td><td>

Is a named color, e.g. `red`<!-- -->, `blue`


</td></tr>
<tr><td>

RelativeAlphaSyntax


</td><td>

`"relative-alpha-syntax"`


</td><td>

Is a relative alpha syntax `alpha(from red / 0.5)`


</td></tr>
<tr><td>

RelativeColorSyntax


</td><td>

`"relative-color-syntax"`


</td><td>

Is a relative color syntax, e.g. `rgb(from purple r g b)`


</td></tr>
</tbody></table>

