mod.theme = mod.themes.dark // Knitted. A deep denim-blue stockinette ground with every // control a padded patch of knit sewn on it in a bright yarn -- cream, // yellow, teal, purple, red -- and cream lettering; yellow marks what // is chosen and set. // The faces are drawn in widgets.splash; this file holds the tokens every // face and every stock widget reads. mod.theme.color_bg_app = #255a87 mod.theme.color_fg_app = #265886 mod.theme.color_bg_container = #255a87 mod.theme.color_surface_container = #2f5c3e mod.theme.color_surface_container_lowest = #132f4f mod.theme.color_surface_container_highest = #1f4b75 mod.theme.color_surface_bright = #204e7a mod.theme.color_bg_even = #00000000 mod.theme.color_bg_odd = #ffffff08 mod.theme.color_highlight = #e9b23a mod.theme.color_bg_highlight = #2f5c3e mod.theme.color_bg_highlight_inline = #e9b23a50 // Raised faces the sheet does not redraw: a patch of the plain yarn. mod.theme.color_outset = #80838d mod.theme.color_outset_1 = #80838d mod.theme.color_outset_2 = #80838d mod.theme.color_outset_hover = #80838d mod.theme.color_outset_1_hover = #80838d mod.theme.color_outset_2_hover = #80838d mod.theme.color_outset_focus = #80838d mod.theme.color_outset_1_focus = #80838d mod.theme.color_outset_2_focus = #80838d mod.theme.color_outset_active = #e9b23a mod.theme.color_outset_1_active = #e9b23a mod.theme.color_outset_2_active = #e9b23a mod.theme.color_outset_down = #80838d mod.theme.color_outset_1_down = #80838d mod.theme.color_outset_2_down = #80838d mod.theme.color_outset_drag = #80838d mod.theme.color_outset_1_drag = #80838d mod.theme.color_outset_2_drag = #80838d mod.theme.color_outset_disabled = #3c4553 mod.theme.color_outset_1_disabled = #3c4553 mod.theme.color_outset_2_disabled = #3c4553 // Wells: the field yarn, opaque in every state. mod.theme.color_inset = #e3d7bd mod.theme.color_inset_1 = #e3d7bd mod.theme.color_inset_2 = #e3d7bd mod.theme.color_inset_hover = #e3d7bd mod.theme.color_inset_1_hover = #e3d7bd mod.theme.color_inset_2_hover = #e3d7bd mod.theme.color_inset_focus = #e3d7bd mod.theme.color_inset_1_focus = #e3d7bd mod.theme.color_inset_2_focus = #e3d7bd mod.theme.color_inset_active = #e3d7bd mod.theme.color_inset_1_active = #e3d7bd mod.theme.color_inset_2_active = #e3d7bd mod.theme.color_inset_down = #e3d7bd mod.theme.color_inset_1_down = #e3d7bd mod.theme.color_inset_2_down = #e3d7bd mod.theme.color_inset_drag = #e3d7bd mod.theme.color_inset_1_drag = #e3d7bd mod.theme.color_inset_2_drag = #e3d7bd mod.theme.color_inset_empty = #e3d7bd mod.theme.color_inset_1_empty = #e3d7bd mod.theme.color_inset_2_empty = #e3d7bd mod.theme.color_inset_disabled = #3c4553 mod.theme.color_inset_1_disabled = #3c4553 mod.theme.color_inset_2_disabled = #3c4553 // The edges of a stock face: the seam's yarn. mod.theme.beveling = 0.5 mod.theme.color_bevel = #132f50 mod.theme.color_bevel_hover = #132f50 mod.theme.color_bevel_focus = #ffd25a mod.theme.color_bevel_active = #132f50 mod.theme.color_bevel_empty = #132f50 mod.theme.color_bevel_down = #132f50 mod.theme.color_bevel_drag = #132f50 mod.theme.color_bevel_disabled = #3c4553 mod.theme.color_bevel_inset_1 = #132f50 mod.theme.color_bevel_inset_2 = #132f50 mod.theme.color_bevel_outset_1 = #132f50 mod.theme.color_bevel_outset_2 = #132f50 mod.theme.color_bevel_inset_1_hover = #132f50 mod.theme.color_bevel_inset_2_hover = #132f50 mod.theme.color_bevel_outset_1_hover = #132f50 mod.theme.color_bevel_outset_2_hover = #132f50 mod.theme.color_bevel_inset_1_focus = #ffd25a mod.theme.color_bevel_inset_2_focus = #ffd25a mod.theme.color_bevel_outset_1_focus = #ffd25a mod.theme.color_bevel_outset_2_focus = #ffd25a mod.theme.color_bevel_inset_1_down = #132f50 mod.theme.color_bevel_inset_2_down = #132f50 mod.theme.color_bevel_outset_1_down = #132f50 mod.theme.color_bevel_outset_2_down = #132f50 mod.theme.color_bevel_inset_1_disabled = #3c4553 mod.theme.color_bevel_inset_2_disabled = #3c4553 mod.theme.color_bevel_outset_1_disabled = #3c4553 mod.theme.color_bevel_outset_2_disabled = #3c4553 // Ink: a cream yarn, about 8:1 on the denim. mod.theme.color_text = #f1e9d6 mod.theme.color_text_hover = #f1e9d6 mod.theme.color_text_focus = #f1e9d6 mod.theme.color_text_active = #f1e9d6 mod.theme.color_text_down = #f1e9d6 mod.theme.color_text_val = #f1e9d6 mod.theme.color_text_hl = #f1e9d6 mod.theme.color_text_disabled = #6d7f96 mod.theme.color_text_placeholder = #a8b4c4 mod.theme.color_text_placeholder_hover = #a8b4c4 mod.theme.color_text_meta = #c9cfd8 mod.theme.color_text_cursor = #f1e9d6 mod.theme.color_cursor = #f1e9d6 mod.theme.color_cursor_focus = #f1e9d6 mod.theme.color_label = #f1e9d6 mod.theme.color_label_hover = #f1e9d6 mod.theme.color_label_focus = #f1e9d6 mod.theme.color_label_active = #f1e9d6 mod.theme.color_label_down = #f1e9d6 mod.theme.color_label_disabled = #6d7f96 mod.theme.color_label_inner = #f1e9d6 mod.theme.color_label_inner_hover = #f1e9d6 mod.theme.color_label_inner_focus = #f1e9d6 mod.theme.color_label_inner_active = #2a2010 mod.theme.color_label_inner_down = #f1e9d6 mod.theme.color_label_inner_drag = #f1e9d6 mod.theme.color_label_inner_inactive = #f1e9d6 mod.theme.color_label_inner_disabled = #6d7f96 mod.theme.color_label_outer = #f1e9d6 mod.theme.color_label_outer_off = #f1e9d6 mod.theme.color_label_outer_hover = #f1e9d6 mod.theme.color_label_outer_focus = #f1e9d6 mod.theme.color_label_outer_active = #f1e9d6 mod.theme.color_label_outer_active_focus = #f1e9d6 mod.theme.color_label_outer_down = #f1e9d6 mod.theme.color_label_outer_drag = #f1e9d6 mod.theme.color_label_outer_disabled = #6d7f96 mod.theme.color_icon = #f1e9d6 mod.theme.color_icon_hover = #f1e9d6 mod.theme.color_icon_focus = #f1e9d6 mod.theme.color_icon_active = #2a2010 mod.theme.color_icon_down = #f1e9d6 mod.theme.color_icon_disabled = #6d7f96 mod.theme.color_on_surface = #f1e9d6 mod.theme.color_on_surface_variant = #f1e9d6 // The accent yarn fills a value, sets a mark and draws focus. mod.theme.color_focus = #ffd25a mod.theme.color_ctrl_active = #e9b23a mod.theme.color_val = #46bce6 mod.theme.color_val_hover = #46bce6 mod.theme.color_val_focus = #46bce6 mod.theme.color_val_drag = #46bce6 mod.theme.color_val_disabled = #3c4553 mod.theme.color_mark = #f1e9d6 mod.theme.color_mark_active = #e9b23a mod.theme.color_mark_active_hover = #e9b23a mod.theme.color_mark_focus = #e9b23a mod.theme.color_mark_disabled = #3c4553 // The accent seed: the primary, secondary and tertiary families are grown // from its hue. mod.theme.color_ctrl_selected = #e9b23a mod.theme.color_text_on_accent = #2a2010 mod.theme.color_selection = #00000000 mod.theme.color_selection_hover = #e9b23a38 mod.theme.color_selection_down = #e9b23a66 mod.theme.color_selection_focus = #e9b23a66 mod.theme.color_handle = #e9ddc5 mod.theme.color_handle_hover = #e9ddc5 mod.theme.color_handle_1 = #e9ddc5 mod.theme.color_handle_2 = #e9ddc5 // Screens: dark knit with lit figures. mod.theme.color_screen = #121b28 mod.theme.color_screen_ink = #5fe0c8 mod.theme.screen_ghost = 0.08 mod.theme.color_lamp_plain = #f4f1ea mod.theme.color_lamp_off = #2a2a2e mod.theme.color_terminal_bg = #121b28 mod.theme.color_terminal_text = #5fe0c8 // SPACING. Rows of 26 points, gaps of 8 between controls, panels padded // 12. The base froze what it derived from the factor, so every rung this // sheet depends on is stated again. mod.theme.space_factor = 8.0 mod.theme.space_1 = 4.0 mod.theme.space_2 = 8.0 mod.theme.space_3 = 12.0 mod.theme.space_4 = 16.0 mod.theme.space_5 = 24.0 mod.theme.space_6 = 32.0 mod.theme.mspace_1 = mod.turtle.Inset{top: 4.0 right: 4.0 bottom: 4.0 left: 4.0} mod.theme.mspace_h_1 = mod.turtle.Inset{top: 0.0 right: 4.0 bottom: 0.0 left: 4.0} mod.theme.mspace_v_1 = mod.turtle.Inset{top: 4.0 right: 0.0 bottom: 4.0 left: 0.0} mod.theme.mspace_2 = mod.turtle.Inset{top: 8.0 right: 8.0 bottom: 8.0 left: 8.0} mod.theme.mspace_h_2 = mod.turtle.Inset{top: 0.0 right: 8.0 bottom: 0.0 left: 8.0} mod.theme.mspace_v_2 = mod.turtle.Inset{top: 8.0 right: 0.0 bottom: 8.0 left: 0.0} mod.theme.mspace_3 = mod.turtle.Inset{top: 12.0 right: 12.0 bottom: 12.0 left: 12.0} mod.theme.mspace_h_3 = mod.turtle.Inset{top: 0.0 right: 12.0 bottom: 0.0 left: 12.0} mod.theme.mspace_v_3 = mod.turtle.Inset{top: 12.0 right: 0.0 bottom: 12.0 left: 0.0} mod.theme.size_control_s = 22.0 mod.theme.size_control_m = 26.0 mod.theme.size_control_l = 30.0 mod.theme.tab_height = 28.0 mod.theme.tab_flat_height = 26.0 mod.theme.data_item_height = 22.0 // Stock shaders draw a corner twice the number written: 4 is the 8 point // corner of a patch, 4.5 the 9 point corner of a panel. mod.theme.corner_radius = 4.0 mod.theme.container_corner_radius = 4.5 mod.theme.textselection_corner_radius = 1.0 mod.theme.radius_s = 3.0 mod.theme.radius_m = 4.0 mod.theme.radius_l = 8.0 // TYPE. Fredoka, the round face whose letters look sewn on with a thick // yarn: regular for working text, medium on the patches, semibold for the // captions. Labels at 8.5 points, so the cap height is about a third of the // 26 point row. mod.theme.font_size_p = 8.5 mod.theme.font_size_base = 8.5 mod.theme.type_title_l_size = 12.0 mod.theme.type_title_m_size = 10.5 mod.theme.type_title_s_size = 9.5 mod.theme.type_body_l_size = 9.0 mod.theme.type_body_m_size = 8.5 mod.theme.type_body_s_size = 8.0 mod.theme.type_label_l_size = 8.5 mod.theme.type_label_m_size = 8.0 mod.theme.type_label_s_size = 7.5 mod.theme.font_size_4 = 10.5 use mod.res.* use mod.text.* mod.theme.font_regular = mod.theme.font_regular{font_size: 8.5 font_family: mod.theme.font_regular.font_family{ibm_plex_text := FontMember{res: crate_resource("self:resources/Fredoka-Variable.ttf") weight: 460.0 asc: 0.0 desc: 0.0}}} mod.theme.font_label = mod.theme.font_label{font_size: 8.5 font_family: mod.theme.font_label.font_family{ibm_plex_text := FontMember{res: crate_resource("self:resources/Fredoka-Variable.ttf") weight: 590.0 asc: 0.0 desc: 0.0}}} mod.theme.font_bold = mod.theme.font_bold{font_size: 9.5 font_family: mod.theme.font_bold.font_family{ibm_plex_semibold := FontMember{res: crate_resource("self:resources/Fredoka-Variable.ttf") weight: 620.0 asc: 0.0 desc: 0.0}}} mod.theme.font_title_l = mod.theme.font_bold{font_size: 12.0 line_spacing: 1.2} mod.theme.font_title_m = mod.theme.font_bold{font_size: 10.5 line_spacing: 1.2} mod.theme.font_title_s = mod.theme.font_bold{font_size: 9.5 line_spacing: 1.2} mod.theme.font_body_l = mod.theme.font_regular{font_size: 9.0 line_spacing: 1.35} mod.theme.font_body_m = mod.theme.font_regular{font_size: 8.5 line_spacing: 1.35} mod.theme.font_body_s = mod.theme.font_regular{font_size: 8.0 line_spacing: 1.35} mod.theme.font_label_l = mod.theme.font_bold{font_size: 8.5 line_spacing: 1.2} mod.theme.font_label_m = mod.theme.font_bold{font_size: 8.0 line_spacing: 1.2} mod.theme.font_label_s = mod.theme.font_bold{font_size: 7.5 line_spacing: 1.2} // No surface material: every face that matters is drawn by the sheet. mod.theme.material_level = 0.0 mod.theme.material_margin = 0.0 mod.theme.material_glow = 0.0 mod.theme.material_ink_glow = 0.0 mod.theme.color_material_glow = #e9b23a true