Using UIGG
get UIGG
download zip
You can download UIGG from the official website
download
download design template
We have prepared the design specification of rapid prototyping for designers
Adobe XD
figma
get gitHub
You can get UIGG from gitHub (Click the code block to copy it)
//github.com/mixice/uigg.git
gitHub
get npm
You can get UIGG from npm
npm i uigg
Add style module
import 'uigg/uigg.css'
Add javascript module
import 'uigg'
quote
You also refer to files directly from the web
CDN
responsive rule
PC rule
.main defines the center of the content area, the maximum width is 1300px , add the class to the DOM
class="main"
mobile rule
.mobile defines the center of the content area, the maximum width is 640px , add the class to the DOM
class="mobile"
unit conversion
UIGG uses rem as the response unit, and the calculation rule is 100px = 1rem
layout preset
basic
Add the class to the DOM
class="block"
class="cover"
class="contain"
class="center"
class="clear"
class="hide"
class="show"
class="hide-important"
class="show-important"
class="single"
class="only-web"
class="only-mob"
class="float-left"
class="float-right"
class="float-left-important"
class="float-right-important"
class="flex"
class="flex-auto"
class="flex-column"
class="full"
class="full-device"
class="transition"
absolute
Add the class to the DOM
class="absolute"
class="absolute-center"
class="absolute-left"
class="absolute-left-center"
class="absolute-right"
class="absolute-right-center"
class="absolute-top"
class="absolute-top-left"
class="absolute-top-right"
class="absolute-top-center"
class="absolute-bottom"
class="absolute-bottom-left"
class="absolute-bottom-right"
class="absolute-bottom-center"
class="fixed"
class="fixed-center"
class="fixed-left"
class="fixed-left-center"
class="fixed-right"
class="fixed-right-center"
class="fixed-top"
class="fixed-top-left"
class="fixed-top-right"
class="fixed-top-center"
class="fixed-bottom"
class="fixed-bottom-left"
class="fixed-bottom-right"
class="fixed-bottom-center"
load
If you need to wait for the page to be displayed after loading, add the code to the DOM
corner
Add the class to the DOM
class="corner"
Styles demo
.corner::after {border-width: 0 10px 10px 10px;border-bottom-color: white;top: -10px;}
shadow
Add the class to the DOM
class="shadow"
Styles demo
.shadow::after {background-color: white;box-shadow: 0 5px 10px white;}
adrift
Add the class to the DOM
class="adrift"
Styles demo
.adrift {filter: drop-shadow(0 10px 10px var(--color));}
return
Add the class to the DOM
class="return"
Preset function
alert
code
Add the javascript to the DOM
alert('alert')
If you need confirm, run confirm()
confirm('confirm')
effect display
view
alone
code
Add the javascript to the DOM
alone = $('element')
If you need manipulating character objects, must choose Z in $(document).ready()
$(function(){
$('element z')
})
effect display
view
anime
code
Add the class to the DOM
class="anime-spasm"
class="anime-rotate"
class="anime-beat-x"
class="anime-beat-y"
class="anime-beat-z"
class="anime-beat-r"
class="anime-fade-in"
class="anime-fade-in-down"
class="anime-fade-in-left"
class="anime-fade-in-right"
class="anime-fade-in-up"
class="anime-fade-out"
class="anime-fade-out-down"
class="anime-fade-out-left"
class="anime-fade-out-right"
class="anime-fade-out-up"
class="anime-bounce-in"
class="anime-bounce-in-down"
class="anime-bounce-in-left"
class="anime-bounce-in-right"
class="anime-bounce-in-up"
class="anime-bounce-out"
class="anime-bounce-out-down"
class="anime-bounce-out-left"
class="anime-bounce-out-right"
class="anime-bounce-out-up"
class="anime-flip-in-x"
class="anime-flip-in-y"
class="anime-flip-out-x"
class="anime-flip-out-y"
class="anime-zoom-in"
class="anime-zoom-out"
class="anime-zoom-in-enlarge"
class="anime-zoom-out-enlarge"
class="anime-shrink-in"
class="anime-shrink-out"
class="anime-shrink-in-enlarge"
class="anime-shrink-out-enlarge"
If you want the some effects, add the class to the DOM
class="infinite"
class="alternate"
class="reverse"
effect display
view
clue
code
Add the attribute to the DOM
title=""
effect display
view
cookie
code
Save cookies, add the javascript to the DOM
setCookie('name','value','time')
Get cookies, add the javascript to the DOM
getCookie('name')
effect display
view
copy
Warning: This function can work normally only after obtaining user clipboard authorization or under the https security domain
code
Add the attribute to the DOM
copy-val
copy-btn
If you need more than one, set different values for different groups
copy-val="copy1"
copy-btn="copy1"
If you need select copy, Add the class to the button
class="copy-select"
effect display
view
countdown
code
Add the code to the DOM
00
00
00
00
Add the javascript to the DOM
countDate = '0000/00/00 00:00:00'
countdown()
effect display
view
disable
code
If you need to prevent users from viewing your code, add the function to the DOM
disable()
view
drop
code
Add the code to the DOM
If you need to add a submenu, just add drop-list to li , you can have unlimited sets of dolls
effect display
view
empty
code
Add the code to the DOM
You can also customize the content, add the code to the DOM
text
If vertical arrangement is required, add DOM around the content
text
effect display
view
fold
code
Add the code to the DOM
title
article
If you need to expand all by default, you only need to add the show attribute to the fold
show
effect display
view
font
web font
Add the class to the DOM
class="font-aclonica"
class="font-aller"
class="font-amaranth"
class="font-avenir"
class="font-clarendon"
class="font-din"
class="font-encode"
class="font-geo"
class="font-gotham"
class="font-lat"
class="font-montserrat"
class="font-moto"
class="font-museo"
class="font-neo"
class="font-overpass"
class="font-philosopher"
class="font-portada"
class="font-raleway"
class="font-read"
class="font-renault"
class="font-roboto"
class="font-santander"
class="font-steel"
class="font-tanseek"
class="font-ubuntu"
Set font-family in CSS, because UIGG uses UIGG fonts by default, you maybe need !important
font-family: 'aclonica'
font-family: 'aller'
font-family: 'amaranth'
font-family: 'avenir'
font-family: 'clarendon'
font-family: 'din'
font-family: 'encode'
font-family: 'geo'
font-family: 'gotham'
font-family: 'lat'
font-family: 'montserrat'
font-family: 'moto'
font-family: 'museo'
font-family: 'neo'
font-family: 'overpass'
font-family: 'philosopher'
font-family: 'portada'
font-family: 'raleway'
font-family: 'read'
font-family: 'renault'
font-family: 'roboto'
font-family: 'santander'
font-family: 'steel'
font-family: 'tanseek'
font-family: 'ubuntu'
Webfont is an independent element, you can introduce it directly into your styles
@import url('//ui.gg/lib/font/font.css');
CDN
@import url('//cdn.jsdelivr.net/npm/uigg/font/font.min.css');
local font
Add the class to the DOM (Local font is only valid on the computer side)
class="font-uigg"
class="font-yahei"
class="font-jhenghei"
class="font-nsimsun"
class="font-kaiti"
class="font-lisu"
class="font-youyuan"
class="font-fangsong"
class="font-xingkai"
class="font-xinwei"
class="font-arial"
class="font-tahoma"
effect display
view
fullscreen
code
Add the class to the DOM
class="fullscreen"
effect display
view
hop
code
Add the class to the DOM, if you need align right or align bottom, add attribute right or bottom or center to hop
link
link
link
link
effect display
view
horn
code
Add the class to the DOM, if you need align left, add attribute left to horn
effect display
view
language
To use the language plug-in, you need to create lang/ directory, create language json file in the directory, For example, English: en.json
set language cookie
Add the attribute to the DOM, json is the json file name in the lang/
lang-set="json"
get language cookie
Add the javascript to the DOM
getCookie('lang')
language mark
Add the attribute to the DOM, lang-name is the structure in json, lang to html , lang-placeholder to placeholder , lang-value to value , lang-content to content
lang="lang-name"
lang-placeholder="lang-name"
lang-value="lang-name"
lang-content="lang-name"
effect display
view
mix
code
Add the class to the DOM
class="mix-abrazine"
class="mix-hue"
class="mix-multiply"
class="mix-screen"
class="mix-luminosity"
class="mix-difference"
class="mono"
class="mono-click"
effect display
view
notice
code
Add the code to the DOM
effect display
view
notify
code
Run notify()
notify('notify')
If you need align bottom, add second value
notify('notify','bottom')
If you need auto close, add third value
notify('notify','bottom','5000')
effect display
view
pop
You can use the pop attribute to quickly bind buttons and pop
pop center code
Add the code to the DOM
title
article
previous
cancel
submit
confirm
pop choice code
Add the code to the DOM
title
article
previous
cancel
submit
confirm
pop sider code
Add the code to the DOM, if you need pop align right, add right attribute to pop
title
article
effect display
view
random
Warning: When the defined element is missing the default value, the remote value will be obtained automatically
code
Add the attribute to the DOM, When the element is img will be given src and ,Other elements will be given background-image
uigg="img"
uigg="product"
uigg="bg"
uigg="avatar"
uigg="color"
If you need random text, add the attribute to the DOM
uigg="title"
uigg="txt"
If you need emot, add the attribute to the DOM
uigg="emot"
effect display
view
rate
code
Add the code to the DOM, value is the default star
If you need edit it, add the edit attribute to the rate
edit
If you need other styles, you can add heart and thumb and circular to change the appearance of the rate
heart
thumb
circular
effect display
view
recording
code
Add the class to the DOM
class="recording"
effect display
view
reminder
code
Add the code to the DOM
effect display
view
smooth
code
Add the code to the DOM
effect display
view
step
code
Add the code to the DOM
If you need flex vertical arrangement, add the column attribute to the step
column
effect display
view
tab
code
Add the code to the DOM
one
two
three
one
two
three
effect display
view
table
code
Add the code to the DOM
classify
classify
classify
classify
list
content
content
content
list
content
content
content
list
content
content
content
list
content
content
content
effect display
view
tip
code
Run tip()
tip('tip')
effect display
view
title
code 1
Add the code to the DOM
code 2
Add the code to the DOM
code 3
Add the code to the DOM
effect display
view
toggle
code
Add the code to the DOM
effect display
view
top
code
Add the class to the DOM
class="top"
If you need a separate button, add the class to the DOM
class="top btn"
effect display
view
Mobile terminal
name
name code
Add the code to the DOM
name
left name code
Add the code to the DOM
name
logo name code
Add the code to the DOM
UIGG
search name code
Add the code to the DOM
effect display
view
muzak
code
Add the code to the DOM
If you need pause by default, add the pause attribute to the music
pause
effect display
view
touch
Warning: Touch is only available on the mobile terminal
code
Add the code to the DOM
class="touch-left"
class="touch-right"
class="touch-up"
class="touch-down"
class="touch-all"
effect display
view
Internal components
admin (Preview)
admin general template
We provide a common function management interface
login
admin
chat (Preview)
chat general template
We provide a common function management interface
view
External components
swiper
You can go to swiper to see more parameters. UIGG only provides a few common models
Swiper API
about loop
Amount of slides in loop mode should be at least 2x of slidesPerView value
code
Add the style and javascript to the head
CDN
swiper banner code
Add the code to the DOM
swiper list code
Add the code to the DOM
swiper vertical code
Add the code to the DOM
swiper gallery code
Add the code to the DOM
swiper animate code
Add the code to the DOM
swiper lug code
Add the code to the DOM
swiper hash code
Add the code to the DOM
swiper scrollbar code
Add the code to the DOM
swiper coverflow code
Add the code to the DOM
swiper parallax code
Add the code to the DOM
effect display
view
editor
You can go to tiny to see more parameters. UIGG only provides a few common models
tiny API
code
Add the javascript to the head
CDN
Select different editors according to requirements,Add the class to the DOM
class="editor"
class="editor-simple"
class="editor-upload"
class="editor-all"
uigg upload
If you need upload image, you must download upload.zip to to your website directory and configure php
download
effect display
view
General library
color
CSS functions
UIGG preset some common color functions
type
effect
function
color
background
purity
var(--fff)
co-fff
bg-fff
var(--f7) co-f7 bg-f7
var(--eee) co-eee bg-eee
var(--ddd) co-ddd bg-ddd
var(--ccc) co-ccc bg-ccc
var(--bbb) co-bbb bg-bbb
var(--999) co-999 bg-999
var(--666) co-666 bg-666
var(--333) co-333 bg-333
var(--222) co-222 bg-222
var(--111) co-111 bg-111
var(--000) co-000 bg-000
color
var(--brown)
co-brown
bg-brown
var(--red) co-red bg-red
var(--pink) co-pink bg-pink
var(--purple) co-purple bg-purple
var(--sapphire) co-sapphire bg-sapphire
var(--blue) co-blue bg-blue
var(--cyan) co-cyan bg-cyan
var(--green) co-green bg-green
var(--lime) co-lime bg-lime
var(--yellow) co-yellow bg-yellow
var(--orange) co-orange bg-orange
var(--tomato) co-tomato bg-tomato
type
effect
function
effect
function
transparent
var(--000-1)
var(--fff-1)
var(--000-2)
var(--fff-2)
var(--000-3)
var(--fff-3)
var(--000-4)
var(--fff-4)
var(--000-5)
var(--fff-5)
var(--000-6)
var(--fff-6)
var(--000-7)
var(--fff-7)
var(--000-8)
var(--fff-8)
var(--000-9)
var(--fff-9)
ico
UIGG iconfont
UIGG iconfont is a library free licensed font families and api for conveniently using the fonts via iconfont, img, unicode, symbol and css. We also provide delightful, beautifully crafted icons for common actions and items. Download them for use in your digital products for Android, iOS, and web
view
attribute
independent attribute
Common available attributes in UIGG
attribute definition
uigg Exclusive function call of uigg framework
edit Make components editable
value Sets the current value of the component
max Set the maximum value of the component
min Set the minimum value of the component
step Set the step value of the component
pause Set media pause
play Set media play
column Flex vertical arrangement
disabled Set component disable
selected Disable selection
cover Object cover fills container
contain Object contain fills container
center Set object centered content
left Set object left alignment
right Set object right alignment
top Set object top alignment
bottom Set object bottom alignment
show Force display object
hide Force hidden objects
copy-val Copy trigger value
copy-btn Copy trigger button
lang Paragraph translation
lang-set Language cookie settings
lang-placeholder Placeholder translation
lang-value Value translation
lang-content Content translation
label
label quick reference
UIGG exclusive label definition
label definition
Second tag, inheriting the underline of HTML, At the same time, it can serve as a support for an flex box
Third tag, inheriting the underline of HTML, seconds in time component
Icon definition
Close button and close layer
Lonely element
Global toggle element
Minute in time component
Day in time component
Hour in time component
Year in time component
Prompt text
lib
emot
Library related connections, from 1.svg to 100.svg
//ui.gg/lib/emot/1.svg
CDN
//cdn.jsdelivr.net/npm/uigg/emot/1.svg
font
Library related connections
//ui.gg/lib/font/font.css
CDN
//cdn.jsdelivr.net/npm/uigg/font/font.min.css
ico
Library related connections
//ui.gg/lib/ico/ico.css
//ui.gg/lib/ico/ico.js
//ui.gg/lib/ico/ico.json
//ui.gg/lib/ico/ico.woff2
//ui.gg/lib/ico/ico.zip
CDN
//cdn.jsdelivr.net/npm/uigg/ico/ico.min.css
//cdn.jsdelivr.net/npm/uigg/ico/ico.min.js
//cdn.jsdelivr.net/npm/uigg/ico/ico.json
//cdn.jsdelivr.net/npm/uigg/ico/ico.woff2
Library related connections, category name and icon name, for example:
//ui.gg/lib/ico/svg/brand/uigg.svg
CDN
//cdn.jsdelivr.net/npm/uigg/ico/svg/brand/uigg.svg
editor
Library related connections
//ui.gg/lib/editor/editor.js
//ui.gg/lib/editor/upload.zip
CDN
//cdn.jsdelivr.net/npm/uigg/editor/editor.min.js
//cdn.jsdelivr.net/npm/uigg/editor/upload.zip
jquery
Library related connections
//ui.gg/lib/jquery.min.js
CDN
//cdn.jsdelivr.net/npm/jquery
animejs
Library related connections
//ui.gg/lib/anime.min.js
CDN
//cdn.jsdelivr.net/npm/animejs
swiper
Library related connections
//ui.gg/lib/swiper-bundle.min.css
//ui.gg/lib/swiper-bundle.min.js
CDN
//cdn.jsdelivr.net/npm/swiper/swiper-bundle.min.css
//cdn.jsdelivr.net/npm/swiper/swiper-bundle.min.js
media
Library related connections
//ui.gg/lib/media/aeolian.mp3
//ui.gg/lib/media/audio.mp3
//ui.gg/lib/media/bounce.mp3
//ui.gg/lib/media/boxing.mp3
//ui.gg/lib/media/brilliant.mp3
//ui.gg/lib/media/button.mp3
//ui.gg/lib/media/ding.mp3
//ui.gg/lib/media/drip.mp3
//ui.gg/lib/media/drum.mp3
//ui.gg/lib/media/dulcimer.mp3
//ui.gg/lib/media/error.mp3
//ui.gg/lib/media/notify.mp3
//ui.gg/lib/media/right.mp3
//ui.gg/lib/media/wave.mp3
//ui.gg/lib/media/video.mp4
//ui.gg/lib/media/loop.mp4
CDN
//cdn.jsdelivr.net/npm/uigg/media/aeolian.mp3
//cdn.jsdelivr.net/npm/uigg/media/audio.mp3
//cdn.jsdelivr.net/npm/uigg/media/bounce.mp3
//cdn.jsdelivr.net/npm/uigg/media/boxing.mp3
//cdn.jsdelivr.net/npm/uigg/media/brilliant.mp3
//cdn.jsdelivr.net/npm/uigg/media/button.mp3
//cdn.jsdelivr.net/npm/uigg/media/ding.mp3
//cdn.jsdelivr.net/npm/uigg/media/drip.mp3
//cdn.jsdelivr.net/npm/uigg/media/drum.mp3
//cdn.jsdelivr.net/npm/uigg/media/dulcimer.mp3
//cdn.jsdelivr.net/npm/uigg/media/error.mp3
//cdn.jsdelivr.net/npm/uigg/media/notify.mp3
//cdn.jsdelivr.net/npm/uigg/media/right.mp3
//cdn.jsdelivr.net/npm/uigg/media/wave.mp3
//cdn.jsdelivr.net/npm/uigg/media/video.mp4
//cdn.jsdelivr.net/npm/uigg/media/loop.mp4
images
Library related connections
//ui.gg/lib/images/avatar/
//ui.gg/lib/images/bg/
//ui.gg/lib/images/color/
//ui.gg/lib/images/img/
//ui.gg/lib/images/product/
qrcode
Library related connections
//ui.gg/lib/qr/mixice.com.svg
//ui.gg/lib/qr/mssay.com.svg
//ui.gg/lib/qr/ui.gg.svg
//ui.gg/lib/qr/wechat.svg
//ui.gg/lib/qr/wechat-mssay.svg