npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

slidev-theme-prussianblue

v0.0.9

Published

[![NPM version](https://img.shields.io/npm/v/slidev-theme-prussianblue?color=3AB9D4&label=)](https://www.npmjs.com/package/slidev-theme-prussianblue)

Readme

slidev-theme-prussianblue

NPM version

Netlify Status

Live demo

A (...) theme for Slidev.

Install

Add the following frontmatter to your slides.md. Start Slidev then it will prompt you to install the theme automatically.

Learn more about how to use a theme.

Layouts

This theme provides the following layouts:

cover

cover

default page

要使用下方的页面指示器,请在扉页中列出文章的大纲,并在每一页前标出相应的ID:

contents:
  - Slidev简介
  - 主题介绍
  - 使用说明

......

---
id: 1
---

about

Components

This theme provides the following components:

滚动窗

示例,使用方法:

<scrool h=30>
// 这里要注意空一行
...... Markdown ......
// 这里要注意空一行
</scrool>

等价于

<div class="overflow-auto max-h-30">
// 这里要注意空一行
...... Markdown ......
// 这里要注意空一行
</div>

图片框

示例,使用方法:

<mimage layout="c" url="URL" class="h-50" />

layout 为图片布局方式,有以下三种:

  • 水平居中,上下环绕式
  • 向右浮动式
  • 右上角悬浮式(可能无法正常导出)

通过设置 hw 可以控制图片的尺寸,默认为图片添加了圆角和阴影。

| 居中(center)(c) | 向右(right)(r) | 右上(rt) | | -------------------------- | ---------------------- | ---------------------- | | 居中布局 | 向右 | 右上 |

已知问题

  • 在Mac与iPad上的元素定位可能会不大一致
  • 导出为pdf时,每页下方会有一条白线
  • 导出为pdf时,最后一页下方会有一块白色区域,可以在最后插入空白页并删除pdf中的空白页解决
  • 图片阴影在某些PDF阅读器中可能显示不正确
  • 右上角悬浮的图片样式可能无法正常导出

Contributing

  • npm install
  • npm run dev to start theme preview of example.md
  • Edit the example.md and style to see the changes
  • npm run export to generate the preview PDF
  • npm run screenshot to generate the preview PNG