@featherk/styles

中文文档
0.19.4发布于 2026/11/14MITTypeScriptES Module零依赖近 30 天下载 2895

FeatherK shared style assets (CSS, fonts) for Kendo UI enhancements.

原始使用文档
文档目录9 节
  1. Contents
  2. Kendo UI Compatibility
  3. Maintaining The Theme
  4. Installation
  5. CSS Setup and Font Loading
  6. FeatherK Styles Integration
  7. Font Resolution
  8. Changelog
  9. License

@featherk/styles

FeatherK shared style assets (CSS, fonts) for Kendo UI enhancements.

Contents

  • css/ Pre-built vanilla CSS files
  • fonts/ Any webfont files referenced by the CSS/SCSS

Kendo UI Compatibility

The v8.2.0 assets are a Telerik ThemeBuilder export built on @progress/kendo-theme-default 8.2.0, which targets Kendo UI for Vue 6.4.1.

  • dist/v8.2.0/css/featherk.css is fully compiled and includes the Kendo theme. Do not also load @progress/kendo-theme-default.
  • dist/v8.2.0/scss/ imports @progress/kendo-theme-default/dist/all. If you compile the SCSS yourself, install @progress/kendo-theme-default@~8.2.0 (declared as an optional peer dependency).

Maintaining The Theme

Changes to v8.2.0 external styles and generated theme assets must follow the ThemeBuilder workflow. The v7.2.0 theme is legacy and closed for routine changes.

Installation

npm install @featherk/styles

CSS Setup and Font Loading

FeatherK Styles Integration

Use the @featherk/styles package to provide consistent styling and typography. The styles are imported in the main application entry point:

// src/main.ts
import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";

// FeatherK custom styles with Inter font family
import "@featherk/styles/dist/v8.2.0/css/featherk.css";

createApp(App).mount("#app");

Font Resolution

The FeatherK styles include the Inter font family with automatic font loading. The CSS file contains font-face declarations that use relative paths:

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  /* Additional font variants: Light, Bold, Italic, Medium, etc. */
}

How Font Loading Works

  1. Package Structure: The @featherk/styles package includes both CSS and font files:

    node_modules/@featherk/styles/
    ├── dist/
    │   ├── v7.2.0/
    │   │   ├── css/
    │   │   │   ├── feather-ks.css
    │   │   │   └── feather-k override.css
    │   │   └── fonts/
    │   │       ├── Inter-Regular.woff2
    │   │       ├── Inter-Bold.woff2
    │   │       ├── Inter-Light.woff2
    │   │       └── [other Inter variants]
    │   ├── v8.2.0/
    │   │   ├── css/
    │   │   │   └── featherk.css
    │   │   ├── fonts/
    │   │   │   ├── Inter-Regular.woff2
    │   │   │   ├── Inter-Bold.woff2
    │   │   │   ├── Inter-Light.woff2
    │   │   │   └── [other Inter variants]
    │   │   ├── scss/
    │   │   │   ├── _externalStyles.scss
    │   │   │   ├── _fonts.scss
    │   │   │   ├── _kendo.scss
    │   │   │   ├── _tokens.scss
    │   │   │   ├── index.scss
    │   │   │   └── [other .scss files]
    
  2. Relative Path Resolution: The CSS uses ../fonts/ paths that correctly resolve from /dist/v8.2.0/css/ to /dist/v8.2.0/fonts/

  3. Vite Processing:

    • Development: Vite serves fonts directly from node_modules with correct path resolution
    • Production: Vite copies font assets to the build output and updates CSS URLs automatically
  4. Browser Loading: Fonts load seamlessly without additional configuration - the Inter font family is applied throughout the application according to the FeatherK styles.


Changelog

Release history for all @featherk/* packages is maintained in a single CHANGELOG.md.

License

FeatherK-authored styles are licensed under MIT. The bundled Inter fonts retain their SIL Open Font License 1.1; the package's MIT license does not replace it.

The complete Inter copyright and OFL notice is included in the published package at dist/licenses/Inter-OFL.txt. See the Inter notice and upstream Inter license. Preserve this notice when redistributing the bundled fonts with an application.

This notice reproduces the current upstream Inter license. Verify the provenance and any additional notices of the exact font releases supplied with the ThemeBuilder exports before release; adding it does not audit font metadata or establish redistribution rights for other third-party theme material.

版本与发布记录

@featherk/styles 共发布 118 个版本,首次发布于 2025/10/23;过去 12 个月发布了 108 个版本。

版本发布日期距今
0.19.4latest2026/11/14今天
0.19.32026/11/113 天前
0.19.22026/11/058 天前
0.19.12026/10/3114 天前
0.19.02026/10/2717 天前
0.18.12026/10/2421 天前

关于 @featherk/styles 的常见问题

@featherk/styles 是什么?

FeatherK shared style assets (CSS, fonts) for Kendo UI enhancements.

如何安装 @featherk/styles?

在项目目录运行 npm install @featherk/styles,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:vue(^3.5.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@featherk/styles 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@featherk/styles 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@featherk/styles 可以商用吗?

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

@featherk/styles 的下载量有多少?

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

@featherk/styles 还在维护吗?

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