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

@techui/lessmixins

v0.0.6

Published

A simple less mixins library developed by ayin.

Readme

@techui/lessmixins

English | 中文


English

A simple and efficient Less Mixins library developed and maintained by aYin.

✨ Features

  • 🚀 Simple and intuitive API design
  • 📝 Rich collection of common CSS snippets
  • 🎨 Integrated with @techui/colors color system
  • 🔧 Ready to use with global import support
  • 💡 Boost productivity and reduce code duplication

🔨 Usage

Global Import in Vue CLI Projects

Configure in vue.config.js:

const path = require('path');

module.exports = {
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [
        path.resolve(__dirname, './node_modules/@techui/lessmixins/index.less')
      ]
    }
  }
};

Global Import in Vite Projects

Configure in vite.config.js:

import { defineConfig } from 'vite';
import path from 'path';

export default defineConfig({
  css: {
    preprocessorOptions: {
      less: {
        javascriptEnabled: true,
        additionalData: `@import "${path.resolve(__dirname, './node_modules/@techui/lessmixins/index.less')}";`
      }
    }
  }
});

Import in Individual Files

In your .less files:

@import '@techui/lessmixins';

.your-class {
  .bd(@wh); // border: 1px solid #fff;
}

📖 Common Examples

// Border styles
.box {
  .bd(@wh);  // border: 1px solid #fff;
}

// Background color
.container {
  .bgc(@bk);  // background-color: #000;
}

// Absolute center positioning
.modal {
  .centerAbsolute;  // position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%);
}

🌈 About Less

Less is a CSS pre-processor that extends CSS with features like variables, mixins, and functions.

For detailed usage, please refer to the Less Documentation

📚 Dependencies

  • @techui/colors - Color system
  • less - Less compiler
  • less-loader - Webpack Less loader

🔗 Links

👨‍💻 Author

aYin

🤝 Contributing

Issues and Pull Requests are welcome!


中文

一个简洁高效的 Less Mixins 工具库,由 aYin 开发维护。

✨ 特性

  • 🚀 简洁易用的 API 设计
  • 📝 丰富的常用 CSS 代码片段
  • 🎨 集成 @techui/colors 颜色系统
  • 🔧 开箱即用,支持全局引入
  • 💡 提高开发效率,减少重复代码

🔨 使用方法

Vue CLI 项目全局引入

vue.config.js 中配置:

const path = require('path');

module.exports = {
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [
        path.resolve(__dirname, './node_modules/@techui/lessmixins/index.less')
      ]
    }
  }
};

Vite 项目全局引入

vite.config.js 中配置:

import { defineConfig } from 'vite';
import path from 'path';

export default defineConfig({
  css: {
    preprocessorOptions: {
      less: {
        javascriptEnabled: true,
        additionalData: `@import "${path.resolve(__dirname, './node_modules/@techui/lessmixins/index.less')}";`
      }
    }
  }
});

单文件引入

在需要使用的 .less 文件中:

@import '@techui/lessmixins';

.your-class {
  .bd(@wh); // border: 1px solid #fff;
}

📖 常用示例

// 边框样式
.box {
  .bd(@wh);  // border: 1px solid #fff;
}

// 背景颜色
.container {
  .bgc(@bk);  // background-color: #000;
}

// 绝对居中
.modal {
  .centerAbsolute;  // position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%);
}

🌈 关于 Less

Less 是一门 CSS 预处理语言,它扩展了 CSS 语言,增加了变量、Mixin、函数等特性。

详细使用方法请查阅 Less 中文文档

📚 依赖项

  • @techui/colors - 颜色系统
  • less - Less 编译器
  • less-loader - Webpack Less 加载器

🔗 相关链接

👨‍💻 作者

aYin

🤝 贡献

欢迎提交 Issue 和 Pull Request!