---
url: /reference/@cssdoc/index.md
---
# @cssdoc/index

`@cssdoc/index` — a queryable semantic index over the `@cssdoc/core` model, plus the two
cross-cutting concerns every downstream tool shares: a host-agnostic usage abstraction (so
HTML, JSX, template literals, and CSS selectors all feed the same providers) and optional source
spans (so diagnostics, hover ranges, and go-to-definition can point back into the CSS).

`@cssdoc/core` stays position-free; the spans are built here, in a dedicated PostCSS pass, and
carried alongside the model. Build with [createIndex](functions/createIndex.md) (from CSS, with spans) or
[indexFromEntries](functions/indexFromEntries.md) (from a model snapshot, without spans).

## Classes

* [CssDocIndex](classes/CssDocIndex.md)

## Interfaces

* [ClassUsage](interfaces/ClassUsage.md)
* [CssDocManifest](interfaces/CssDocManifest.md)
* [CssValueSites](interfaces/CssValueSites.md)
* [Location](interfaces/Location.md)
* [Position](interfaces/Position.md)
* [PropertyAssignment](interfaces/PropertyAssignment.md)
* [PropertyUsage](interfaces/PropertyUsage.md)
* [RecordInfo](interfaces/RecordInfo.md)
* [SourceSpan](interfaces/SourceSpan.md)

## Type Aliases

* [MemberKind](type-aliases/MemberKind.md)

## Functions

* [createIndex](functions/createIndex.md)
* [cssValueSites](functions/cssValueSites.md)
* [indexFromEntries](functions/indexFromEntries.md)
* [memberKey](functions/memberKey.md)
