@felix-health/felix-app-tailwind-design-system

中文文档
2.5.1发布于 2026/11/05ISCCommonJS零依赖近 30 天下载 6408

Tailwind CSS plugin for Felix's design system

原始使用文档
文档目录5 节
  1. Usage
  2. Tailwind Viewer
  3. Publishing a new version
  4. If you get an error about dependency being too new
  5. Other notes

Felix App Tailwind Design System

A TailwindCSS preset for our base styles and design tokens at Felix

Usage

If you don't already have a tailwind.config.js file in your project root, generate one with npx tailwindcss init

Run npm i @felix-health/felix-app-tailwind-design-system to install the preset in your project

Then add the preset to your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  // ...
  presets: [require('@felix-health/felix-app-tailwind-design-system')],
};

This preset runs the tailwind config in JIT mode. This means that you must make sure to configure your content option in your tailwind.config.js file with all of your template files so that JIT mode can know which files to scan:

module.exports = {
  // These paths are just examples, customize them to match your project structure
  content: ['./public/**/*.html', './src/**/*.{js,jsx,ts,tsx,vue}'],
  // ...
  presets: [require('@felix-health/felix-app-tailwind-design-system')],
};

We also add the prefix of fx- to every class via the prefix key by default.

You can continue to add other configurations in your tailwind.config.js file for things like important, etc...

Tailwind Viewer

If you want a visual representation of what classes the preset by itself generates, we use tailwind-config-viewer.

The tailwind config viewer is available at: https://tailwind-config-viewer.felixforus.ca

To run locally, run npm install and then npm run tailwind-config-viewer from the root of the project. This uses the tailwind.config.js file to generate the styles from the preset.

Publishing a new version

  • Ensure you bump the package version in package.json
  • Merge your changes into the master branch
  • Follow the steps here to create a new release. On publish, a github action will push the release to npm

Note*

To consume your changes in the vue-components repository: npm install @felix-health/felix-app-tailwind-design-system@latest

If you get an error about dependency being too new

You can bypass the minimum release age requirement this way:

npm config set min-release-age 0
npm install <package-name>
# Then set it back
npm config set min-release-age <original value in .npmrc>

Other notes

Learn more about TailwindCSS presets here: https://tailwindcss.com/docs/presets

版本与发布记录

@felix-health/felix-app-tailwind-design-system 共发布 35 个版本,首次发布于 2021/08/20;过去 12 个月发布了 9 个版本。

版本发布日期距今
2.5.1latest2026/11/058 天前
2.5.02026/09/122 个月前
2.4.32026/05/076 个月前
2.4.22026/04/286 个月前
2.4.12026/04/137 个月前
2.4.02026/02/109 个月前

关于 @felix-health/felix-app-tailwind-design-system 的常见问题

@felix-health/felix-app-tailwind-design-system 是什么?

Tailwind CSS plugin for Felix's design system

如何安装 @felix-health/felix-app-tailwind-design-system?

在项目目录运行 npm install @felix-health/felix-app-tailwind-design-system,或使用 pnpm add / yarn add / bun add。

@felix-health/felix-app-tailwind-design-system 支持 TypeScript 吗?

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

@felix-health/felix-app-tailwind-design-system 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@felix-health/felix-app-tailwind-design-system 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js 24.22.2。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@felix-health/felix-app-tailwind-design-system 可以商用吗?

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

@felix-health/felix-app-tailwind-design-system 的下载量有多少?

根据 npm 官方下载统计,@felix-health/felix-app-tailwind-design-system 在 2026/10/15 – 2026/11/13 这 30 天内被下载 6,408 次,日均约 214 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@felix-health/felix-app-tailwind-design-system 还在维护吗?

最新版本 2.5.1 发布于 2026/11/05(8 天前);至今共发布 35 个版本,其中过去 12 个月发布了 9 个;首次发布于 2021/08/20。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。