:root {
--light-scrollbar-track-background: #fff;
--light-scrollbar-track-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
--light-scrollbar-thumb-background: #6562fb;
--light-primary: #6562fb;
--light-success-1: #00aa44;
--light-info-1: #06b9ef;
--light-warning-1: #ff960b;
--light-danger-1: #f93131;
--light-light-1: #fff;
--light-dark-1: #21242b;
--scrollbar-width: 0px;
--scrollbar-height: 0px;
--xl-scrollbar-width: 8px;
--xl-scrollbar-height: 8px;
}
.scrollbar-x {
overflow-x: auto;
}
.scrollbar-y {
overflow-y: auto;
}
.scrollbar-x::-webkit-scrollbar-track, .scrollbar-y::-webkit-scrollbar-track {
background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar, .scrollbar-y::-webkit-scrollbar {
background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar-thumb, .scrollbar-y::-webkit-scrollbar-thumb {
background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar {
height: var(--scrollbar-height);
}
.scrollbar-y::-webkit-scrollbar {
width: var(--scrollbar-width);
}
/* Media Query For >= 1200px */
@media (min-width: 1200px) {
.scrollbar-x::-webkit-scrollbar-track, .scrollbar-y::-webkit-scrollbar-track {
background-color: var(--light-scrollbar-track-background);
-webkit-box-shadow: var(--light-scrollbar-track-shadow);
box-shadow: var(--light-scrollbar-track-shadow);
}
.scrollbar-x::-webkit-scrollbar, .scrollbar-y::-webkit-scrollbar {
background-color: var(--light-scrollbar-track-background);
}
.scrollbar-x::-webkit-scrollbar-thumb, .scrollbar-y::-webkit-scrollbar-thumb {
background-color: var(--light-scrollbar-thumb-background);
-webkit-box-shadow: var(--light-scrollbar-track-shadow);
box-shadow: var(--light-scrollbar-track-shadow);
}
.scrollbar-x.thumb-primary::-webkit-scrollbar-thumb, .scrollbar-y.thumb-primary::-webkit-scrollbar-thumb {
background-color: var(--light-primary) !important;
}
.scrollbar-x.thumb-success::-webkit-scrollbar-thumb, .scrollbar-y.thumb-success::-webkit-scrollbar-thumb {
background-color: var(--light-success-1) !important;
}
.scrollbar-x.thumb-info::-webkit-scrollbar-thumb, .scrollbar-y.thumb-info::-webkit-scrollbar-thumb {
background-color: var(--light-info-1) !important;
}
.scrollbar-x.thumb-warning::-webkit-scrollbar-thumb, .scrollbar-y.thumb-warning::-webkit-scrollbar-thumb {
background-color: var(--light-warning-1) !important;
}
.scrollbar-x.thumb-danger::-webkit-scrollbar-thumb, .scrollbar-y.thumb-danger::-webkit-scrollbar-thumb {
background-color: var(--light-danger-1) !important;
}
.scrollbar-x.thumb-light::-webkit-scrollbar-thumb, .scrollbar-y.thumb-light::-webkit-scrollbar-thumb {
background-color: var(--light-light-1) !important;
}
.scrollbar-x.thumb-dark::-webkit-scrollbar-thumb, .scrollbar-y.thumb-dark::-webkit-scrollbar-thumb {
background-color: var(--light-dark-1) !important;
}
.scrollbar-x::-webkit-scrollbar {
height: var(--xl-scrollbar-height);
}
.scrollbar-y::-webkit-scrollbar {
width: var(--xl-scrollbar-width);
}
}
Customize the scrollbar's orientation and appearance using these classes.
Orientation:
Color Options:
These classes allow you to easily style scrollbars to match the design and functionality of your application.
:root {
--light-scrollbar-track-background: #fff;
--light-scrollbar-track-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
--light-scrollbar-thumb-background: #6562fb;
--light-primary: #6562fb;
--light-success-1: #00aa44;
--light-info-1: #06b9ef;
--light-warning-1: #ff960b;
--light-danger-1: #f93131;
--light-light-1: #fff;
--light-dark-1: #21242b;
--scrollbar-width: 0px;
--scrollbar-height: 0px;
--xl-scrollbar-width: 8px;
--xl-scrollbar-height: 8px;
}
.scrollbar-x {
overflow-x: auto;
}
.scrollbar-y {
overflow-y: auto;
}
.scrollbar-x.rounded-bar::-webkit-scrollbar-track, .scrollbar-x.rounded-bar::-webkit-scrollbar-thumb, .scrollbar-y.rounded-bar::-webkit-scrollbar-track, .scrollbar-y.rounded-bar::-webkit-scrollbar-thumb {
border-radius: 50px;
}
.scrollbar-x::-webkit-scrollbar-track, .scrollbar-y::-webkit-scrollbar-track {
background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar, .scrollbar-y::-webkit-scrollbar {
background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar-thumb, .scrollbar-y::-webkit-scrollbar-thumb {
background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar {
height: var(--scrollbar-height);
}
.scrollbar-y::-webkit-scrollbar {
width: var(--scrollbar-width);
}
/* Media Query For >= 1200px */
@media (min-width: 1200px) {
.scrollbar-x::-webkit-scrollbar-track, .scrollbar-y::-webkit-scrollbar-track {
background-color: var(--light-scrollbar-track-background);
-webkit-box-shadow: var(--light-scrollbar-track-shadow);
box-shadow: var(--light-scrollbar-track-shadow);
}
.scrollbar-x::-webkit-scrollbar, .scrollbar-y::-webkit-scrollbar {
background-color: var(--light-scrollbar-track-background);
}
.scrollbar-x::-webkit-scrollbar-thumb, .scrollbar-y::-webkit-scrollbar-thumb {
background-color: var(--light-scrollbar-thumb-background);
-webkit-box-shadow: var(--light-scrollbar-track-shadow);
box-shadow: var(--light-scrollbar-track-shadow);
}
.scrollbar-x.thumb-primary::-webkit-scrollbar-thumb, .scrollbar-y.thumb-primary::-webkit-scrollbar-thumb {
background-color: var(--light-primary) !important;
}
.scrollbar-x.thumb-success::-webkit-scrollbar-thumb, .scrollbar-y.thumb-success::-webkit-scrollbar-thumb {
background-color: var(--light-success-1) !important;
}
.scrollbar-x.thumb-info::-webkit-scrollbar-thumb, .scrollbar-y.thumb-info::-webkit-scrollbar-thumb {
background-color: var(--light-info-1) !important;
}
.scrollbar-x.thumb-warning::-webkit-scrollbar-thumb, .scrollbar-y.thumb-warning::-webkit-scrollbar-thumb {
background-color: var(--light-warning-1) !important;
}
.scrollbar-x.thumb-danger::-webkit-scrollbar-thumb, .scrollbar-y.thumb-danger::-webkit-scrollbar-thumb {
background-color: var(--light-danger-1) !important;
}
.scrollbar-x.thumb-light::-webkit-scrollbar-thumb, .scrollbar-y.thumb-light::-webkit-scrollbar-thumb {
background-color: var(--light-light-1) !important;
}
.scrollbar-x.thumb-dark::-webkit-scrollbar-thumb, .scrollbar-y.thumb-dark::-webkit-scrollbar-thumb {
background-color: var(--light-dark-1) !important;
}
.scrollbar-x::-webkit-scrollbar {
height: var(--xl-scrollbar-height);
}
.scrollbar-y::-webkit-scrollbar {
width: var(--xl-scrollbar-width);
}
}
Customize the scrollbar's orientation, color, and border-radius using these classes.
Orientation:
Color Options:
Border Radius:
These classes provide a complete solution for styling scrollbars, including direction, color, and shape.
:root {
--light-scrollbar-track-background: #fff;
--light-scrollbar-track-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
--light-scrollbar-thumb-background: #6562fb;
--light-primary: #6562fb;
--light-success-1: #00aa44;
--light-info-1: #06b9ef;
--light-warning-1: #ff960b;
--light-danger-1: #f93131;
--light-light-1: #fff;
--light-dark-1: #21242b;
--scrollbar-width: 0px;
--scrollbar-height: 0px;
--xl-scrollbar-width: 8px;
--xl-scrollbar-height: 8px;
--xl-scrollbar-xl-width: 12px;
--xl-scrollbar-xl-height: 12px;
--xl-scrollbar-lg-width: 10px;
--xl-scrollbar-lg-height: 10px;
--xl-scrollbar-sm-width: 6px;
--xl-scrollbar-sm-height: 6px;
--xl-scrollbar-xsm-width: 4px;
--xl-scrollbar-xsm-height: 4px;
}
.scrollbar-x {
overflow-x: auto;
}
.scrollbar-y {
overflow-y: auto;
}
.scrollbar-x.rounded-bar::-webkit-scrollbar-track, .scrollbar-x.rounded-bar::-webkit-scrollbar-thumb, .scrollbar-y.rounded-bar::-webkit-scrollbar-track, .scrollbar-y.rounded-bar::-webkit-scrollbar-thumb {
border-radius: 50px;
}
.scrollbar-x::-webkit-scrollbar-track, .scrollbar-y::-webkit-scrollbar-track {
background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar, .scrollbar-y::-webkit-scrollbar {
background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar-thumb, .scrollbar-y::-webkit-scrollbar-thumb {
background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar {
height: var(--scrollbar-height);
}
.scrollbar-y::-webkit-scrollbar {
width: var(--scrollbar-width);
}
/* Media Query For >= 1200px */
@media (min-width: 1200px) {
.scrollbar-x::-webkit-scrollbar-track, .scrollbar-y::-webkit-scrollbar-track {
background-color: var(--light-scrollbar-track-background);
-webkit-box-shadow: var(--light-scrollbar-track-shadow);
box-shadow: var(--light-scrollbar-track-shadow);
}
.scrollbar-x::-webkit-scrollbar, .scrollbar-y::-webkit-scrollbar {
background-color: var(--light-scrollbar-track-background);
}
.scrollbar-x::-webkit-scrollbar-thumb, .scrollbar-y::-webkit-scrollbar-thumb {
background-color: var(--light-scrollbar-thumb-background);
-webkit-box-shadow: var(--light-scrollbar-track-shadow);
box-shadow: var(--light-scrollbar-track-shadow);
}
.scrollbar-x.thumb-primary::-webkit-scrollbar-thumb, .scrollbar-y.thumb-primary::-webkit-scrollbar-thumb {
background-color: var(--light-primary) !important;
}
.scrollbar-x.thumb-success::-webkit-scrollbar-thumb, .scrollbar-y.thumb-success::-webkit-scrollbar-thumb {
background-color: var(--light-success-1) !important;
}
.scrollbar-x.thumb-info::-webkit-scrollbar-thumb, .scrollbar-y.thumb-info::-webkit-scrollbar-thumb {
background-color: var(--light-info-1) !important;
}
.scrollbar-x.thumb-warning::-webkit-scrollbar-thumb, .scrollbar-y.thumb-warning::-webkit-scrollbar-thumb {
background-color: var(--light-warning-1) !important;
}
.scrollbar-x.thumb-danger::-webkit-scrollbar-thumb, .scrollbar-y.thumb-danger::-webkit-scrollbar-thumb {
background-color: var(--light-danger-1) !important;
}
.scrollbar-x.thumb-light::-webkit-scrollbar-thumb, .scrollbar-y.thumb-light::-webkit-scrollbar-thumb {
background-color: var(--light-light-1) !important;
}
.scrollbar-x.thumb-dark::-webkit-scrollbar-thumb, .scrollbar-y.thumb-dark::-webkit-scrollbar-thumb {
background-color: var(--light-dark-1) !important;
}
.scrollbar-x::-webkit-scrollbar {
height: var(--xl-scrollbar-height);
}
.scrollbar-x.scrollbar-xl::-webkit-scrollbar {
height: var(--xl-scrollbar-xl-height);
}
.scrollbar-x.scrollbar-lg::-webkit-scrollbar {
height: var(--xl-scrollbar-lg-height);
}
.scrollbar-x.scrollbar-sm::-webkit-scrollbar {
height: var(--xl-scrollbar-sm-height);
}
.scrollbar-x.scrollbar-xsm::-webkit-scrollbar {
height: var(--xl-scrollbar-xsm-height);
}
.scrollbar-y::-webkit-scrollbar {
width: var(--xl-scrollbar-width);
}
.scrollbar-y.scrollbar-xl::-webkit-scrollbar {
width: var(--xl-scrollbar-xl-width);
}
.scrollbar-y.scrollbar-lg::-webkit-scrollbar {
width: var(--xl-scrollbar-lg-width);
}
.scrollbar-y.scrollbar-sm::-webkit-scrollbar {
width: var(--xl-scrollbar-sm-width);
}
.scrollbar-y.scrollbar-xsm::-webkit-scrollbar {
width: var(--xl-scrollbar-xsm-width);
}
}
Customize the scrollbar's size, color, and rounded style using these classes.
Size Options:
Orientation:
Color Options:
Border Radius:
These classes give you complete control over scrollbar size, shape, and color, enhancing both aesthetics and functionality.