fit
property set to cover
classes
-- ftd.text: hello
class: yo
-- ftd.text: hello
classes: yo
Most of the time we want to add a single attribute. We use singular name for plural even for text style and css etc.
We can not removeclasses
as it would break existing code, so we have to it on
next edition.ftd.color
ftd.raw-color
and change the definition of ftd.color
to
use ftd.raw-color
instead of string
as light
and dark
.ftd.image-src
ftd.raw-image-src
as the types of light
and dark
instead of string
.ftd.device
: string -> or-type
string
to represent ftd.device
. Our or-type
is superior
and recommended way for modelling such enumerated constants.ftd.ui
-> ui
ui
? Also children
,
which is and alias for ftd.ui list
does not have ftd.
prefix.ftd.color-scheme
related typesWe have a few abbrevated names. We prefer longer/descriptive names.
ftd.btb -> ftd.body-text-border
ftd.pst -> ftd.primary-secondary-tertiary
ftd.custom -> ftd.custom-colors