Giter Site home page Giter Site logo

sstevan / keycloak-themes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from genny-project/keycloak-themes

0.0 0.0 0.0 264.99 MB

Keycloak Themes

License: Apache License 2.0

Shell 0.02% JavaScript 72.02% TypeScript 0.29% CSS 16.51% HTML 9.61% Batchfile 0.01% FreeMarker 1.56% Fluent 0.01%

keycloak-themes's Introduction

Keycloak Themes

Keycloak Themes used by the Genny system.

Contents

Overview

Implementation of Keycloak Themes for use by the genny system.

Developing Themes

Getting Started

To run keycloak on your machine, navigate to the directory and run the following command:

docker-compose up -d

Keycloak instance should now be running on http://localhost:8080/

To stop the instance of keycloak, run the following command:

docker-compose down

Creating a Theme

To create a new theme, following these steps:

1. Copy /themes/genny directory and change the directory name

2. Change the logo or name

The file /login/theme.properties has the following lines that can be edited:

  • projectName (string: any): The name of the project that will be displayed in the heading.
  • projectLogo (string: image url): The url of the logo that will be displayed in the heading.
  • displayProjectName (bool): If the name will be displayed.
  • displayProjectLogo (bool): If the logo will be displayed.

3. Change the colors

The file /login/resources/css/login.css has the following colours defined:

  • PRIMARY COLOUR: The main colour used in the theme. Will be applied to the header background, buttons, input borders, the subheading text, and links.
  • ON PRIMARY COLOUR: The color that will be used for the project name, if any.

Change all of the instances of the colour in those code blocks to the desired colour.

4. Change the background image

The file /login/resources/css/login.css has the following image defined:

  • BACKGROUND IMAGE: The main image used for the background. You can edit the file path to a new image you place in the directory /login/resources/img/, or you can replace the image background1.jpg with your new image.

Deploying to production

To deploy your new or updated themes to the production keycloak server:

Package the Jar file:

./package.sh <theme-name>

SSH into the production server:

ssh ubuntu@keycloak11

Locate the repo and pull changes:

cd keycloak-themes

git pull

Copy the Jar to the docker container:

docker cp <theme-name>.jar <keycloak-container>:/opt/jboss/keycloak/standalone/deployments

You should now see your themes in the admin console of keycloak.

Note:

Alternatively you can package all themes at once using:

./package-all.sh

Changelog

  • Initial Test of updated Themes.
  • Added documentation.
  • Added packaging script
  • Updated package.json

keycloak-themes's People

Contributors

conorpirie avatar trahulsam1997 avatar mnzit avatar alwyc avatar jasperrob avatar hbjoylee avatar expressionless avatar c7yrus avatar adamcrow64 avatar devjs avatar digesh-bajracharya avatar thabo-hub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.