Skip to main content

Frontend Architecture

xTrakt frontend applications use Angular standalone components, scoped SCSS, service-based state, and shared product theme tokens.

Conventions

AreaConvention
ComponentsStandalone components, no NgModules
StateBehaviorSubject in providedIn: 'root' services
FormsReactive Forms with FormBuilder
i18nTransloco files in src/assets/i18n/{en,pt-BR}.json
StylingComponent-scoped SCSS with global tokens in styles.scss
API parsingServices parse text responses manually with safeJsonParse<T>()

Theme Tokens

Canonical tokens include --color-primary, --surface-page, --surface-card, --text-muted, --radius-md, and --shadow-card. Legacy aliases should remain compatibility-only.