Code and UI conventions
Write code that looks like the code around it: same structure, same naming, about the same number of comments.
Code
- TypeScript everywhere, strict, and
bun run checkmust pass. - Settings go in each resource's JSON config files, not convars. Server-only settings stay in files that are never listed in
files{}. - Use
@raze/sharedhelpers before writing your own:db, the ready system,provideExports/resourceExports, progress bars (@raze/shared/server/bar) and the animation presets. - Every world interaction goes through
raze_interact. No third-eye targeting and no plain "Press E" text. - New resources come from
bun run new raze_<name>, and only when no existing resource fits. - Never rename a command players already use.
- US spelling in code, comments and UI text.
UI (Raze blue)
- Every screen lives in
raze_uiand uses the tokens inresources/raze_ui/web/src/styles.css. - Deep navy panels.
- One primary action per screen: a bright blue gradient button.
- Color only for meaning, through the
--success,--danger,--warningand--infotokens. No other accent colors. Job screens like the MDT may use their job's color inside. The phone app icons are colored on purpose; leave them. - Type, through the
--font-displayand--fonttokens:- Unbounded Bold for headlines and section titles. Every
h1andh2gets it automatically. - Archivo Semibold for subheadings (
h3), navigation and buttons. - Archivo Regular for paragraphs and general content.
- Archivo stands in for the brand's Acumin Pro, a paid Adobe font. If we get licensed Acumin files, swap the font files,
--font, the loadscreen'sstyle.cssand this site's theme. - The logo is custom geometric lettering, not a font. Until we have it as an image, the RAZE wordmark is set in Unbounded.
- Unbounded Bold for headlines and section titles. Every
- Never use
backdrop-filterblur. FiveM renders it as black boxes, so use rgba backgrounds instead.