Complete and professional admin template with full RTL support for Persian/Farsi language
ŁŲ§Ų±Ų³Ū | English
/login-01 to /login-05/signup-01 to /signup-05/otp-01 to /otp-05/dashboard-01 - Complete dashboard with charts and tables/sidebar-01 to /sidebar-16 - 16 different sidebar layouts/rtl-demo - Showcase of all 54 RTL components# Clone the project
git clone <repository-url>
cd shadcn
# Install dependencies
npm install
# Run the project
npm run dev
The project will run at http://localhost:5173
<script>
import { Button } from "$lib/components/ui-rtl/button";
import { Card } from "$lib/components/ui-rtl/card";
</script>
<Card>
<Button>Persian Button</Button>
</Card>
<script>
import RtlProvider from "$lib/components/rtl-provider.svelte";
</script>
<RtlProvider rtl={true} lang="fa">
<!-- Your content -->
</RtlProvider>
# Run development server
npm run dev
# Build for production
npm run build
# Preview build
npm run preview
# Type check
npm run check
# Generate RTL components
npm run rtl:generate
# Update shadcn + generate RTL
npm run rtl:update
shadcn/
āāā src/
ā āāā lib/
ā ā āāā components/
ā ā ā āāā ui/ # Original shadcn components
ā ā ā āāā ui-rtl/ # RTL components (generated)
ā ā āāā rtl-utils.js # RTL utility functions
ā ā āāā rtl-context.svelte.js
ā āāā routes/
ā ā āāā login-01/ # Login pages
ā ā āāā signup-01/ # Signup pages
ā ā āāā otp-01/ # OTP pages
ā ā āāā dashboard-01/ # Dashboard
ā ā āāā sidebar-01/ # Sidebar examples
ā āāā app.css # Main styles + font
āāā scripts/
ā āāā generate-rtl-components.js # RTL generation script
āāā static/
āāā placeholder.svg # Placeholder image
Font is defined in src/app.html and src/app.css:
/* src/app.css */
body {
font-family: 'Vazirmatn', system-ui, sans-serif;
}
Colors are defined in src/app.css using CSS variables:
:root {
--primary: oklch(0.208 0.042 265.755);
--background: oklch(1 0 0);
/* ... */
}
# Method 1: Automatic update
npm run rtl:update
# Method 2: Manual
npx shadcn-svelte@latest update
npm run rtl:generate
All 54 shadcn-svelte components with RTL support:
This project is open source. To contribute:
MIT License - Same as shadcn-svelte
Made with ā¤ļø for the Persian-speaking community
If this project helped you, give it a ā!