1
0
Fork 0
docsearch/packages/website/docs/styling.md
Dylan Tientcheu f74199f492 fix: docs
2025-09-15 16:58:23 +02:00

48 lines
1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Styling
---
:::info
The following content is for **[DocSearch v4][2]**. If you are using **[DocSearch v3][3]**, see the **[legacy][4]** documentation.
:::
## Introduction
DocSearch v4 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`][1] and [`@docsearch/react`][1], you don't need to install it if you are using a package manager!
:::
## Installation
```bash
yarn add @docsearch/css@4
# or
npm install @docsearch/css@4
```
If you dont want to use a package manager, you can use a standalone endpoint:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@4" />
```
## 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
```
[1]: /docs/docsearch
[2]: https://github.com/algolia/docsearch/
[3]: https://github.com/algolia/docsearch/tree/master
[4]: /docs/v3/docsearch