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

`@cssdoc/embedded` — read cssdoc-annotated CSS out of host files where it lives embedded: JS/TS
tagged templates (`` styled.x`…` ``, `` css`…` ``, Lit, `keyframes`), HTML-like `<style>` blocks
(`.html`, `.vue`, `.svelte`, `.astro`), and Markdown/MDX code fences.

The core is [projectCss](functions/projectCss.md): it returns a character-for-character CSS **projection** of the host
source — identical length and newlines, with the embedded-CSS regions and any `/** … */` doc comment
kept verbatim, everything else blanked to spaces, and JS `${…}` interpolations masked. Because the
projection shares every offset/line/column with the source, all downstream CSS tooling
(`parseCssDocs`, `createIndex`, spans, ranges) works unchanged and correctly-positioned.

## Interfaces

* [ClassToken](interfaces/ClassToken.md)
* [ClassUsageSite](interfaces/ClassUsageSite.md)
* [CssBlock](interfaces/CssBlock.md)
* [EmbeddedOptions](interfaces/EmbeddedOptions.md)

## Type Aliases

* [CssDialect](type-aliases/CssDialect.md)
* [EmbeddedHost](type-aliases/EmbeddedHost.md)

## Variables

* [DEFAULT_TAGS](variables/DEFAULT_TAGS.md)

## Functions

* [detectEmbeddedHost](functions/detectEmbeddedHost.md)
* [extractCssBlocks](functions/extractCssBlocks.md)
* [lintCssDocsFromSource](functions/lintCssDocsFromSource.md)
* [parseCssDocsFromSource](functions/parseCssDocsFromSource.md)
* [projectCss](functions/projectCss.md)
* [projectionDialect](functions/projectionDialect.md)
* [scanClassUsages](functions/scanClassUsages.md)
