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 🙏

© 2025 – Pkg Stats / Ryan Hefner

jason-css

v2.2.2

Published

> 基于 scss 的 css 基础库

Readme

jason-css

基于 scss 的 css 基础库

文档

https://q-jason.github.io/css

不同项目选择不同的 css 基础库

内部实现了三套适应于不同项目的库

  • normal,适合于常规项目
  • responsive,适合于响应式项目
  • mini-program,小程序项目

如何使用

非工程化只需要引入 dist 下对应文件即可

npm i --save jason-css
// 全局 scss 文件中 global.scss

// 自定义变量
@import "./custom-variable.scss";

// 根据需要引用基础库,三选一
@import "./src/normal/index.scss";
// or
@import "./src/responsive/index.scss";
// or
@import "./src/mini-program/index.scss";
// scss 工具库引入

// 自定义变量
@import "./custom-variable.scss";

// 根据需要引用工具库,三选一
@import "./src/normal/util.scss";
// or
@import "./src/responsive/util.scss";
// or
@import "./src/mini-program/util.scss";

文档类名中的变量解析

${ breakpoint }

响应式断点,用于表示断点的名称

<!-- 其中的 lg md sm xs 为 ${ breakpoint }  -->
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"></div>

${ weight }

权重,主要用于 grid(栅格) 中,语义为占的比重大小

<!-- 其中的 3, 4, 6, 12 为 ${ weight }  -->
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12"></div>

${ level }

等级,响应式库中在各个断点会按照一定规则自动缩放

<!-- 下面类名中的数字即为 ${ level } -->
<div class="fs-4 lh-8 mt-5 mb-5 pt-5 pb-5"></div>

注意:等级类系列不建议在项目中大量使用,适合于你不知道如何命名你的元素的场景!

${ range }

响应式范围,up、down、only 三种 用于响应式屏幕范围的选择

<!-- md 断点之上隐藏 -->
<div class="hidden-md-up"></div>
<!-- md 断点之下隐藏 -->
<div class="hidden-md-down"></div>
<!-- 只有 md 断点隐藏 -->
<div class="hidden-md-only"></div>

${ dir }

方向,用于 margin 和 padding 工具类确定方向 t、r、b、l、x、y,分别为 上、右、下、左、左右、上下

<div class="m-4 p-4"></div>
<div class="mt-4 pt-4"></div>
<div class="mr-4 pr-4"></div>
<div class="mb-4 pb-4"></div>
<div class="ml-4 pl-4"></div>