Theme
The following theme values are added with the preset:
- breakpoints added the media queries for hover
hover-noneandhover-hover. - font-size for better control on small font sizes:
text-15added with~15px,text-14added with~14px,text-13added with~13px,text-12added with~12px,text-11added with~11px,text-10added with~10px. - colors and a default
primarycolor stack to be replaced with your primary color. - z-index additional z-index used by components, use
z-belowfor z-index below content, usez-contentfor z-index above content,z-abovefor z-index above pupup content, usez-lastfor z-index above anything. - inset additional inset, use
top-100left-100bottom-100right-100to position with the value100%. - border-radius
rounded-inheritadded,rounded-smmodified to~3px,rounded-xsadded with~2px, for better control on small border radius. - cursor
cursor-noneadded. - outline
outline-browseradded. - Added new settings see animation preset.
Variants
Xtend UI add custom Tailwind CSS variants.
-
added variants to style activation classes with
off:,group-off:,on:,group-on:,in:,group-in:,out:,group-out:,dir-before:,group-dir-before:,dir-after:,group-dir-after:,done:,group-done: -
added variants to style form validation after form submit with
valid-submit:andinvalid-submit:. -
added
group-active:variant.
To show/hide and animate a node with activation classes you need to use Xt.on and Xt.off or toggle components (toggle, drop, overlay, slider, tooltip).
Customization
You can customize components css inside tailwind.config.js, use theme.extend to change Xtend UI preset default.
Check xtendui/tailwind.preset.js for default preset.
module.exports = {
theme:{
extend: {
colors: {
// custom xtendui colors
primary: {
50: '#F8F7FF',
100: '#F1F0FE',
200: '#DDD9FD',
300: '#C8C2FC',
400: '#9E95FA',
500: '#7567F8',
600: '#695DDF',
700: '#463E95',
800: '#352E70',
900: '#231F4A',
},
},
},
},
}
You can customize components inside tailwind.config.js, use theme.extend to change Xtend UI default component styles.
Check xtendui/tailwind.components.js for default component styles.
module.exports = {
theme:{
extend: {
xtendui: {
typography: { // typography component
utility: theme => ({
// modify utilities
}),
component: theme => ({
// modify components
}),
},
},
},
},
}