Skip to content

Commit

Permalink
feat: added new default styles (#231)
Browse files Browse the repository at this point in the history
* added new default styles

* Add changeset

---------

Co-authored-by: Andrew Smith <[email protected]>
  • Loading branch information
Hallidayo and silentworks authored Nov 5, 2023
1 parent 2ff64af commit ae22ff2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/mighty-meals-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@supabase/auth-ui-svelte': patch
'@supabase/auth-ui-solid': patch
---

Message styling change
9 changes: 8 additions & 1 deletion packages/solid/src/components/UI/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,24 @@ import { Appearance } from '../../types'

const messageDefaultStyles = css({
fontFamily: '$bodyFontFamily',
fontSize: '$baseBodySize',
fontSize: '$baseInputSize',
marginBottom: '$labelBottomMargin',
display: 'block',
textAlign: 'center',
borderRadius: '0.375rem',
padding: '1.5rem 1rem',
lineHeight: '1rem',
variants: {
color: {
default: {
color: '$messageText',
backgroundColor: '$messageBackground',
border: '1px solid $messageBorder',
},
danger: {
color: '$messageTextDanger',
backgroundColor: '$messageBackgroundDanger',
border: '1px solid $messageBorderDanger',
},
},
},
Expand Down
13 changes: 10 additions & 3 deletions packages/svelte/src/lib/UI/Message.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,24 @@
const messageDefaultStyles = css({
fontFamily: '$bodyFontFamily',
fontSize: '$baseBodySize',
fontSize: '$baseInputSize',
marginBottom: '$labelBottomMargin',
display: 'block',
textAlign: 'center',
borderRadius: '0.375rem',
padding: '1.5rem 1rem',
lineHeight: '1rem',
variants: {
color: {
default: {
color: '$messageText'
color: '$messageText',
backgroundColor: '$messageBackground',
border: '1px solid $messageBorder'
},
danger: {
color: '$messageTextDanger'
color: '$messageTextDanger',
backgroundColor: '$messageBackgroundDanger',
border: '1px solid $messageBorderDanger'
}
}
}
Expand Down

0 comments on commit ae22ff2

Please sign in to comment.