nl-design-system / utrecht

Work in Progress: Utrecht Design System based on the NL Design System architecture. Storybook: https://nl-design-system.github.io/utrecht/storybook/
https://nl-design-system.github.io/utrecht/
European Union Public License 1.2
23 stars 15 forks source link

Should utrecht-form-field have a font-family token or not? #2259

Open Robbert opened 3 months ago

Robbert commented 3 months ago

Currently the CSS for .utrecht-form-field configures the font-family using var(--utrecht-document-font-family), which is kinda a common token.

One question is: should this be more fine-grained, should utrecht.form-field.font-family exist?

But perhaps the question should be: should utrecht-form-field as a container even have a font-family? Or should the font-family only be configurable for block level components or block level BEM elements inside the form field?

BEM element BEM display component component display component has font-family token?
label block utrecht-form-label inline no
description block utrecht-form-field-description inline no, applies from utrecht-document
description block utrecht-form-field-error-message inline no, applies from utrecht-document
input block utrecht-textbox inline-block yes, also applies from utrecht.form-control.font-family
status block utrecht-form-field-description inline no, applies from utrecht-document