Shadcn UI (Tailwind)


Setup Guide
1
3
4
5
6
Source Code
Source code of @oussemasahbeni/keycloakify-login-shadcn, the NPM package that powers this theme. Give it a star ⭐️!
Last updated
Was this helpful?


Source code of @oussemasahbeni/keycloakify-login-shadcn, the NPM package that powers this theme. Give it a star ⭐️!
Last updated
Was this helpful?
Was this helpful?
npm create vite@latestyarn create vitepnpm create vitebun create vitecd keycloak-themenpm install keycloakify @oussemasahbeni/keycloakify-login-shadcnyarn add keycloakify @oussemasahbeni/keycloakify-login-shadcnpnpm add keycloakify @oussemasahbeni/keycloakify-login-shadcnbun add keycloakify @oussemasahbeni/keycloakify-login-shadcnnpx keycloakify initnpx keycloakify initpnpm exec keycloakify initbunx keycloakify initimport react from "@vitejs/plugin-react";
import { keycloakify } from "keycloakify/vite-plugin";
import { defineConfig } from "vite";
import path from "node:path";
import tailwindcss from "@tailwindcss/vite";
// https://vite.dev/config/
export default defineConfig({
plugins: [
react(),
tailwindcss(),
keycloakify({
accountThemeImplementation: "none"
})
],
resolve: {
alias: {
"@": path.resolve(__dirname, "src")
}
}
});{
"compilerOptions": {
// ...
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src"]
}git init .
git add -A
git commit -m "Initial commit"# Run Storybook for component development and testing
npm run storybook
# Build the JAR file to import in Keycloak, see https://docs.keycloakify.dev/deploying-your-theme
npm run build-keycloak-theme
# Test in a local Keycloak. More info: https://docs.keycloakify.dev/testing-your-theme/inside-of-keycloak
npx keycloakify start-keycloak# Run Storybook for component development and testing
yarn storybook
# Build the JAR file to import in Keycloak, see https://docs.keycloakify.dev/deploying-your-theme
yarn build-keycloak-theme
# Test in a local Keycloak. More info: https://docs.keycloakify.dev/testing-your-theme/inside-of-keycloak
npx keycloakify start-keycloak# Run Storybook for component development and testing
pnpm storybook
# Build the JAR file to import in Keycloak, see https://docs.keycloakify.dev/deploying-your-theme
pnpm build-keycloak-theme
# Test in a local Keycloak. More info: https://docs.keycloakify.dev/testing-your-theme/inside-of-keycloak
pnpm exec keycloakify start-keycloak# Run Storybook for component development and testing
bun run storybook
# Build the JAR file to import in Keycloak, see https://docs.keycloakify.dev/deploying-your-theme
bun run build-keycloak-theme
# Test in a local Keycloak. More info: https://docs.keycloakify.dev/testing-your-theme/inside-of-keycloak
bunx keycloakify start-keycloak