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
.fastn
is fastn serve
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
Have a question or need help?
Visit our GitHub Q&A discussion to get answers and subscribe to it to stay tuned.
Join our Discord channel and share your thoughts, suggestion, question etc.
Connect with our community!We welcome you to join our Discord community today.
We are trying to create the language for human beings and we do not believe it would be possible without your support. We would love to hear from you.