npm install sidekick-clientThis package uses Tailwind CSS v4 and requires you to have Tailwind installed in your consuming application.
Install the required peer dependencies in your project:
npm install tailwindcss@^4.0.0 @tailwindcss/vite@^4.0.0Add the Tailwind plugin to your vite.config.ts:
import tailwindcss from '@tailwindcss/vite';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react(), tailwindcss()],
// ... rest of your config
});IMPORTANT: You must import the package's CSS file in your application's entry point (e.g., main.tsx or index.tsx):
// main.tsx or index.tsx
import 'sidekick-client/dist/index.css';
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>,
);The CSS file contains all the Tailwind utilities and custom styles needed for the components to work properly.
import { SideKickClient } from 'sidekick-client';
import type { NavItem } from 'sidekick-client';
function App() {
return (
<SideKickClient
// your props here
/>
);
}This package supports full theme customization through CSS variables. You can override colors, border radius, and other design tokens to match your brand.
/* In your app's CSS file, BEFORE importing the package CSS */
:root {
--sk-primary: oklch(0.5 0.3 250); /* Custom primary color */
--sk-radius: 1rem; /* Custom border radius */
}SideKickClient- Main component
NavItemSubNavItemLoginCmdOrganizationTypeOrganizationTypeResponseloggedInUserInfpurchasedPlansInfResponsepurchasedPlansInfSessionInfoResponseEmailProcessingResultTeamMembersDetailsresponseTeamMembersInfIEachInvitationIInvitationsResponseICountryICountriesICreateOrderResponseIVerifyPaymentResponse
If styles are not appearing in your application:
- Import the CSS: Make sure you've imported
sidekick-client/dist/index.cssin your entry file - Verify Tailwind is installed: Make sure you have
tailwindcss@^4.0.0and@tailwindcss/vite@^4.0.0installed - Check Vite config: Ensure the
@tailwindcss/viteplugin is added to your Vite configuration - Restart dev server: After making changes, restart your development server
If you encounter build issues:
- Make sure all peer dependencies are installed (check
package.jsonpeerDependencies) - Ensure you're using compatible versions of React (^18.0.0 or ^19.0.0)
- Clear your
node_modulesand reinstall if needed