UNPKG

@linker-design-plus/linker-style

Version:

A package for linker design styles.

56 lines (35 loc) 1.27 kB
# linker-style This project is a package for `@linker-design/linker-style`, designed to provide a set of styles and components for use in various applications. ## Installation To install the package, use the following command: ``` pnpm install @linker-design/linker-style ``` ## Usage ### 方式一:使用编译后的CSS文件(推荐) 直接在项目中引入编译好的CSS文件: ```js // 在JavaScript/TypeScript中导入 import '@linker-design/linker-style/style/index.css'; ``` 或在HTML中直接引入: ```html <link rel="stylesheet" href="path/to/node_modules/@linker-design/linker-style/style/index.css"> ``` ### 方式二:使用Less文件(需要Less支持) 如果您的项目使用Less预处理器,可以直接导入源文件: ```less // 在Less文件中导入 @import '@linker-design/linker-style/index.less'; // 或者只导入特定组件样式 @import '@linker-design/linker-style/components/Button/index.less'; ``` ## 构建 如果需要修改样式并重新构建,请运行: ``` npm run build ``` ## Contributing If you would like to contribute to this project, please fork the repository and submit a pull request. ## License This project is licensed under the MIT License. See the LICENSE file for more details.