@gemeente-denhaag/card-news

中文文档
2.1.2发布于 2026/09/23EUPL-1.2TypeScriptESM + CJS零依赖构建来源已验证近 30 天下载 2752

News card with variations.

原始使用文档
文档目录25 节
  1. Introduction
  2. When to use
  3. Alternatives and related components
  4. Anatomy
  5. (Interactive) states
  6. Design properties
  7. Desktop
  8. Typography big card
  9. Typography small card
  10. Mobile
  11. Typography big card
  12. Colors
  13. Interactive states
  14. Structure
  15. Desktop big card
  16. Desktop small card
  17. Mobile big card
  18. Mobile small card
  19. Mobile
  20. Accessibility
  21. Content Guidelines
  22. Best practices
  23. Do's
  24. Don'ts
  25. References

News card

npm version

Introduction

A newcard is used to display a newsitem on another page.

When to use

A newscard is used in a group on an overview.

  • Images

Anatomy

A newscard consist of:

  1. Card
  2. Image
  3. Title
  4. Intro
  5. Icon

(Interactive) states

The newscard contains the states normal, hover and focus.

Design properties

Desktop

Typography big card

  • Title: Mix/2xl/700
  • Intro: Sans/md/400

Typography small card

  • Title: Mix/lg/700
  • Intro: Sans/md/400

Mobile

Typography big card

  • Title: Mix/2xl/700
  • Intro: Sans/md/400

Colors

  • Title: Green/3
  • Controls: see the icon-only button
  • Border: 1px grey/2

Interactive states

  • Hoverstate: box shadow 0px 4px 16px 0px black 16%
  • Focus state: container border color Ocher/5

Structure

Desktop big card

  • Card: margin 16px
  • Image: padding-right: 64px
  • Texts: align-center
  • Padding: 8px
  • Icon: Padding-left 8px
  • Image aspect ratio 4:3

Desktop small card

  • Card: margin 16px
  • Text: margin 12px
  • Padding-bottom 8px
  • Image aspect ratio 16:9

Mobile big card

  • Image: padding-bottom 8px
  • Texts: padding 16px
  • Image aspect ratio 4:3

Mobile small card

  • Card: margin 16px
  • Text: margin 12px
  • Padding-bottom 8px
  • Image aspect ratio 4:3

Mobile

  • Image: padding-bottom 16px
  • Controls: button padding-left and padding-right 12px
  • Indicator: width 32px, height 3px, padding-right 4px, padding-bottom 16px

Accessibility

Content Guidelines

Be concise in the title and intro lenght. The intro should be no longer than 1 sentence.

Best practices

Do's

News card should:

  • ave an appealing image that refers or conlude the message of the news item
  • ave a clear and consice title
  • ave short and readable intro

Don'ts

News cards should not

  • Have more than 2 sentences intro.
  • Be inserted seperatly on a page, but always be showed in a group. At the end of a page to support referral reading, or the main page has the main purpose to show news items.

References

版本与发布记录

@gemeente-denhaag/card-news 共发布 284 个版本,首次发布于 2022/03/30;过去 12 个月发布了 3 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.1.2latest2026/09/231 个月前
2.1.12026/07/273 个月前
2.1.02026/06/294 个月前
2.0.12025/09/151.2 年前
2.0.02025/07/221.3 年前
1.1.02025/07/101.3 年前

关于 @gemeente-denhaag/card-news 的常见问题

@gemeente-denhaag/card-news 是什么?

News card with variations.

如何安装 @gemeente-denhaag/card-news?

在项目目录运行 npm install @gemeente-denhaag/card-news,或使用 pnpm add / yarn add / bun add。

@gemeente-denhaag/card-news 支持 TypeScript 吗?

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

@gemeente-denhaag/card-news 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@gemeente-denhaag/card-news 可以商用吗?

@gemeente-denhaag/card-news 使用 EUPL-1.2 许可。声明的许可为 EUPL-1.2,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@gemeente-denhaag/card-news 的下载量有多少?

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

@gemeente-denhaag/card-news 还在维护吗?

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