Icons
Configure icon sets and UI indicators for your theme.
Overview
Icons in TheDock serve two purposes:
- UI Indicators - Arrows, chevrons, close buttons used by built-in blocks
- Icon Libraries - Full icon sets for use throughout your theme
All built-in blocks (galleries, navigation, etc.) automatically use the icons configured in this section.
UI Indicators
TheDock uses icons for interactive elements:
| Indicator | Used In |
|---|---|
| Arrow Left/Right | Image galleries, carousels |
| Arrow Up/Down | Accordions, dropdowns |
| Close | Modals, notifications |
| Menu | Mobile navigation toggle |
| Search | Search forms |
| External Link | Links opening in new tab |
Customizing Indicators
- Go to Design > Icons
- Find the indicator you want to change
- Select from available icon options
- Preview changes in real-time
Icon Style
Choose the overall style of UI icons:
| Style | Description |
|---|---|
| Outlined | Line icons, minimal weight |
| Filled | Solid icons, more visual weight |
| Rounded | Soft corners, friendly feel |
| Sharp | Angular, modern aesthetic |
The style affects all UI indicators throughout your theme.
Icon Libraries
TheDock includes several complete icon sets:
Included Libraries
| Library | Icons | Style |
|---|---|---|
| Material Icons | 2,000+ | Google's Material Design icons |
| Feather | 280+ | Simple, clean line icons |
| TheDock UI | 50+ | Custom interface icons |
Using Icons in Content
When editing blocks that support icons (buttons, features, etc.):
- Select the block
- Find the Icon setting
- Click to open the icon picker
- Search or browse the library
- Click to select
Custom Icon Upload
You can add your own icons to TheDock:
Supported Formats
- SVG - Recommended, scalable
- Icon Fonts - WOFF/WOFF2 format
Uploading Icons
- Go to Design > Icons
- Click Upload Custom Icons
- Select your SVG file(s)
- Icons appear in your custom library
SVG Requirements
For best results, SVGs should:
- Use a square viewBox (e.g.,
0 0 24 24) - Have
currentColorfor fills/strokes (inherits text color) - Be optimized (remove metadata, simplify paths)
Icon Sizing
Icons scale with your typography system:
| Context | Size |
|---|---|
| Inline | Matches text size |
| Buttons | Slightly larger than text |
| Standalone | Configurable per block |
Customizing Size
Individual blocks can override icon size in their settings.
Icon Colors
Icons automatically use the current text color. This means:
- Icons on dark backgrounds are light
- Icons on light backgrounds are dark
- Color changes propagate automatically
Custom Icon Colors
Some blocks allow specific icon colors:
- Match brand color
- Create visual hierarchy
- Highlight important actions
Best Practices
1. Choose One Library
Stick to a single icon library for consistency. Mixing styles looks unprofessional.
2. Use Icons Purposefully
Icons should clarify, not decorate. If text alone is clear, skip the icon.
3. Ensure Recognition
Choose icons with universally understood meaning (hamburger menu, search magnifier, etc.).
4. Test at Small Sizes
Icons must be recognizable even when small. Simple icons work better.
5. Consider Accessibility
- Icons alone aren't accessible
- Always pair with text or aria-labels
- Ensure sufficient contrast
Troubleshooting
Icons not showing
- Check that the icon library is loaded
- Verify the icon name is correct
- Ensure icon fonts are properly uploaded
Icons look pixelated
- Use SVG format when possible
- Check that icon size isn't scaled beyond source resolution
Icon color doesn't match
- Icons inherit text color by default
- Check parent element's color setting
- Verify SVG uses
currentColor
Custom icons not appearing
- Confirm SVG format is valid
- Check file size isn't too large
- Try re-uploading
Related Topics
- UI Elements - Buttons and interactive elements
- Colors - Color system for icons
- Typography - Size relationships