James Edwards on Nostr: Is it an abuse of #css #system #colors to use them as a generalized palette for UI ...
Is it an abuse of #css #system #colors to use them as a generalized palette for UI features that don't have an explicit system color (assuming no direct contradiction)?
For example -- a button's border should be `ButtonBorder`, the text in a form field should be `FieldText`, and it would be bad practice to use any other name.
But there's no "FieldBorder" (it inherits from `ButtonBorder`) so would it be legit to use something like `VisitedText` as the border-color for an invalid field?
Published at
2024-06-26 12:13:53Event JSON
{
"id": "f2938ae19d3b75ad3a409610eb9a3c6c6a741e22ef1d5702d851bc376b953a6d",
"pubkey": "5d78a900466c87ad276db31284220f3ac3611f9d40d4e0f9adabe87673b35e0a",
"created_at": 1719404033,
"kind": 1,
"tags": [
[
"t",
"css"
],
[
"t",
"system"
],
[
"t",
"colors"
],
[
"proxy",
"https://mastodon.world/users/siblingpastry/statuses/112682862726840687",
"activitypub"
]
],
"content": "Is it an abuse of #css #system #colors to use them as a generalized palette for UI features that don't have an explicit system color (assuming no direct contradiction)?\n\nFor example -- a button's border should be `ButtonBorder`, the text in a form field should be `FieldText`, and it would be bad practice to use any other name.\n\nBut there's no \"FieldBorder\" (it inherits from `ButtonBorder`) so would it be legit to use something like `VisitedText` as the border-color for an invalid field?",
"sig": "06d182785a08cf33d3265ac8ad6144d072a8a29f219e5cd3fb7c4a77d15dc62eba91191883d2f816b5a8bd83848b1970efda28dbc4d850d14a0a855083e5d6aa"
}