入门

版本选择器

轻松挑选最适合项目需求的 Pico CSS 版本变体。

主题色

查看源码
<link rel="stylesheet" href="css/pico.min.css">

配置

Pico CSS 的默认版本,包含全部组件与类名。
默认版本会将 Pico 样式应用到所有 HTML 元素。

通过 CDN 使用

<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css"
>

通过 Sass 使用

@use "pico";

起步 HTML 模板

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="color-scheme" content="light dark">
    <link rel="stylesheet" href="css/pico.min.css">
    <title>Hello world!</title>
  </head>
  <body>
    <main class="container">
      <h1>Hello world!</h1>
    </main>
  </body>
</html>