feat: allow theming of input elements

This commit is contained in:
Phan An 2023-08-20 14:05:13 +02:00
parent e25d22b41c
commit c9e4c08e4a
No known key found for this signature in database
GPG key ID: A81E4477F0BB6FDC
3 changed files with 7 additions and 0 deletions

View file

@ -333,6 +333,8 @@ type ThemeableProperty = '--color-text-primary'
| '--color-bg-primary'
| '--color-bg-secondary'
| '--color-highlight'
| '--color-bg-input'
| '--color-text-input'
| '--bg-image'
| '--bg-position'
| '--bg-attachment'

View file

@ -43,6 +43,8 @@ textarea,
padding: .5rem .6rem;
border-radius: .3rem;
margin: 0;
background: var(--color-bg-input);
color: var(--color-input);
&:required,
&:invalid {

View file

@ -7,6 +7,9 @@
--color-accent: var(--color-highlight);
--color-bg-context-menu: var(--color-bg-primary);
--color-input: #333;
--color-bg-input: #fff;
--bg-image: none;
--bg-position: center;
--bg-attachment: fixed;