
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@_nu/css-acss
Advanced tools
| npm package | npm downloads | github | jsDelivr |
|---|---|---|---|
ACSS/ utility-first CSS / Functional CSS 的轻量级解决方案。
灵感来自于 ACSS, tailwindcss, quickLayout。
.
├── demo // 完整的示例,可以直接复制,修改参数,使用
│ ├── index.html
│ ├── less.css
│ ├── less.less
│ ├── scss.css
│ └── scss.scss
└── lib
├── _mixin.less // less Mixin
├── _mixin.scss // sass Mixin
└── index.css // 核心 css 代码, 直接引用即可

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="../lib/index.css">
<link rel="stylesheet" href="./scss.css">
</head>
<body>
<section class="pt16 pr16 pb16 pl16 fs12 bc_fff mt16 mr16 ml16 mb16">
<h2 class="fw700 m0 mb16 fs16">CSS-ACSS</h2>
<p class="m0 mb8">[ACSS](http://acss.io/)/ utility-first CSS / Functional CSS 的轻量级解决方案。</p>
<p class="m0 mb8">
<strong class="fw700">灵感来自于</strong>
<a href="http://acss.io/" class="c_000">acss.io</a>
<a href="https://tailwindcss.com/" class="c_000">tailwindcss</a>
<a href="https://github.com/zhangxinxu/quickLayout" class="c_000">quickLayout</a>
</p>
</section>
</body>
</html>
$ npm i @_nu/css-acss;
@import "@_nu/css-acss";
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@_nu/css-acss">
.db{ display:block; };.mb10{ margin-bottom:10px; };.w100p{ width:100%; };.lh1d2{ line-height:1.2};_ 分割单词, .c_fff{ color: #fff; };lib/index.css 除了以下两个自定的几个样式之外,其余全部严格采用以上命名规则。
.clearfix: 清除浮动;.ell: 单行文本省略;因为不同的项目,设计规范是不一样的。所以在 lib/index.css 里面只提供了,.m0{ margin:0; } .p0{ padding:0; } 这两个通用的间距样式。
这边还额外提供了三个 mixin 方法 Margins, Paddings, ACSS, 帮助快速创建符合设计规范的间距。
// scss
@import "@_nu/css-acss/lib/_mixin.scss";
@include Margins((8,16), 1px); // .mt8, .mr8, .mb8, .ml8, .mt16, .mr16, .mb16, .ml16;
@include Paddings((8,16), 1px); // .pt8, .pr8, .pb8, .pl8, .pt16, .pr16, .pb16, .pl16;
@include ACSS(font-size, fs, (12,16), 1px); // .fs12, .fs16
@include ACSS(line-height, lh, (8,16), 1px); // .lh16, .lh24
@include ACSS(font-weight, fw, (300,500)); // .fw300, .fw500
// less
@import "@_nu/css-acss/lib/_mixin.less";
#Margins(8, 16; 1px); // .mt8, .mr8, .mb8, .ml8, .mt16, .mr16, .mb16, .ml16;
#Paddings(8, 16; 1px); // .pt8, .pr8, .pb8, .pl8, .pt16, .pr16, .pb16, .pl16;
#ACSS(font-size; fs; 12, 16; 1px); // .fs12, .fs16;
#ACSS(line-height; lh; 16, 20; 1px); // .lh16, .lh20;
#ACSS(font-weight; fw; 300, 500); // .fw400, fw700;
/*!
* 管理层级 .zi_{*}
*/
.zi_header{ z-index: 200; }
.zi_toast{ z-index: 300; }
/*!
* 管理颜色 .c_{*}
*/
.c_xl{ color: #111; }
.c_l{ color: #333; }
.c_m{ color: #666; }
.c_s{ color: #999; }
.c_xs{ color: #DDD; }
.c_primary{ color: blue; }
.c_secondary{ color: gray; }
.c_danger{ color: red; }
.c_warning{ color: yellow; }
.c_success{ color: green; }
.c_info{ color: cadetblue; }
.c_light{ color: #f8f9fa; }
.c_dark{ color: #343a40; }
FAQs
Atomic CSS / utility-first CSS / Functional CSS
The npm package @_nu/css-acss receives a total of 92 weekly downloads. As such, @_nu/css-acss popularity was classified as not popular.
We found that @_nu/css-acss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.