Skip to content

pantoken-root / foundation

foundation ​

Compatibility ​

Target: Foundation for Sites. Current format: Concrete Sass settings + variable-backed CSS overlay. Minimum host version: 6.1.2. Tested through 6.9.0. Newer releases require review.

Full compatibility matrix

实验性

@pantoken/foundation — 为 Foundation for Sites 的 Sass 输出和常用 CSS 类的主题。

Foundation 是以 Sass 为优先的,因此此包提供两个层次。 toFoundationSettings 会生成一个 _settings风格的 Sass 局部文件,包含具体的浅色模式重命名值,以便 Foundation 的颜色函数可以 编译。 toFoundationCss 会生成一个薄的以变量为支撑的 CSS 覆盖层,用于为常见的已编译 类着色(.button, .callout, )链接以相同方式处理)——当你使用原生 Foundation CSS 并且只想在不重新编译的情况下叠加 Instructure 颜色时非常有用。

示例 ​

ts
import { foundationSettings, foundationCss } from "@pantoken/foundation";
// foundationSettings → a Sass partial; foundationCss → a runtime overlay.

接口 ​

变量 ​

函数 ​

引用 ​

default ​

重命名并重新导出 foundationCss