1
0
Fork 0
docsearch/packages/website/docs/styling.md
Pierre Millot 93578a4de0
fix: upgrade algoliasearch to v5 (#2326)
We can use the new generated client to stay up to date and upgrade packages that depends on docsearch.

---------

Co-authored-by: shortcuts <vannicattec@gmail.com>
2024-10-30 15:46:38 +01:00

1.1 KiB
Raw Permalink Blame History

title
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.

:::

Introduction

DocSearch v3 comes with a theme package called @docsearch/css, which offers a sleek out of the box theme!

:::note

This package is a dependency of @docsearch/js and @docsearch/react, you don't need to install it if you are using a package manager!

:::

Installation

yarn add @docsearch/css@3
# or
npm install @docsearch/css@3

If you dont want to use a package manager, you can use a standalone endpoint:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" />

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