Expand description
Common font recommendations for Aceternity-style UIs
These fonts are commonly used in modern UI design and pair well with the Armas component library.
§Inter
- Use case: General UI, buttons, labels
- Download: https://fonts.google.com/specimen/Inter
- Weights: 100-900 (use 400, 500, 600, 700)
§Geist
- Use case: Modern tech UIs
- Download: https://vercel.com/font
- Weights: Regular, Medium,
SemiBold, Bold
§JetBrains Mono
- Use case: Code, monospace needs
- Download: https://www.jetbrains.com/lp/mono/
- Weights: 100-800
§Example: Loading Inter
ⓘ
let inter_regular = include_bytes!("../fonts/Inter-Regular.ttf");
let inter_medium = include_bytes!("../fonts/Inter-Medium.ttf");
let inter_semibold = include_bytes!("../fonts/Inter-SemiBold.ttf");
let inter_bold = include_bytes!("../fonts/Inter-Bold.ttf");
armas_basic::fonts::load_font_family(
ctx,
"Inter",
inter_regular,
Some(inter_medium),
Some(inter_semibold),
Some(inter_bold),
);
// Set as default
armas_basic::fonts::set_default_font(ctx, "Inter");