feat: minor styling changes

This commit is contained in:
ThinLiquid 2024-01-18 11:04:22 +00:00
parent f106776bee
commit 2dd5b5f887
No known key found for this signature in database
GPG key ID: 17538DC3DF6A7387

View file

@ -31,19 +31,22 @@ const Components: Library = {
const button = new HTML('button')
button.style({
'border-radius': '5px',
padding: '2.5px',
background: 'transparent',
border: '1px solid var(--surface-0)'
padding: '2.5px 5px',
background: 'var(--base)',
border: '1px solid var(--surface-1)'
})
return button
}
},
Icon: {
new: (icon: string) => {
new: (icon: string, size = 'inherit') => {
const { HTML } = library
return new HTML('i')
.class('material-symbols-rounded')
.text(icon)
.style({
'font-size': size
})
}
}
}