
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
illli 是一个简洁高效的微信小程序样式库,提供了常用的 UI 组件和样式类。
npm install illli
npx illli init
这个命令会在你的项目中创建一个 illli 文件夹,并将 illli.wxss 文件保存到该文件夹中。然后会自动将 illli.wxss 引入到你的 app.wxss 文件中。
npx illli add button
这个命令会将 button 组件下载到 illli/components 文件夹中,并在 illli.wxss 文件中添加引用。
npm install illli
或者
npx illli
这两个命令都会下载所有组件到 illli/components 文件夹中,并在 illli.wxss 文件中添加所有组件的引用。
npx illli list
npx illli help button
<!-- 基础按钮 -->
<view class="btn">按钮</view>
<!-- 主要按钮 -->
<view class="btn btn-primary">主要按钮</view>
<!-- 危险按钮 -->
<view class="btn btn-danger">危险按钮</view>
<!-- 动画按钮 -->
<view class="btn btn-primary btn-ripple">波纹按钮</view>
<view class="btn btn-primary btn-pulse">脉冲按钮</view>
<view class="btn btn-gradient-primary">渐变按钮</view>
<!-- 基础卡片 -->
<view class="card">
<view class="card-body">卡片内容</view>
</view>
<!-- 带标题的卡片 -->
<view class="card">
<view class="card-header">卡片标题</view>
<view class="card-body">卡片内容</view>
</view>
<!-- 带过渡效果的卡片 -->
<view class="card card-transition">悬停时有动画效果</view>
<!-- 基础动画 -->
<view class="animate fade-in">淡入效果</view>
<view class="animate zoom-in">缩放效果</view>
<view class="animate slide-in-left">从左滑入</view>
<!-- 动画速度控制 -->
<view class="animate animate-slow fade-in">慢速淡入</view>
<view class="animate animate-fast fade-in">快速淡入</view>
<!-- 循环动画 -->
<view class="animate animate-infinite pulse">脉冲效果</view>
<view class="animate animate-infinite rotate">旋转效果</view>
<!-- 基础过渡 -->
<view class="transition">基础过渡效果</view>
<!-- 悬停效果 -->
<view class="hover-scale">缩放效果</view>
<view class="hover-lift">上浮效果</view>
<!-- 特殊过渡效果 -->
<view class="btn btn-transition">按钮过渡</view>
<view class="card card-transition">卡片过渡</view>
<!-- 基础骨架屏 -->
<view class="skeleton skeleton-text"></view>
<view class="skeleton skeleton-avatar"></view>
<!-- 带动画效果的骨架屏 -->
<view class="skeleton-gradient skeleton-text"></view>
<view class="skeleton-blink skeleton-text"></view>
<!-- 加载完成后动画 -->
<view class="skeleton-fade-in">内容已加载</view>
illli 提供了一组 CSS 变量,方便你自定义样式:
:root {
--color-primary: #07C160;
--color-danger: #FA5151;
--color-warning: #FFC300;
--color-info: #10AEFF;
--color-dark: #333333;
--color-light: #F7F7F7;
--color-white: #FFFFFF;
--color-border: #EEEEEE;
--font-size-xs: 24rpx;
--font-size-sm: 28rpx;
--font-size-md: 32rpx;
--font-size-lg: 36rpx;
--font-size-xl: 40rpx;
--radius-sm: 4rpx;
--radius-md: 8rpx;
--radius-lg: 16rpx;
--spacing-xs: 5rpx;
--spacing-sm: 10rpx;
--spacing-md: 20rpx;
--spacing-lg: 30rpx;
/* 动画变量 */
--animation-duration-fast: 0.3s;
--animation-duration-normal: 0.5s;
--animation-duration-slow: 1s;
--transition-timing-function: ease;
--transition-timing-function-ease-in: ease-in;
--transition-timing-function-ease-out: ease-out;
--transition-timing-function-ease-in-out: ease-in-out;
}
illli 样式库现在提供了丰富的动画和过渡效果,可以轻松为您的小程序界面添加生动的交互体验:
<!-- 组合使用动画 -->
<view class="animate slide-in-up animate-slow">慢速从底部滑入</view>
<!-- 使用无限循环动画 -->
<view class="btn btn-primary">
<view class="animate animate-infinite pulse">脉动按钮</view>
</view>
<!-- 使用过渡效果 -->
<view class="card card-transition">
<view class="card-body">悬停时有阴影和上浮效果</view>
</view>
MIT
FAQs
微信小程序 WXSS 样式库,简洁高效的UI组件、动画和样式类集合
The npm package illli receives a total of 9 weekly downloads. As such, illli popularity was classified as not popular.
We found that illli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.