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 🙏

© 2024 – Pkg Stats / Ryan Hefner

nanarinostyl

v0.3.3

Published

style lib

Downloads

34

Readme

=========== ☘ 自用样式库

.. highlight:: bash

.. image:: ./src/icons/logo/color/clover.svg :width: 64 px :alt: Nanarinostyl Logo :target: https://nanarino.github.io/nanarinostyl/

.. image:: ./src/assets/stylus.svg :width: 64 px :alt: Stylus Logo :target: https://stylus-lang.com/

使用 styl 来编写的纯 CSS 库

利用

::

# 安装npm包
pnpm i nanarinostyl

# 然后在jsx中 `import 'nanarinostyl'`
# 或是在css中 `@import url('nanarinostyl')`

# 也可以引入stylus源码以及其一部分 `import 'nanarinostyl/src/lib/index.styl'`

运行

::

# 克隆仓库然后安装依赖
pnpm i
# 运行开发服务器
pnpm dev

构建

::

# 修改比如配色默认字体后你可以本地构建文档和样式
# 构建文档
pnpm build-docs
# 构建样式
pnpm build-styl

借物

  • icon: arco官方图标库 <https://arco.design/iconbox/lib/89/0/>_
  • color: arco默认配色 <https://arco.design/palette/list>_
  • background: css-doodle <https://css-doodle.com/>_
  • inspiration: affinity-css <https://github.com/Deep-Codes/affinity-css/>_

约束

  • astro:
    • 不省略分号。
    • 模板外不能含有tsx表达式。
    • 模板中 jsx的attr里含有 " 时需要转义。
    • 直接内嵌客户端脚本时 不省略 is:inline 并使用IIFE
  • mdx:
    • 不能含有js/ts注释。
    • 分割线使用 *** 而不 ---
  • styl:
    • 尽量省略冒号分号逗号和花括号。
    • 引入顺序 @import 应先引入css 再引入stylus。
    • 出现vscode高亮丢失时,应该将其提成stylus变量来规避。
    • 禁止使用元组列 color = (red #F00) ,应该用字典 color = {red: #F00} 代替。
    • 使通配符引入时要确保引入的优先级 譬如:要确保含有的 &>* 选择器(被) & 覆盖。

兼容

+---------------------+---------+ | Support | Version | +=====================+=========+ | Chrome | 88 | +---------------------+---------+ | Edge | 88 | +---------------------+---------+ | Firefox | 82 | +---------------------+---------+ | Opera | 74 | +---------------------+---------+ | Safari | 14.1 | +---------------------+---------+ | Chrome Android | 83 | +---------------------+---------+ | Firefox for Android | 79 | +---------------------+---------+ | Opera Android | No | +---------------------+---------+ | Safari on iOS | 14.5 | +---------------------+---------+ | Samsung Internet | 13.0 | +---------------------+---------+ | WebView Android | 83 | +---------------------+---------+