Layout
Stylesheet
In order for the components to work properly, you need to include the library's stylesheet in your project. All the CSS classes and variables are prefixed with jskos-vue, so there should be no conflicts. The stylesheet is available under dist/style.css in the npm package and you can either use import or <style> to include it.
Box Sizing
It is recommended to use the following CSS snippet in your applications to make sure box sizing is correctly calculated (more info):
css
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}This is not included by default because it might break client applications that haven't accounted for this.
CSS Variables and Classes
Many of the Vue components in jskos-vue use CSS variables, in particular for colors. These can easily be adjusted to match the components to your application. CSS variables are listed in each component's documentation and are defined in shared.css — please read this file for reference.
There are three main ways of changing these variables:
css
/* via CSS `:root` */
:root {
--jskos-vue-arrow-color: blue;
}
/* or via a CSS selector that matches the component */
.jskos-vue-arrow {
--jskos-vue-arrow-color: blue;
}or via style property at an element:
html
<arrow direction="right"
style="--jskos-vue-arrow-color: blue;" />