33 Star 88 Fork 18

老狼 / vusui-css

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Vusui-css 样式库

免除开发者繁复的手写 CSS 样式。

使用文档

使用包管理器

# 选择一个你喜欢的包管理器

# yarn
$ yarn add @vusui/css

# npm
$ npm install @vusui/css --save

# pnpm
$ pnpm install @vusui/css

全局使用

// main.ts
import { createApp } from "vue";

// 全部样式
import "@vusui/css/lib/style.css";

// 移动端(H5)专用样式(无自适应)
import "@vusui/css/lib/mobile.css";

// 精简版样式
import "@vusui/css/lib/lite.css";

// uni-app、小程序版样式
import "@vusui/css/lib/uni.css";

// 指定样式
import "@vusui/css/lib/margin.css";

const app = createApp({});
app.mount("#app");

浏览器直接引入

直接通过浏览器的 HTML 标签导入 vusui-css,然后就可以使用 Vusui-css 样式库了。

根据不同的 CDN 提供商有不同的引入方式, 我们在这里以 unpkgjsDelivr 举例。

unpkg

<head>
  <!-- 引入全部样式 -->
  <link rel="stylesheet" href="//unpkg.com/@vusui/css/lib/style.css" />
  <!-- 引入移动端样式 -->
  <link rel="stylesheet" href="//unpkg.com/@vusui/css/lib/mobile.css" />
  <!-- 引入精简版样式 -->
  <link rel="stylesheet" href="//unpkg.com/@vusui/css/lib/lite.css" />
  <!-- 引入指定样式 -->
  <link rel="stylesheet" href="//unpkg.com/@vusui/css/lib/flex.css" />
</head>

jsDelivr

<head>
  <!-- 引入全部样式 -->
  <link
    rel="stylesheet"
    href="//cdn.jsdelivr.net/npm/@vusui/css/lib/style.css"
  />
  <!-- 引入移动端样式 -->
  <link
    rel="stylesheet"
    href="//cdn.jsdelivr.net/npm/@vusui/css/lib/mobile.css"
  />
  <!-- 引入精简版样式 -->
  <link
    rel="stylesheet"
    href="//cdn.jsdelivr.net/npm/@vusui/css/lib/lite.css"
  />
  <!-- 引入指定样式 -->
  <link
    rel="stylesheet"
    href="//cdn.jsdelivr.net/npm/@vusui/css/lib/flex.css"
  />
</head>
MIT License Copyright (c) 2017-present Vusui Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

让WEB前端开发更简单、灵活、便捷! 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
CSS
1
https://gitee.com/vusui/vusui-css.git
git@gitee.com:vusui/vusui-css.git
vusui
vusui-css
vusui-css
master

搜索帮助