fastn
comes with some built-in variables, they are documented here.ftd.dark-mode
boolean
ftd.dark-mode
tells you if the UI should show dark or light mode. To change the system preference use the built in functions.ftd.system-dark-mode
boolean
ftd.dark-mode
may not be equal to ftd.system-dark-mode
if ftd.follow-system-dark-mode
is false
.ftd.follow-system-dark-mode
boolean
ftd.device
string
mobile
or desktop
. ftd.device
is automatically updated when the browser resizes and device width crosses ftd.mobile-breakpoint
and ftd.desktop-breakpoint
thresholds.ftd.mobile-breakpoint
integer
ftd.mobile-breakpoint
is the width in pixels below which fastn
assumes that the device is a mobile device, and sets ftd.device
to mobile
.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.