mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
- Add examples/doc-viewer, an LCUI-based documentation viewer with an MDX compiler pipeline that converts source MDX files into C/TSX page components rendered by lcui build. - Add zh-CN and en documentation for 5 widgets (anchor, button, scrollarea, text, text-input), each with C/TSX/XML example variants and widget-fields data. - Add handbook and overview documentation. Co-authored-by: Liu <lc-soft@live.cn>
16 lines
454 B
Plaintext
16 lines
454 B
Plaintext
# Sass
|
|
|
|
Sass 是一个流行的 CSS 预处理器,通过变量、嵌套规则和混合元素等功能扩展 CSS。
|
|
|
|
## 用法
|
|
|
|
`@lcui/cli` 已内置 Sass 预处理器,在编译 `.sass` 和 `.scss` 后缀的文件时会自动调用,无需额外安装或配置。
|
|
|
|
在 TSX 中直接导入 Sass 文件:
|
|
|
|
```tsx title="MyComponent.tsx"
|
|
import "./MyComponent.scss";
|
|
```
|
|
|
|
CLI 会将 Sass 文件编译为 CSS,再转换为 C 代码在运行时加载。
|