@avenirs-esr/avenirs-dsav

中文文档
0.1.378发布于 2026/11/06TypeScriptESM + CJS构建来源已验证近 30 天下载 6412

DSAV is the deisgn system for AVENIR(s) projects and consists of a Vue 3 project in the form of a component library. It also provides an utility-first CSS framework for handling components styling.

原始使用文档
文档目录12 节
  1. What is DSAV?
  2. Why DSAV?
  3. Complete documentation
  4. Storybook demos
  5. Installation
  6. Using SCSS Mixins
  7. Available Mixins
  8. Contributing
  9. Deploying a new npm version
  10. Commit conventions
  11. ARIA Authoring Practices Guide
  12. Projects using DSAV

Avenir(s) DSAV

What is DSAV?

DSAV is the deisgn system for AVENIR(s) projects and consists of a Vue 3 project in the form of a component library. It also provides an utility-first CSS framework for handling components styling.

The code is open and available on GitHub

Why DSAV?

The AVENIR(s) program has chosen its technical stack for the front end, based on Vue 3.

The AVENIR(s) program needs its own identity, hence this design system it will use on all its frontend projects.

Complete documentation

You can find the complete documentation on our github page.

Storybook demos

You can find examples of use and demo of the design system components on our github page.

Installation

In your project, run npm install @ævenirs-esr/avenirs-dsav.

In order to make the style from DSAV work in your project, make sure to import the main DSAV style in your main.ts with the following : import '@avenirs-esr/avenirs-dsav/style.css'.

Using SCSS Mixins

DSAV provides SCSS mixins that you can use in your project. To use them, import the mixins file in your Vue component's <style> block:

<style lang="scss" scoped>
@use '@avenirs-esr/avenirs-dsav/mixins' as dsav;

.my-component {
  // Use responsive breakpoint mixins
  @include dsav.min-width(md) {
    width: 17.25rem;
  }

  @include dsav.max-width(lg) {
    padding: 1rem;
  }
}
</style>

Available Mixins

Responsive Breakpoints

  • @include dsav.min-width($size) - Apply styles for screens larger than the breakpoint
  • @include dsav.max-width($size) - Apply styles for screens smaller than the breakpoint

Available breakpoints:

  • sm - 36rem (576px)
  • md - 48rem (768px)
  • lg - 64rem (1024px)
  • xl - 90rem (1440px)

Example:

@use '@avenirs-esr/avenirs-dsav/mixins' as dsav;

.responsive-card {
  width: 100%;
  
  @include dsav.min-width(md) {
    width: 50%;
  }
  
  @include dsav.min-width(lg) {
    width: 33.33%;
  }
}

Contributing

Deploying a new npm version

When your development is successfully merged in develop or main, you can run the job Release new version to npm and select the type of version bump : patch, minor or release.

Commit conventions

This repository uses Commitlint to enforce consistent and conventional commit messages.

This setup extends the conventional commit configuration (@commitlint/config-conventional) and adds custom rules:

✅ Allowed Commit Types

The following commit types are allowed:

  • feat – A new feature
  • fix – A bug fix
  • docs – Documentation changes
  • refactor – Code refactoring (no feature or bug fix)
  • test – Adding or modifying tests
  • build – Changes to build tools or dependencies
  • revert – Revert a previous commit

🔠 Commit Message Rules

RuleDescription
type-enumOnly allows the types listed above
type-caseCommit type must be lowercase
type-emptyCommit type must not be empty
subject-caseNo restriction on subject casing (rule is disabled for flexibility)

✅ Example Commit Messages

feat: add user login functionality
fix: handle null pointer in dashboard
docs: update installation guide

ARIA Authoring Practices Guide

When developing components, please refer to the ARIA Authoring Practices Guide to ensure accessibility compliance. You can find design patterns and best practices for implementing accessible web components.

Projects using DSAV

版本与发布记录

@avenirs-esr/avenirs-dsav 共发布 368 个版本,首次发布于 2025/09/19;过去 12 个月发布了 299 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.1.378latest2026/11/061 天前
0.1.3772026/11/061 天前
0.1.3762026/11/025 天前
0.1.3752026/11/025 天前
0.1.3742026/10/308 天前
0.1.3732026/10/308 天前

关于 @avenirs-esr/avenirs-dsav 的常见问题

@avenirs-esr/avenirs-dsav 是什么?

DSAV is the deisgn system for AVENIR(s) projects and consists of a Vue 3 project in the form of a component library. It also provides an utility-first CSS framework for handling components styling.

如何安装 @avenirs-esr/avenirs-dsav?

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

@avenirs-esr/avenirs-dsav 支持 TypeScript 吗?

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

@avenirs-esr/avenirs-dsav 支持 ESM 还是 CommonJS?

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

@avenirs-esr/avenirs-dsav 需要什么版本的 Node.js?

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

@avenirs-esr/avenirs-dsav 可以商用吗?

@avenirs-esr/avenirs-dsav 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@avenirs-esr/avenirs-dsav 的下载量有多少?

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

@avenirs-esr/avenirs-dsav 还在维护吗?

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