Styling
info
The following content is for DocSearch v3. If you are using DocSearch v2, see the legacy documentation.
caution
This documentation is in progress.
#
IntroductionDocSearch v3 comes with a theme package called @docsearch/css
, which offers a sleek out of the box theme!
note
You don't need to install this package if you already have @docsearch/js
or @docsearch/react
installed!
#
Installationyarn add @docsearch/css@alpha# ornpm install @docsearch/css@alpha
If you donβt want to use a package manager, you can use a standalone endpoint:
<script src="https://cdn.jsdelivr.net/npm/@docsearch/css@alpha"></script>
#
Files@docsearch/cssβββ dist/style.css # all stylesβββ dist/_variables.css # CSS variablesβββ dist/button.css # CSS for the buttonβββ dist/modal.css # CSS for the modal