mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +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
482 B
Plaintext
16 lines
482 B
Plaintext
# Sass
|
|
|
|
Sass is a popular CSS preprocessor that extends CSS with variables, nesting rules, mixins, and more.
|
|
|
|
## Usage
|
|
|
|
`@lcui/cli` has a built-in Sass preprocessor that is automatically invoked when compiling `.sass` and `.scss` files — no additional installation or configuration needed.
|
|
|
|
Import Sass files directly in TSX:
|
|
|
|
```tsx title="MyComponent.tsx"
|
|
import "./MyComponent.scss";
|
|
```
|
|
|
|
The CLI compiles Sass files into CSS, then converts them to C code for runtime loading.
|