Offset is determined by chainline, which is impacted by rear hub spacing.
For Boost 148mm setups, use a 3mm offset X-SYNC 2 chainring. The 6mm offset chainring is used for non-Boost 142mm. However, some bike manufacturers are using unique offsets to adapt to their frame design. Please contact your frame designer for questions regarding chainline, hub spacing, and frame-specific requirements.