Skip to content

Packages

cssdoc is a set of small, composable packages. Install only what you need.

Model & config

PackageWhat it is
@cssdoc/coreThe parser + model. A formal grammar and an expansive tag vocabulary that documents the modern CSSOM surface AST-first.
@cssdoc/configLoads a cssdoc.json config file (custom tags, extends).
@cssdoc/indexA queryable semantic index over the model, with source spans — the shared data layer for the linters and language server.
@cssdoc/providersHost-agnostic diagnostics, completions, hover, and definitions over the index.
@cssdoc/lint-coreThe author-side doc-hygiene rules.

Emitters

PackageOutput
@cssdoc/markdownMarkdown pages + a sidebar.
@cssdoc/htmlStandalone HTML pages + an index.
@cssdoc/jsonJSON + the model's JSON Schema.
@cssdoc/llmsAn llms.txt digest.

Standard formats

PackageOutput
@cssdoc/vscode-custom-dataVS Code css/html custom data.
@cssdoc/cemA Custom Elements Manifest.
@cssdoc/dtcgW3C Design Tokens.

Integrations

PackageWhat it is
@cssdoc/typedocA TypeDoc plugin that emits CSS reference pages alongside a TS API-docs build.
@cssdoc/stylelint-pluginStylelint rules for doc-comment hygiene.
@cssdoc/eslint-pluginESLint rules: doc hygiene + consumer-side class usage (JSX + HTML).
@cssdoc/language-serverAn editor-agnostic LSP.

The cssdoc VS Code extension bundles the language server; install it from the Marketplace rather than from npm.

Released under the MIT License