bevy_codex/styles.rs
1use bevy::{color::palettes::css::BLACK, prelude::*};
2
3pub const TITLE_FONT: f32 = 15.0;
4pub const BASE_FONT: f32 = 10.0;
5
6pub fn get_title_text_styles(asset_server: &Res<AssetServer>) -> TextStyle {
7 TextStyle {
8 font: asset_server.load("fonts/FiraSans-Bold.ttf"),
9 font_size: TITLE_FONT,
10 color: BLACK.into(),
11 }
12}