Keywind is a component-based Keycloak Login Theme built with Tailwind CSS and Alpine.js.
Keywind has been designed with component-based architecture from the start, and you can customize as little or as much Keywind as you need:
parent=keywind
When you do need to customize a palette, you can configure your colors under the colors
key in the theme
section of Tailwind config file:
tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
primary: colors.red,
},
},
},
};
Read more about Tailwind CSS configuration in the documentation.
You can update Keywind components in your own child theme. For example, create a copy of the body
component and change the background:
theme/mytheme/login/components/atoms/body.ftl
<#macro kw>
<body class="bg-primary-100">
<#nested>
</body>
</#macro>
When you're ready to deploy your own theme, run the build command to generate a static production build.
pnpm install
pnpm build
To deploy a theme as an archive, create a JAR archive with the theme resources.
pnpm build:jar