Overview
Assets are static files like images, fonts, videos, and icons used in your projects. Tesslate Studio provides easy asset management and optimization.Upload Files
Drag-and-drop or browse to upload
Auto-Optimize
Automatic image optimization
CDN Delivery
Fast global asset delivery
Organized
Folder-based organization
Asset Types
- Images
- Fonts
- Icons
- Media
Photos and graphics
- PNG, JPG, JPEG
- WebP, SVG
- GIF
- AVIF
- Resize for web
- Compress automatically
- Generate responsive sizes
- Convert to modern formats
Uploading Assets
1
Open Assets Panel
Click Assets in project sidebar
2
Choose Upload Method
- Drag-and-drop files
- Click Upload button
- Paste from clipboard
3
Select Files
Choose one or multiple files
4
Auto-Process
Files upload and optimize automatically
5
Use in Code
Assets appear in file tree and are ready to use
Images under 1MB are automatically optimized. Larger images may take a moment to process.
Using Assets in Code
Importing Images
Public Folder
For assets that don’t need import:Background Images
Asset Organization
Folder Structure
src/assets/
src/assets/
Processed by build
- Imported in components
- Bundled and optimized
- Hashed filenames
- Good for: Component images
public/
public/
Served directly
- Not processed
- Keep same filename
- Referenced by path
- Good for: Favicon, social images, PDFs
Image Optimization
Automatic Optimization
Tesslate automatically:- Compresses: Reduces file size
- Resizes: Creates responsive sizes
- Converts: Uses modern formats (WebP)
- Lazy loads: Defers offscreen images
Manual Optimization
For more control:1
Right-Click Asset
In assets panel, right-click image
2
Click Optimize
Choose optimization settings
3
Configure
- Target size
- Quality (1-100)
- Format conversion
- Responsive sizes
4
Apply
Optimized version replaces original
Responsive Images
Generating Sizes
Ask AI agent to create responsive image code:Fonts
Adding Custom Fonts
1
Upload Font Files
Upload .woff2, .woff, .ttf files
2
Create Font CSS
Ask AI: “Add custom font Inter to the project”
3
AI Generates
4
Use in Tailwind
Google Fonts
Easier approach - use Google Fonts:Icons
Using Lucide Icons
Built-in icon library:Custom SVG Icons
Asset Best Practices
Optimize Before Upload
Optimize Before Upload
- Compress images first
- Resize to needed dimensions
- Use appropriate formats
- Remove metadata
Use Modern Formats
Use Modern Formats
- WebP for photos
- SVG for logos/icons
- AVIF for best compression
- PNG only when needed
Use CDNs for Large Files
Use CDNs for Large Files
- Host videos on YouTube/Vimeo
- Use Cloudinary for images
- External hosting for large assets
- Faster load times
Name Files Clearly
Name Files Clearly
hero-background.jpgnotIMG_1234.jpgproduct-thumbnail.pngnotimage-2.png- Descriptive names help organization
- Good for SEO
Deleting Assets
1
Find Unused Assets
Use asset panel to see usage
2
Check References
Ensure asset isn’t used anywhere
3
Delete
Right-click → Delete
4
Confirm
Confirm deletion (cannot undo)
Troubleshooting
Image Not Appearing
Image Not Appearing
Solutions:
- Check file path is correct
- Verify file uploaded successfully
- Check console for 404 errors
- Ensure correct import syntax
- Try absolute path (/images/file.jpg)
Slow Image Loading
Slow Image Loading
Solutions:
- Optimize/compress images
- Use WebP format
- Implement lazy loading
- Generate responsive sizes
- Use CDN for large files
Upload Failed
Upload Failed
Solutions:
- Check file size (max 10MB recommended)
- Verify file format is supported
- Check internet connection
- Try different browser
- Compress file and retry