CSS variables
Theming
Easy Forms styles every field through the CSS variables in one theme file. Change a few of them and the same form fits a different site, without touching the templates.
easy-forms-theme.css
@theme {
--color-ef-accent: var(--color-sky-700);
--color-ef-accent-hover: var(--color-sky-800);
--color-ef-input-bg: var(--color-gray-50);
--color-ef-border: var(--color-gray-300);
--radius-ef: var(--radius-lg);
}
easy-forms-theme.css
@theme {
--color-ef-accent: #2D7476;
--color-ef-accent-hover: #245E60;
--color-ef-input-bg: #F4F8F8;
--color-ef-border: #C9D8D8;
--color-ef-rating: #D9620B;
--radius-ef: 9999px;
}
easy-forms-theme.css
@theme {
--color-ef-accent: #7CCFC9;
--color-ef-text: #E6F0F0;
--color-ef-label: #E6F0F0;
--color-ef-input-bg: #17272A;
--color-ef-border: #2C4245;
--color-ef-button-text: #0F1A1C;
--radius-ef: 0.25rem;
}