Ossido leaves styling to Vite, so Tailwind works exactly as it does anywhere else.
This guide sets it up and builds a small styled, responsive component.
Enable Tailwind
Scaffold with --tailwind, or add it to an existing project. It wires the
@tailwindcss/vite plugin into ossido.config.ts and a global stylesheet (see
Styling):
ts
// ossido.config.tsimport type { OssidoConfig } from '@ossido-labs/ossido/config';import tailwindcss from '@tailwindcss/vite';const config: OssidoConfig = { vite: { plugins: [tailwindcss()] },};export default config;
css
/* src/styles/global.css */@import 'tailwindcss';
Import the stylesheet once in your root layout so it applies to every route: