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

[Home](./index.md) &gt; [@csstools/selector-specificity](./selector-specificity.md) &gt; [selectorSpecificity](./selector-specificity.selectorspecificity.md)

## selectorSpecificity() function

Calculate the specificity for a selector

**Signature:**

```typescript
export declare function selectorSpecificity(node: Node, options?: CalculationOptions): Specificity;
```

## Parameters

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

Parameter


</th><th>

Type


</th><th>

Description


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

node


</td><td>

Node


</td><td>


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

options


</td><td>

[CalculationOptions](./selector-specificity.calculationoptions.md)


</td><td>

_(Optional)_


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

**Returns:**

[Specificity](./selector-specificity.specificity.md)

