Sass Variables
Slick Carousel provides a comprehensive set of Sass variables that allow you to customize the theme without modifying the core styles. These variables are defined inslick-theme.scss.
Usage
To customize the theme, define your variable overrides before importing the Slick theme:Available Variables
Font and Asset Paths
Directory path for the slick icon font files. Set this to match where your font files are located relative to your compiled CSS.
Font-family name for slick icon font. Used for arrow and dot characters.
Directory path for the ajax-loader.gif image displayed during slide loading.
Arrow Customization
Color of the left/right arrow icons.Example:
Unicode character code for the previous arrow icon. Default is Common Unicode characters:
← (left arrow)."\2190"- ← (default left arrow)"\2039"- ‹ (single left-pointing angle)"\00AB"- « (left-pointing double angle)"\25C0"- ◀ (left-pointing triangle)
Unicode character code for the next arrow icon. Default is Common Unicode characters:
→ (right arrow)."\2192"- → (default right arrow)"\203A"- › (single right-pointing angle)"\00BB"- » (right-pointing double angle)"\25B6"- ▶ (right-pointing triangle)
Dot Navigation
Color of the navigation dots in their default (inactive) state.Example:
Color of the active navigation dot. Defaults to the same as Example:
$slick-dot-color.Unicode character code for the navigation dot icon. Default is Common Unicode characters:
• (bullet)."\2022"- • (default bullet)"\25CF"- ● (black circle)"\25CB"- ○ (white circle)"\25A0"- ■ (black square)"\25A1"- □ (white square)
Font-size of the navigation dots.Example:
Opacity Settings
Default opacity for arrows and active dots. Value between 0 and 1.Example:
Opacity for arrows and dots when hovered or focused. Value between 0 and 1.Example:
Opacity for inactive/disabled elements. Value between 0 and 1.Example:
Complete Customization Example
Light Theme
Dark Theme
Brand Theme
Minimalist Theme
Unicode Character Reference
Here are some useful Unicode characters you can use for arrows and dots:Arrow Characters
Arrow Characters
\2190- ← (leftwards arrow)\2192- → (rightwards arrow)\2039- ‹ (single left angle)\203A- › (single right angle)\00AB- « (double left angle)\00BB- » (double right angle)\25C0- ◀ (left triangle)\25B6- ▶ (right triangle)\25C4- ◄ (left pointer)\25BA- ► (right pointer)\2329- 〈 (left angle bracket)\232A- 〉 (right angle bracket)
Dot/Bullet Characters
Dot/Bullet Characters
\2022- • (bullet)\25CF- ● (black circle)\25CB- ○ (white circle)\25A0- ■ (black square)\25A1- □ (white square)\25C6- ◆ (black diamond)\25C7- ◇ (white diamond)\2023- ‣ (triangular bullet)\2043- ⁃ (hyphen bullet)\204E- ⁎ (low asterisk)\2605- ★ (black star)\2606- ☆ (white star)
Build Process
After defining your variables, compile your Sass:Additional Customization
While these variables cover the most common customization needs, you can further customize Slick by:- Overriding CSS classes - Add your own CSS after importing Slick
- Custom arrow HTML - Use the
prevArrowandnextArrowsettings - Custom dots - Use the
customPagingoption to create custom pagination - Additional styling - Import the base
slick.scsswithout the theme and write your own