diff --git a/web/components/wo-form.mjs b/web/components/wo-form.mjs index e3584cc..ac9fa67 100644 --- a/web/components/wo-form.mjs +++ b/web/components/wo-form.mjs @@ -26,21 +26,22 @@ class WoForm extends HTMLElement { :host { display: block; } form { display: grid; gap: 1rem; } .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } - label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; font-weight: 600; color: #1a2e3b; } + label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; font-weight: 600; color: var(--text); } input, select, textarea { - border: 1px solid #e2ebf0; border-radius: 8px; - padding: .5rem .75rem; font-size: .95rem; background: #fff; color: #1a2e3b; + border: 1px solid var(--border); border-radius: 8px; + padding: .5rem .75rem; font-size: .95rem; background: var(--surface); color: var(--text); + color-scheme: inherit; } - input:focus, select:focus, textarea:focus { outline: none; border-color: #0a7ea4; } + input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); } textarea { resize: vertical; min-height: 80px; } .actions { display: flex; gap: .75rem; justify-content: flex-end; } button { padding: .5rem 1.25rem; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; } - .btn-primary { background: #0a7ea4; color: #fff; } - .btn-cancel { background: transparent; border: 1px solid #e2ebf0; color: #1a2e3b; } - .error { color: #c0392b; font-size: .85rem; } + .btn-primary { background: var(--accent); color: #fff; } + .btn-cancel { background: transparent; border: 1px solid var(--border); color: var(--text); } + .error { color: var(--danger); font-size: .85rem; }