Skip to content

Commit

Permalink
Enable styling keycloak with react (#256)
Browse files Browse the repository at this point in the history
* Add current keycloak theme files

* Move keycloak dir up a step

* Create-react-app the keycloak-theme

* Switch from yarn.lock to package-lock.json

* Install keycloakify

* gitignore keycloak theme build files

* Add some simple styling that we should notice if it works

* Get storybook to render keycloak

* Add some more previewed screens in storybook

* Try adding a mui button (it works)

* Proof of concept replacing certain keycloak pages

* Add a hopefully functioning replacement for the ToC page

* Add some comments

* Move files

* Install tailwind

* Do some basic styling to the terms page

* Fix build and document deploy to prod

* Fix styling on tos links. Add docs on deploying to prod

* Update docs on loading email theme
  • Loading branch information
Powersource committed Jun 7, 2021
1 parent 40c9e46 commit cef8822
Show file tree
Hide file tree
Showing 22 changed files with 42,603 additions and 0 deletions.
24 changes: 24 additions & 0 deletions keycloak-theme/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build
/build_keycloak

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
8 changes: 8 additions & 0 deletions keycloak-theme/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"storybook-preset-craco",
],
};
9 changes: 9 additions & 0 deletions keycloak-theme/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
};
7 changes: 7 additions & 0 deletions keycloak-theme/craco.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
style: {
postcss: {
plugins: [require("tailwindcss"), require("autoprefixer")],
},
},
};

0 comments on commit cef8822

Please sign in to comment.