Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: customization options #59

Closed
wants to merge 72 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
e8fcdd9
Update dependencies
lukin Aug 17, 2021
5dad1e2
Added IDP extension
ifeelcream Sep 6, 2021
6079295
Prettier
lukin Sep 6, 2021
b3c3e3c
Merge pull request #1
lukin Sep 6, 2021
69dc820
Update dependencies
lukin Nov 21, 2021
bf38ae6
Update configuration files
lukin Nov 21, 2021
9d13778
Build resources
lukin Nov 21, 2021
8db0ead
Update README.md
lukin Nov 21, 2021
5a07825
Fix username validation
lukin Dec 9, 2021
766a38b
Update dependencies
lukin Dec 13, 2021
3b44fd2
Update target
lukin Dec 13, 2021
4e3f17b
Build resources
lukin Dec 13, 2021
2622c84
Rollback target
lukin Jan 2, 2022
295f5fc
Update dependencies
lukin Jan 2, 2022
54e9c33
Build resources
lukin Jan 2, 2022
4cff8b3
ui(totp): configure and login otp
ronmrcdo Apr 2, 2022
6067b8f
Prettier
lukin Apr 5, 2022
8781594
Merge pull request #9
lukin Apr 5, 2022
fef457a
[link] Remove extra styles
lukin Apr 5, 2022
a195d30
Update alerts.ftl
tombrouwer Apr 20, 2022
4f79746
Update locales.ftl
tombrouwer Apr 20, 2022
b86e947
[alerts] Use break in switch (#11)
lukin Apr 20, 2022
224d737
[locales] Fix HTML tag (#12)
lukin Apr 20, 2022
118d107
Migrate from Snowpack to Vite
lukin Sep 3, 2022
52f9892
Update register.ftl
YoanSimco Sep 18, 2022
f319a25
Merge pull request #19
lukin Sep 25, 2022
2c92c52
[pages] Add Logout Confirm
lukin Sep 25, 2022
5bef95c
Update logout-confirm.ftl
YoanSimco Oct 1, 2022
ad9e375
Apply suggestions to 1 file
YoanSimco Oct 2, 2022
f5490bd
Merge pull request #21
lukin Oct 2, 2022
79b24d2
[icon] Add all providers
lukin Oct 16, 2022
0b16820
implement webauthn and recovery codes from keycloak base
cwildfoerster Nov 8, 2022
8ce6c30
implement missing authenticator selector
cwildfoerster Nov 8, 2022
613f4ff
fix otp setup error due to change in upstream
cwildfoerster Nov 10, 2022
c382739
Merge pull request #24
lukin Nov 13, 2022
1063773
create secondary-small button component
cwildfoerster Nov 16, 2022
55c1704
create secondary-small button component
cwildfoerster Nov 16, 2022
1d93e03
fix missing closing statement
cwildfoerster Nov 16, 2022
c1bbb2b
improve list and image layout
cwildfoerster Nov 16, 2022
2c5c3f0
fix retry error due to missing form id
cwildfoerster Nov 18, 2022
60f8cbc
remove jquery dependency, use vanilla js
cwildfoerster Nov 18, 2022
d8494ca
remove jquery dependency, use vanilla js
cwildfoerster Nov 18, 2022
1af2b22
center align image
cwildfoerster Nov 18, 2022
040a0ce
increase bottom margin on oauth logo
cwildfoerster Nov 18, 2022
2ac06e9
Feat: add slack icon
dorianim Dec 4, 2022
3750aeb
Feat: slack icon
dorianim Dec 4, 2022
9c14af1
Prettier
lukin Dec 17, 2022
ba8d2da
Merge pull request #25
lukin Dec 17, 2022
3d46e76
Update dependencies
lukin Dec 17, 2022
544023b
Update components
lukin Jan 14, 2023
13d205b
Merge branch 'master' into pr/23
lukin Jan 14, 2023
61935f6
[pages] Update Recovery Authn Code
lukin Jan 14, 2023
55f5c25
fix a typo
tobinibot Jan 23, 2023
4825fc2
Merge pull request #33
lukin Jan 28, 2023
ff2280b
Merge branch 'master' into feat/slack-icon
dorianim Feb 2, 2023
4592b02
[providers] Add Slack
lukin Feb 2, 2023
b14d964
Merge pull request #26
lukin Feb 2, 2023
fb53d98
[pages] Update WebAuthn
lukin Feb 4, 2023
475a9ba
Merge branch 'master' into pr/23
lukin Feb 4, 2023
233267b
Merge pull request #23
lukin Feb 9, 2023
c5ab06d
Fix favicon
lukin Mar 3, 2023
f1df034
Add script to create JAR archive
lukin Mar 10, 2023
b622a6d
[pages] Add Error, Login Page Expired, and Terms (#34)
dschemp Mar 19, 2023
d3836c0
[data] Fix WebAuthn Authenticate (#36)
horus Mar 19, 2023
e7d2854
[pages] Add Login Password and Login Username (#38)
Kalissaac Mar 25, 2023
f7d5b2d
[providers] Add Discord (#40)
ATechAdventurer Mar 26, 2023
3663acd
[providers] Apple (#50)
martmalo Sep 10, 2023
5189c9c
Add tests
lukin Sep 23, 2023
d51befa
feat: background logo/image/video
Sep 26, 2023
9beadbe
Add HTML lang attribute (#53)
paulwer Oct 4, 2023
b50455c
Merge branch 'master' into patch-6-background-video
paulwer Oct 5, 2023
3d0dbc2
Merge branch 'master' into pr/59
lukin Oct 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# :wind_face: Keywind

Keywind is a component-based Keycloak Login Theme built with [Tailwind CSS](https://github.com/tailwindlabs/tailwindcss) and [Alpine.js](https://github.com/alpinejs/alpine).
Keywind is a component-based Keycloak Login Theme with build-in customization options.
Built with [Tailwind CSS](https://github.com/tailwindlabs/tailwindcss) and [Alpine.js](https://github.com/alpinejs/alpine).

![Preview](./preview.png)

Expand Down Expand Up @@ -29,6 +30,11 @@ Keywind is a component-based Keycloak Login Theme built with [Tailwind CSS](http
- WebAuthn Error
- WebAuthn Register

### Customization Options

- Background Video / Image
- Company Logo in Background

### Identity Provider Icons

- Apple
Expand Down Expand Up @@ -84,6 +90,11 @@ module.exports = {

Read more about Tailwind CSS configuration in the [documentation](https://tailwindcss.com/docs/configuration).

### Build-In Customizations

Keywind ships with a few easy to use customization options. Customize these settings by editing the theme properties before deployment:
`theme/mytheme/login/theme.properties`

### Components

You can update Keywind components in your own child theme. For example, create a copy of the `body` component and change the background:
Expand Down
13 changes: 13 additions & 0 deletions theme/keywind/login/components/atoms/background.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<#macro kw>
<#if properties.topLeftLogoUrl??>
<img src="${properties.topLeftLogoUrl}" class="fixed z-10 top-4 left-8">
</#if>
<#if properties.backgroundImageUrl??>
<img src="${properties.backgroundImageUrl}" class="fixed top-0 left-0 right-0 bottom-0 min-h-full min-w-full opacity-20" style="max-width: none !important;">
</#if>
<#if properties.backgroundVideoUrl??>
<video autoplay loop muted playsinline class="fixed top-0 left-0 right-0 bottom-0 min-h-full min-w-full opacity-20" style="max-width: none !important;">
<source src="${properties.backgroundVideoUrl}" type="${properties.backgroundVideoType!''}" />
</video>
</#if>
</#macro>
2 changes: 1 addition & 1 deletion theme/keywind/login/components/atoms/body.ftl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<#macro kw>
<body class="bg-secondary-100 flex flex-col items-center justify-center min-h-screen sm:py-16">
<body class="bg-secondary-100 flex flex-col items-center justify-center min-h-screen sm:py-16 overflow-x-hidden">
<#nested>
</body>
</#macro>
2 changes: 1 addition & 1 deletion theme/keywind/login/components/atoms/container.ftl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<#macro kw>
<div class="max-w-md space-y-6 w-full">
<div class="relative z-10 max-w-md space-y-6 w-full">
<#nested>
</div>
</#macro>
6 changes: 6 additions & 0 deletions theme/keywind/login/theme.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ parent=base

styles=dist/index.css
scripts=dist/index.js

# Customization Section
topLeftLogoUrl=
backgroundImageUrl=
backgroundVideoUrl=
backgroundVideoType=video/mp4