� Requirements
BIOS UI Svelte components are designed for simplicity and don't require complex setup. Make sure you have the following in your project:
- Svelte 5: Latest version of Svelte framework
- Tailwind CSS 4: For styling and utility classes
- @bios-ui/core: Latest version of the core design system
Note: No additional build tools or complex configuration required. BIOS UI components work out of the box with standard Svelte and Tailwind setups.
📦 Installation
Install the BIOS UI Svelte package using your preferred package manager:
npm
npm install @bios-ui/svelte @bios-ui/corepnpm
pnpm add @bios-ui/svelte @bios-ui/coreyarn
yarn add @bios-ui/svelte @bios-ui/core⚙️ Setup
1. Setup Tailwind
Add the following configuration to your tailwind.config.js:
Then in the your main css file, load the config (Tailwind v4 require this). also you will need to import the core styles theme to centralize it:
To inject the tailwind theme with core design tokens, this way you can use the design tokens with tailwind classes later
2. Import Styles
Import the core styles in your main app file:
3. Import Components
once above steps are done, you can start using the components in your Svelte files.
🔧 Troubleshooting
Styling Issues
If components don't appear styled correctly:
- make sure you have done all the above steps properly, especially 1st and 2nd steps
- Check that the import is in the correct order (before other styles)
- Verify your bundler is processing CSS files correctly
TypeScript Errors
If you encounter TypeScript errors:
- Ensure you're using a compatible TypeScript version (5.0+)
- Check that your
tsconfig.jsonincludes the node_modules - Try restarting your TypeScript server
Build Issues
If you encounter build issues:
- Clear your node_modules and reinstall dependencies
- Check that your bundler supports Svelte files
- Ensure all peer dependencies are installed
💬 Support
Need help? Check out:
- GitHub Issues for bug reports
- Documentation for component guides
- Contributing Guide for development setup