@doc-preview/themes
v1.1.2
Published
CSS themes for Doc Preview.
Maintainers
Readme
@doc-preview/themes
Shared CSS for Doc Preview viewers — layout, PDF toolbar, DOCX body, image stage, annotation overlays, split view, modals, and Enterprise chrome. Used by all framework adapters.
Current release: 1.1.2 — See CHANGELOG.
Repository: github.com/rajkishorsahu89/doc-preview
Demo: doc-preview-app.vercel.app — tool · guide
Keywords: doc-preview css theme document-viewer
Install
npm install @doc-preview/themesInstall alongside any @doc-preview/* adapter (react, angular, js).
Supported file types
Themes style the viewer for every format Doc Preview renders — PDF, DOCX, CSV/XLSX tables, PPTX/ODP decks, images, HTML, and media. Extension list: @doc-preview/core README and @doc-preview/office README.
Usage
CSS import (recommended):
@import "@doc-preview/themes/doc-preview.css";Angular angular.json:
"styles": ["node_modules/@doc-preview/themes/doc-preview.css"]React / Vite:
import "@doc-preview/themes/doc-preview.css";Package exports
| Import | File |
| --- | --- |
| @doc-preview/themes | doc-preview.css |
| @doc-preview/themes/doc-preview.css | doc-preview.css |
Customization
Override CSS variables on the preview root (#doc-preview-root or .dp-root) for brand colors, borders, and spacing. See the monorepo docs Architecture guide for token names.
