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

nuke-test-core

v0.0.3

Published

nuke核心变量

Downloads

9

Readme

Nuke - Core


简介

职责

能力

为 Nuke UI Mobile 的所有 UI 组件提供全局基础样式的变量定义, 包括 颜色, 边角, 文本, 边线, 阴影, 动画, 多语言, 以及其他全局变量定义等; 全局 Mixins, Functions, Placeholders; 以及浏览器基础样式重置和全站文本样式声明.

约定

所有 UI 组件也必须引用 nuke-core 作为全局默认的变量使用, 且定义方式, 书写规范也必须和 core 保持一致. 除 theme-xxx 外, 不允许有其他全局公共变量对 @alife/next-core 复写.


使用方法

$ tnpm ii  [email protected] --save

index.scss
@import "~nuke-core/nuke.scss";

目录结构

next-core
    |- src/
        |- util
            |- mixins.rxscss
            |- functions.rxscss
        |- variables/
            |- global.rxscss
            |- color.rxscss
            |- corner.rxscss
            |- font.rxscss
            |- icon.rxscss
            |- line.rxscss
            |- shadow.rxscss
        nuke.scss   // 兼容性配置
        nuke.rxscss  //

内容说明

  • util 全局 Mixins, Functions, Placeholders: mixins, funcitons, placeholder
  • variables 为 Next UI PC 和 Mobile 的所有 UI 组件提供全局基础样式的变量定义, 包括 颜色, 边角, 文本, 边线, 阴影, 动画, 多语言, 以及其他全局变量定义等.

变量命名规范

  • 变量统一小写,单词用中划线连接。
  • 变量名统一以文件名为前缀, 例如: color.scss -> $color-n1-1
  • 全局变量和基础变量必须在变量后添加 !default 声明
  • 变量定义扁平化, 不要采用 list 或者 map, 这样便于配置和调用.
  • 变量名称以聚类方式增加前缀, eg:
    $corner-sides-base: "base" !default;
    $corner-sides-top: "top" !default;
    $corner-sides-right: "right" !default;
    $corner-sides-bottom: "bottom" !default;
    $corner-sides-left: "left" !default;
  • 所有需要被配置平台配置的变量都必须写单个值, 不能写组合值, eg:
    // right
    $btn-size-margin-left: $s1;
    
    //wrong
    $btn-size-margin: 0 $s1;
    //wrong
    $btn-shadow: 1px 1px #333;

注释

依赖配置平台的注释要求注释.(后续添加)