Skip to content

Commit 2dd5b5f

Browse files
committed
feat: minor styling changes
1 parent f106776 commit 2dd5b5f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/system/lib/Components.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,22 @@ const Components: Library = {
3131
const button = new HTML('button')
3232
button.style({
3333
'border-radius': '5px',
34-
padding: '2.5px',
35-
background: 'transparent',
36-
border: '1px solid var(--surface-0)'
34+
padding: '2.5px 5px',
35+
background: 'var(--base)',
36+
border: '1px solid var(--surface-1)'
3737
})
3838
return button
3939
}
4040
},
4141
Icon: {
42-
new: (icon: string) => {
42+
new: (icon: string, size = 'inherit') => {
4343
const { HTML } = library
4444
return new HTML('i')
4545
.class('material-symbols-rounded')
4646
.text(icon)
47+
.style({
48+
'font-size': size
49+
})
4750
}
4851
}
4952
}

0 commit comments

Comments
 (0)