mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-19 21:03:23 +12:00
chore(docs): Add tailwind configuration to phoenix guide.
Closes https://github.com/team-alembic/ash_authentication_phoenix/issues/31
This commit is contained in:
parent
395388f91e
commit
268a6ef685
1 changed files with 17 additions and 1 deletions
|
@ -209,7 +209,7 @@ pick the level of customisation you require.
|
|||
* {{link:ash_authentication_phoenix:module:AshAuthentication.Phoenix.Components.OAuth2}}
|
||||
A component which renders a sign-in button for an OAuth 2.0 provider.
|
||||
|
||||
## Overrides
|
||||
### Overrides
|
||||
|
||||
All the components above and the {{link:ash_authentication_phoenix:AshAuthentication.Phoenix.SignInLive}}
|
||||
LiveView are customisable via the {{link:ash_authentication_phoenix:AshAuthentication.Phoenix.Overrides}}
|
||||
|
@ -218,6 +218,22 @@ system.
|
|||
Overrides allow you to configure CSS classes and other options for the
|
||||
components without needing to modify them.
|
||||
|
||||
### Tailwind
|
||||
|
||||
If you plan on using our default [Tailwind](https://tailwindcss.com/)-based
|
||||
components without overriding them you will need to modify your
|
||||
`assets/tailwind.config.js` to include the `ash_authentication_phoenix`
|
||||
dependency:
|
||||
|
||||
```javascript
|
||||
module.exports = {
|
||||
content: [
|
||||
// Other paths.
|
||||
"../deps/ash_authentication_phoenix/**/*.ex"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Summary
|
||||
|
||||
In this guide we've learned how to add Ash Authentication to Phoenix, configure
|
||||
|
|
Loading…
Reference in a new issue