示例工程 47-naming-conventions
47-naming-conventions/app/README.md
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
# 47-naming-conventions / app
命名与作用域:BEM、前缀、状态类与 `@scope`。
## 运行
```bash
cd tutorials/css
python3 -m http.server 8080
# 打开 http://127.0.0.1:8080/examples/47-naming-conventions/app/
```
## 关键点
- `card` / `card__title` / `card--featured` 三层语义
- `c-` 组件、`u-` 工具类、`is-` 状态
- `aria-current="page"` 做当前项
- `@scope` 让两个 `.title` 各管各的
- 工具类最后加载