x.ui
getting started
3,019
6
| Install | |
|---|---|
npm install x.ui |
|
| Latest Version: | 10.0.1 |
| Vue: | 2 |
| License: | mit |
| Last Updated: | Jan 7, 2023 |
| Links: | GitHub · npm |
Maintainer: scherzinger
x.ui.10
getting started
install with npm
npm i x.ui --save
import x.ui in your [project].scss
@import '~x.ui/scss/x.ui'
create your [project-config].scss
this file only contains the needed parameters for your interface. import your config file in this order:
@import '~x.ui/scss/x.ui'
your parameters overwrite the excisting definitions in _xui-config.scss. Go directly to scss/_xui-config.scss or explore all config-options in the documentation.
update x.ui 9
in x.ui there are several breaking changes. please follow this instruction to update to x.ui 10
`~x.ui/src/x.ui` // old
`~x.ui/scss/x.ui` // new
1. update mixins and funcion references
all functions and mixins are kebab-case now. Also some names are simplified for better convinience
- renamed
arrayMagic()toarray-magic() - renamed
getBreakpoint()tobp() - renamed
flattenColor()toflatten-color() - renamed
getColor()toget-color() - renamed
getSpace()toget-space() - renamed
setContrast()toset-contrast() - renamed
setHover()toset-hover() - renamed
shadeByContrast()toshade-by-contrast() - renamed
stripUnit()tostrip-unit() - renamed
systemColor()tosystem-color() - renamed
varColor()tovar-color() - renamed
nextBp()tonext-bp() - renamed
getBrightness()toget-brightness() - renamed
colorDifference()tocolor-difference() - renamed
colorPass()tocolor-pass() - renamed
colorMargin()tocolor-margin() - renamed
contrastRatio()tocontrast-ratio() - renamed
checkCompliance()tocheck-compliance() - renamed
findContrastLoop()tofind-contrast-loop() - renamed
brightnessDifference()tobrightness-difference() - renamed
set-map-breakpoints()toset-data-map-breakpoints() - renamed
macro-metrics()tometrics()
2. update config params
- changed
$base-weightto$base-font-weight - changed
$body-fontto$body-font-family - changed
$headings-fontto$headings-font-family - changed
$hover-shadingto$_set-hover-shading - changed
$xui-checkbox-config variables - changed
$xui-radio-config variables - rename
$divider-colorto$base-divider-color - rename
$divider-backgroundto$divider-color - rename
$divider-background-invertto$divider-color-invert - rename
$nav-link-selected#to$nav-link-active#
3. update modifier classes
all modifier classes now have the same prefix is-
- rename
.has-margin#to.is-margin# - rename
.has-padding#to.is-padding# - rename
.has-radius#to.is-radius# - rename
.has-height#to.is-height# - rename
.has-min-height#to.is-min-height# - rename
.has-width#to.is-width# - rename
.has-min-width#to.is-min-width# - rename
.is-borderedto.is-border - change
.no-paddingto.is-padding-0 - change
.has-padding[-side]to.has-padding[-side]-3 - change
.has-padding[-side]-smallestto.has-padding[-side]-1 - change
.has-padding[-side]-smallto.has-padding[-side]-2 - change
.has-padding[-side]-bigto.has-padding[-side]-5 - change
.no-marginto.is-margin-0 - change
.has-margin[-side]to.has-margin[-side]-3 - change
.has-margin[-side]-smallestto.has-margin[-side]-1 - change
.has-margin[-side]-smallto.has-margin[-side]-2 - change
.has-margin[-side]-bigto.has-margin[-side]-5
4. update changed class names
- rename
.flex-spacerto.flex-space - rename
.bumper-smallto.bumper.bumper_small - rename
.bumper-bigto.bumper.bumper_big - rename
.spacer-smallto.spacer.spacer_small - rename
.spacer-bigto.spacer.spacer_big - rename
.alert-smallto.alert.alert_small - rename
.alert-bigto.alert.alert_big - change
.is-visible#tois-block#oris-flex# - change
.is-raised#tois-elevated# - change
.is-lifted#tois-elevated# - change
.is-rounded#tois-radius# - change
.toolbarto.titlebar - change
.titleto.titlebar - change
.is-positioned#to.is-placed# - change
.img_responsiveto.img-responsive - change
.img_fullto.img-fullwidth - change
.bubbleto.tag - rename
.sliderto.range-slider
5. remove classes
- remove
.well-smalland.well-big - remove
.is-hidden-from# - remove
.btn_glow - remove
data-animateuse another animation library instead - remove
.pull
6. update markup
- change
.form-groupmarkup to<div class="field-group"> <label class="field-group__label">...</label> <input class="input" /> <p class="field-group__info">...</p> </div> <div class="field-group field-group_boolean"> <label class="field-group__label">field-group label</label> <input type="checkbox" /> </div> - change
.xui-checkboxmarkup to<div class="xui-checkbox"> <input type="checkbox"> <label class="xui-checkbox__label">...</label> </div> - change
.xui-radiomarkup to<div class="xui-radio"> <input type="radio"> <label class="xui-radio__label">...</label> </div> - change
.xui-togglemarkup to<div class="xui-toggle"> <input id="" type="checkbox"> <label for="" class="xui-toggle__label"> <div class="xui-toggle__switch"></div> ... </label> </div> - change
.navmarkup to<ul class="nav"> <li class="nav__item">...</li> <li class="nav__divider"></li> <li class="nav__item">...</li> </ul> - change
.dialog,.deck,.overlay,.toast,.snackbarmarkup to<div class="modal-wrapper"> <div class="modal"> <!-- whatever you want --> </div> </div> - change
.xui-accordionmarkup to<div class="xui-accordion"> <input id="" name="" type="radio"/> <label for="" class="xui-accordion__handle">...</label> <div class="xui-accordion__target">...</div> </div>
7. update grid markup
- change
data-flex-item="grow"todata-col="auto" - change
data-flex-item="grow-even"todata-col="auto" - change
data-flex-item="fit-self"todata-col="fit" - change
data-rowtodata-grid - remove all
is-prefixes fromdata-flexvalues - change breakpoint postfix from
-to@e.g.@sm - change
data-grid="is-small"todata-grid="small-gutter" - change
data-grid="default"todata-grid="default-gutter" - change
data-grid="is-center"todata-grid="center" - change
data-grid="is-end"todata-grid="end" - change
data-grid="is-start"todata-grid="start"
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Customize configuration
x.ui 9.x doc
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 10.0.1 | ^2.6.10 | mit | |
| 10.0.0 | ^2.6.10 | mit | |
| 9.1.3 | MIT | ||
| 9.1.2 | MIT | ||
| 9.1.1 | MIT | ||
| 9.1.0 | MIT | ||
| 9.0.8 | MIT | ||
| 9.0.7 | MIT | ||
| 9.0.6 | MIT | ||
| 9.0.5 | MIT | ||
| 9.0.4 | |||
| 9.0.3 | |||
| 9.0.1 | |||
| 9.0.0 | |||
| 7.0.1 | |||
| 7.0.0 | |||
| 6.0.1 | |||
| 6.0.0 | |||
| 5.0.0 | |||
| 4.0.0 | |||
| 3.0.3 | |||
| 3.0.2 | |||
| 3.0.0 | |||
| 2.4.2 | |||
| 2.4.1 | |||
| 2.4.0 | |||
| 2.3.0 | |||
| 2.2.1 | |||
| 2.1.1 | |||
| 2.0.0 |
Showing the latest 30 of 31. See every release on npm
Pre-releases (25)
| Version | Released | Vue | License |
|---|---|---|---|
| 10.0.0-beta.17 | ^2.6.10 | mit | |
| 10.0.0-beta.16 | ^2.6.10 | mit | |
| 10.0.0-beta.15 | ^2.6.10 | ||
| 10.0.0-beta.14 | ^2.6.10 | ||
| 10.0.0-beta.13 | ^2.6.10 | ||
| 10.0.0-beta.12 | ^2.6.10 | ||
| 10.0.0-beta.10 | ^2.6.10 | ||
| 10.0.0-beta.9 | ^2.6.10 | ||
| 10.0.0-beta.8 | ^2.6.10 | ||
| 10.0.0-beta.7 | ^2.6.10 | ||
| 10.0.0-beta.5 | ^2.6.10 | ||
| 10.0.0-beta.4 | ^2.6.10 | ||
| 10.0.0-beta.3 | ^2.6.10 | ||
| 10.0.0-beta.0 | ^2.6.10 | ||
| 8.0.0-beta.10 | |||
| 8.0.0-beta.9 | |||
| 8.0.0-beta.8 | |||
| 8.0.0-beta.7 | |||
| 8.0.0-beta.6 | |||
| 8.0.0-beta.5 | |||
| 8.0.0-beta.4 | |||
| 8.0.0-beta.3 | |||
| 8.0.0-beta.2 | |||
| 8.0.0-beta.1 | |||
| 8.0.0-beta.0 |