/API Reference
API Reference
#Complete API reference for Stoop
Core Functions
#- createStoop - Create a Stoop instance with theme configuration
- styled - Create styled components with type-safe props and variants
- css - Create CSS classes with theme tokens
- globalCss - Apply global styles using theme tokens
- keyframes - Create CSS keyframe animations
Theme Management
#- createTheme - Create additional themes dynamically
- Provider - React component for theme switching
- useTheme - Hook to access current theme and toggle themes
Server-Side Rendering
#- getCssText - Get all generated CSS text for SSR
- preloadTheme - Preload theme CSS variables to prevent FOUC
- warmCache - Pre-compile CSS objects to warm the cache
Theme Tokens
#- Overview - Understanding theme tokens
- Scales - All available theme scales
- Usage Patterns - Common usage patterns
Related Guides
#- Installation - Get started with Stoop
- Creating Components - Learn how to use styled components
- Theme Setup - Configure your theme
- Server-Side Rendering - Use Stoop with Next.js