Theme Raed uses TailwindCSS as its utility-first CSS framework. This guide covers the TailwindCSS configuration, custom theme extensions, and how to customize styles.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SallaApp/theme-raed/llms.txt
Use this file to discover all available pages before exploring further.
Configuration files
TailwindCSS configuration is split across two files:- tailwind.config.js - Main TailwindCSS configuration
- postcss.config.js - PostCSS pipeline configuration
Content sources
Tailwind scans these files to generate CSS classes:All Twig template filesTailwind scans these for class names to generate
All JavaScript filesIncludes classes added dynamically via JavaScript
Salla theme safelistEnsures Salla-specific classes are always included
Dark mode
dark class to enable dark mode:
Container configuration
Automatically center containers using margin auto
Default horizontal padding for containers
Maximum container width for 2xl breakpointPrevents containers from becoming too wide on large screens
Typography
Font families
- Custom font via CSS variable (
--font-main) - System fonts as fallback
Font sizes
Large icon text sizeUsage:
text-icon-lgExtra extra small textUsage:
text-xxsExtra extra extra small textUsage:
text-xxxsLarge title text sizeUsage:
text-title-sizeLine heights
Colors
Custom colors
Dark background colorUsage:
bg-dark, text-dark, border-darkDarker background color for layered dark modeUsage:
bg-darkerDanger/error state colorUsage:
bg-danger, text-danger, border-dangerDark variant of primary color via CSS variableUsage:
bg-primary-darkSpacing
Custom spacing values
Border radius
Large border radiusUsage:
rounded-largeExtra large border radius for pillsUsage:
rounded-bigMinimal border radiusUsage:
rounded-tinyDefault border radius when using
roundedUsage: roundedBox shadows
Dimensions
Width
Height
Min/max width
Grid system
Breakpoints
Extra extra small devices (380px - 479px)Usage:
xxs:text-smExtra small devices (480px and up)Usage:
xs:blocksm: 640pxmd: 768pxlg: 1024pxxl: 1280px2xl: 1280px (custom max-width)
Animations
Keyframes
Animation utilities
Transitions
Timing functions
Properties
Z-index
Plugins
Salla Twilight theme
- RTL support
- Salla color scheme
- Salla component styles
Tailwind Forms
- Input fields
- Select dropdowns
- Checkboxes and radios
- Textareas
Line clamp
PostCSS configuration
Thepostcss.config.js file configures the CSS processing pipeline:
Plugin pipeline
postcss-import
postcss-import
Processes
@import statements in CSS filesAllows splitting CSS into multiple files:tailwindcss/nesting
tailwindcss/nesting
Enables CSS nesting syntax
tailwindcss
tailwindcss
Main TailwindCSS plugin that generates utility classes
postcss-preset-env
postcss-preset-env
Adds modern CSS features with browser compatibility
- CSS nesting
- Custom properties
- Modern color functions
Customization
Adding custom colors
Extend the color palette intailwind.config.js:
Adding custom utilities
Create custom utility classes:Customizing breakpoints
Modify or add breakpoints:Important mode
false to avoid adding !important to all utilities. This allows easier overriding when needed.
Only set
important: true if you have specific CSS specificity conflicts that require it.Best practices
- Use semantic spacing - Prefer Tailwind’s spacing scale over arbitrary values
- Leverage component classes - Use
@applyfor repeated patterns - Keep customizations minimal - Extend only when necessary
- Use design tokens - Define colors and spacing as CSS variables
- Optimize for production - Use PurgeCSS via content configuration
- Follow RTL conventions - Use logical properties (start/end instead of left/right)
- Test dark mode - Ensure all custom colors work in dark mode
- Document custom utilities - Add comments explaining custom extensions
Performance
Tailwind automatically optimizes for production:- PurgeCSS - Removes unused classes based on content sources
- Minification - CSS is minified in production builds
- Tree shaking - Only includes used plugins and utilities
- Development: ~3MB (all utilities)
- Production: ~10-50KB (purged and minified)