CSS Framework Conflicts
VeChain Kit uses Chakra UI internally, which can cause style conflicts with Tailwind CSS, Bootstrap, and other CSS frameworks.
Problem: Styles Being Overridden
Symptoms
Your Tailwind utilities stop working
Unexpected borders on images
Wrong background colors or fonts
Button/form styles change unexpectedly
Solution: CSS Layer Configuration
Use CSS layers to control which styles take precedence:
/* In your global CSS file (e.g., globals.css) */
/* 1. Define layers with explicit priority */
@layer vechain-kit, host-app;
/* 2. Wrap your framework in host-app layer */
@layer host-app {
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Your custom styles here */
}Framework-Specific Examples
Tailwind CSS
Tailwind v4
Bootstrap
Custom CSS
Quick Fixes for Common Issues
Verification Checklist
CSS layers defined:
@layer vechain-kit, host-appFramework styles wrapped in
@layer host-appVeChain Kit imported after layer definitions
Components render without style conflicts
No excessive
!importantdeclarations needed
Debugging Steps
Check layer order in DevTools -
Stylespanel shows which layer is appliedVerify
importorder - CSS with layers must load before VeChain KitTest in isolation - Create a minimal component to identify conflicts
Browser Support
CSS layers are supported in all modern browsers:
Chrome 99+
Firefox 97+
Safari 15.4+
Edge 99+
Was this helpful?