instantsearch.css

中文文档
8.25.1发布于 2026/11/03MITTypeScriptES Module构建来源已验证

InstantSearch.css is a CSS library to style InstantSearch-powered search experiences.

原始使用文档
文档目录7 节
  1. Getting started
  2. Installation
  3. Available themes
  4. Browser support
  5. Implemented versions
  6. Contributing
  7. License

InstantSearch.css is a CSS library to style InstantSearch-powered search experiences.


Version License Build Status Website

Getting started

Using InstantSearch.css is as simple as adding this CSS code to your existing InstantSearch app:

// Include only the reset
import 'instantsearch.css/themes/reset.css';

// Or include the full Satellite theme
import 'instantsearch.css/themes/satellite.css';

To learn more about the library, follow the guide on how to style your InstantSearch widgets:

Installation

npm install instantsearch.css
# or
yarn add instantsearch.css

Available themes

InstantSearch.css exposes two themes:

If you don't need a theme, you can still use the reset styles to start from a clean slate.

The reset styles are included in all the provided themes. You don't need to import them if you use a theme.

Browser support

We support the last two versions of major browsers (Chrome, Edge, Firefox, Safari).

Implemented versions

InstantSearch.css is a living standard. This table tracks down the version implemented in each InstantSearch flavor.

ProjectVersion
InstantSearch.js7
React InstantSearch7
Vue InstantSearch7

Contributing

We welcome all contributors, from casual to regular 💙

  • Bug report. Is something not working as expected? Send a bug report.
  • Feature request. Would you like to add something to the library? Send a feature request.
  • Documentation. Did you find a typo in the doc? Open an issue and we'll take care of it.
  • Development. If you don't know where to start, you can check the open issues that are tagged easy, the bugs or chores.

To start contributing to code, you need to:

  1. Fork the project
  2. Clone the repository
  3. Install the dependencies: yarn

Please read our contribution process to learn more.

License

InstantSearch.css is MIT licensed.

版本与发布记录

instantsearch.css 共发布 59 个版本,首次发布于 2017/11/09;过去 12 个月发布了 25 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
8.25.1latest2026/11/031 天前
8.25.02026/10/279 天前
8.24.12026/10/1223 天前
8.24.02026/10/021 个月前
8.23.02026/09/221 个月前
8.22.12026/09/151 个月前

关于 instantsearch.css 的常见问题

instantsearch.css 是什么?

InstantSearch.css is a CSS library to style InstantSearch-powered search experiences.

如何安装 instantsearch.css?

在项目目录运行 npm install instantsearch.css,或使用 pnpm add / yarn add / bun add。

instantsearch.css 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

instantsearch.css 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

instantsearch.css 可以商用吗?

instantsearch.css 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

instantsearch.css 还在维护吗?

最新版本 8.25.1 发布于 2026/11/03(1 天前);至今共发布 59 个版本,其中过去 12 个月发布了 25 个;首次发布于 2017/11/09。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。