Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Commit ae22ff2

Browse files
feat: added new default styles (#231)
* added new default styles * Add changeset --------- Co-authored-by: Andrew Smith <a.smith@silentworks.co.uk>
1 parent 2ff64af commit ae22ff2

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

.changeset/mighty-meals-flow.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@supabase/auth-ui-svelte': patch
3+
'@supabase/auth-ui-solid': patch
4+
---
5+
6+
Message styling change

packages/solid/src/components/UI/Message.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,24 @@ import { Appearance } from '../../types'
55

66
const messageDefaultStyles = css({
77
fontFamily: '$bodyFontFamily',
8-
fontSize: '$baseBodySize',
8+
fontSize: '$baseInputSize',
99
marginBottom: '$labelBottomMargin',
1010
display: 'block',
1111
textAlign: 'center',
12+
borderRadius: '0.375rem',
13+
padding: '1.5rem 1rem',
14+
lineHeight: '1rem',
1215
variants: {
1316
color: {
1417
default: {
1518
color: '$messageText',
19+
backgroundColor: '$messageBackground',
20+
border: '1px solid $messageBorder',
1621
},
1722
danger: {
1823
color: '$messageTextDanger',
24+
backgroundColor: '$messageBackgroundDanger',
25+
border: '1px solid $messageBorderDanger',
1926
},
2027
},
2128
},

packages/svelte/src/lib/UI/Message.svelte

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,24 @@
55
66
const messageDefaultStyles = css({
77
fontFamily: '$bodyFontFamily',
8-
fontSize: '$baseBodySize',
8+
fontSize: '$baseInputSize',
99
marginBottom: '$labelBottomMargin',
1010
display: 'block',
1111
textAlign: 'center',
12+
borderRadius: '0.375rem',
13+
padding: '1.5rem 1rem',
14+
lineHeight: '1rem',
1215
variants: {
1316
color: {
1417
default: {
15-
color: '$messageText'
18+
color: '$messageText',
19+
backgroundColor: '$messageBackground',
20+
border: '1px solid $messageBorder'
1621
},
1722
danger: {
18-
color: '$messageTextDanger'
23+
color: '$messageTextDanger',
24+
backgroundColor: '$messageBackgroundDanger',
25+
border: '1px solid $messageBorderDanger'
1926
}
2027
}
2128
}

0 commit comments

Comments
 (0)