styling-css-patterns

styling-css-patterns is a cursor rule for Cursor from soaring-xiongkulu/easyaiot. It costs 420 tokens per session, scanned A, original, MIT.

A CSS styling guide for a uni-app project using UnoCSS, an on-demand utility-class system, and SCSS, a CSS extension language. It covers component styles, naming, shared variables, responsive layouts, and platform differences.

In plain words
What is it for?
Use it when styling Vue components, choosing UnoCSS classes, writing scoped SCSS, organising shared styles, or adapting layouts for different devices.
Why use it?
It keeps styles organised and consistent across components and screen sizes instead of letting each file use unrelated CSS patterns.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/soaring-xiongkulu/easyaiot/styling-css-patterns
Clone the repo
git clone --depth 1 https://github.com/soaring-xiongkulu/easyaiot

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for styling-css-patterns

README.md
[![agentmods](https://agentmods.dev/badge/rules/soaring-xiongkulu/easyaiot/styling-css-patterns.svg)](https://agentmods.dev/rules/soaring-xiongkulu/easyaiot/styling-css-patterns)
Your own site
<a href="https://agentmods.dev/rules/soaring-xiongkulu/easyaiot/styling-css-patterns"><img src="https://agentmods.dev/badge/rules/soaring-xiongkulu/easyaiot/styling-css-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 420 This file is loaded in full into every session.
When invoked 420 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00420 $0.00420
Opus 5 $0.00210 $0.00210
Sonnet 5 $0.00084 $0.00084
Haiku 4.5 $0.00042 $0.00042

Measured 6d ago against content hash 2940ca009814, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

styling-css-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

APP/.cursor/rules/styling-css-patterns.mdc · 55 lines

What it actually says

样式和 CSS 开发规范

UnoCSS 原子化 CSS

  • 项目使用 UnoCSS 作为原子化 CSS 框架
  • 配置在 uno.config.ts
  • 支持预设和自定义规则
  • 优先使用原子化类名,减少自定义 CSS

SCSS 规范

  • 使用 SCSS 预处理器
  • 样式文件使用 lang="scss"scoped 属性
  • 遵循 BEM 命名规范
  • 使用变量和混入提高复用性

样式组织

示例代码结构

<template>
  <view class="container flex flex-col items-center p-4">
    <text class="title text-lg font-bold mb-2">标题</text>
    <view class="content bg-gray-100 rounded-lg p-3">
      <!-- 内容 -->
    </view>
  </view>
</template>

<style lang="scss" scoped>
.container {
  min-height: 100vh;
  
  .title {
    color: var(--primary-color);
  }
  
  .content {
    width: 100%;
    max-width: 600rpx;
  }
}
</style>

## 响应式设计
- 使用 rpx 单位适配不同屏幕
- 支持横屏和竖屏布局
- 使用 flexbox 和 grid 布局
- 考虑不同平台的样式差异
---
globs: *.vue,*.scss,*.css
---
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 55 lines · 420 tokens per session scan A 2940ca009814

Subscribe to this mod's changes

styling-css-patterns is a cursor rule published in the GitHub repository soaring-xiongkulu/easyaiot (707 stars, last pushed yesterday), licensed MIT. It adds 420 tokens to every session, about $0.0021 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.