GithubHelp home page GithubHelp logo

vusui / vusui-css Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 5.0 773 KB

让WEB前端开发更简单、灵活、便捷!

Home Page: https://vusui.com

License: MIT License

JavaScript 0.60% HTML 0.19% CSS 1.42% Vue 0.11% TypeScript 1.78% SCSS 95.90%

vusui-css's Introduction

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>

vusui-css's People

Contributors

uimom avatar vusui avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.