@contentful/forma-36-fcss

中文文档
0.3.5发布于 2022/03/03MIT近 30 天下载 6.2万

Forma 36 FCSS

原始使用文档
文档目录10 节
  1. Getting started
  2. Install the package to your project
  3. Naming convention
  4. Spacing
  5. Typography
  6. Colors
  7. Shadows
  8. Glows
  9. Transitions
  10. Easing

Forma 36 FCSS

Forma 36 FCSS - Utility CSS classes for applying spacing, colors, typography, shadows, and transitions to elements.

Getting started

Install the package to your project

yarn add @contentful/forma-36-fcss

Or for NPM

npm i @contentful/forma-36-fcss

Import the styles.css file into your stylesheet.

@import '@contentful/forma-36-fcss/dist/styles.css'

Naming convention

The class names consist out of the prefix (e.g. .f36-) the attribute (e.g. margin-bottom) and the scale or modifier (--xs). See a list of all class names below

Spacing

Margin

margin-top
margin-bottom
margin-right
margin-left
margin
margin-horizontal
margin-vertical

Scale:
xs, s, m, l, xl, 2xl, 3xl, 4xl

Class name composition example:

 .f36-margin-top--xs

Padding

padding-top
padding-bottom
padding-right
padding-left
padding
padding-horizontal
padding-vertical

Scale:
xs, s, m, l, xl, 2xl, 3xl, 4xl

Class name composition example:

 .f36-padding-top--xs

Typography

Font Families

.f36-font-family--sans-serif
.f36-font-family--monospace

Typography Scale

font-size

Scale:
s, m, l, xl, 2xl, 3xl

Class name composition example:

 .f36-font-size--s

Weights

font-weight

Scale:
normal, medium, demi-bold

Class name composition example:

.f36-font-weight--normal

Line Height

line-height

Scale:
default, condensed

Classname composition example:

.f36-line-height--default

Colors

Text Colors & Backgrounds

Semantic Colors:

ColorBackground
.f36-color--primary,.f36-background-color--primary
.f36-color--positive.f36-background-color--positive
.f36-color--negative.f36-background-color--negative
.f36-color--warning.f36-background-color--warning

Text Colors:

Color
.f36-color--text-dark
.f36-color--text-mid
.f36-color--text-light
.f36-color--text-lightest

Element Colors

ColorBackground
.f36-color--element-darkest.f36-background-color--element-darkest
.f36-color--element-dark.f36-background-color--element-dark
.f36-color--element-mid.f36-background-color--element-mid
.f36-color--element-light.f36-background-color--element-light
.f36-color--element-lightest.f36-background-color--element-lightest

Contast Colors

ColorBackground
.f36-color--contrast-dark.f36-background-color--contrast-dark
.f36-color--contrast-mid.f36-background-color--contrast-mid
.f36-color--contrast-light.f36-background-color--contrast-light

Colors:

ColorBackground
.f36-color--blue.f36-background-color--blue
.f36-color--green.f36-background-color--green
.f36-color--red.f36-background-color--red
.f36-color--orange.f36-background-color--orange
.f36-color--coral.f36-background-color--coral

Secondary Colors:

ColorBackground
.f36-color--mint.f36-background-color--mint
.f36-color--ice.f36-background-color--ice

White:

ColorBackground
.f36-color--white.f36-background-color--white

Shadows

box-shadow

Scale:
default, heavy

Class name composition example:

.f36-box-shadow--default

Glows

box-shadow

Scale:
primary, negative, positive

Class name composition example:

.f36-glow--primary

Transitions

transition-duration

Scale:
short, default, long

Class name composition example:

.f36-transition-duration--short

Easing

transition-easing

Scale:
default, cubic-bezier

Class name composition example:

.f36-transition-easing--default

版本与发布记录

@contentful/forma-36-fcss 共发布 279 个版本,首次发布于 2018/12/04;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.3.5latest2022/03/034 年前
0.2.13-next-v4-9126.406next-v42021/09/255 年前
0.2.13-next-v4-9086.4042021/09/245 年前
0.2.13-next-v4-9075.4032021/09/245 年前
0.2.13-next-v4-9049.4022021/09/245 年前
0.2.13-next-v4-9019.4002021/09/235 年前

其他发布通道:next-v3 → 0.2.13-next-v3-2852.221,next-v3-new-tokens → 0.3.3-next-v3-new-tokens.58,next-v4 → 0.2.13-next-v4-9126.406。

关于 @contentful/forma-36-fcss 的常见问题

@contentful/forma-36-fcss 是什么?

Forma 36 FCSS

如何安装 @contentful/forma-36-fcss?

在项目目录运行 npm install @contentful/forma-36-fcss,或使用 pnpm add / yarn add / bun add。

@contentful/forma-36-fcss 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/contentful__forma-36-fcss 是否存在。

@contentful/forma-36-fcss 可以商用吗?

@contentful/forma-36-fcss 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@contentful/forma-36-fcss 的下载量有多少?

根据 npm 官方下载统计,@contentful/forma-36-fcss 在 2026/10/11 – 2026/11/09 这 30 天内被下载 62,269 次,日均约 2,076 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@contentful/forma-36-fcss 还在维护吗?

最新版本 0.3.5 发布于 2022/03/03(4 年前);至今共发布 279 个版本,其中过去 12 个月发布了 0 个;首次发布于 2018/12/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。