--- 
title: Text
description: Body text, utility text and inline text styling utilities
category: components
a1Full: true
group: Data Display

module: NxTextModule
components:
  - name: NxAccentColorComponent
    selector: [nx-accent-color]
    desc: |
      Applies an accent color to inline text fragments.
      
      A1 only: not mapped / styled for NDBX brand. In NDBX it's mapped to opensource color.
    inputs:
      - name: color
        desc: "Required accent color. No implicit default: consumer must provide a valid color."
        default: input.required<NxAccentColorOption>({ alias: 'nx-accent-color' })
        type: "InputSignal<'yellow' | 'orange' | 'red' | 'purple' | 'teal' | 'aqua' | 'blue' | 'green' | 'gray'>"
      - name: negative
        desc: "Whether to use the negative to invert color"
        default: input(false, { transform: booleanAttribute })
        type: "InputSignalWithTransform<boolean, unknown>"
  - name: NxBodyTextComponent
    selector: [nxBodyText]
    desc: |
      Applies the A1 body text typography to running text.
    inputs:
      - name: size
        desc: "Sets the font size of the body text."
        default: input<NxBodyTextSize>('m')
        type: "InputSignal<'s' | 'm' | 'l'>"
      - name: type
        desc: "Sets the text color to the primary or secondary tone."
        default: input<NxBodyTextType>('primary')
        type: "InputSignal<'primary' | 'secondary'>"
      - name: inverse
        desc: "Whether the inverse colors for use on dark backgrounds should be applied."
        default: input(false, { transform: booleanAttribute })
        type: "InputSignalWithTransform<boolean, unknown>"
      - name: colorScheme
        desc: "The color scheme of the body text. Only relevant for the A1 Design."
        default: input<NxBodyTextColorScheme>(DEFAULT_COLOR_SCHEME)
        type: "InputSignal<'default' | 'on-accent-attention'>"
  - name: NxUtilityTextComponent
    selector: [nxUtilityText]
    desc: |
      Applies the A1 utility text typography to functional text like labels, captions or metadata.
      
      A1 only: not mapped / styled for the NDBX brand.
    inputs:
      - name: size
        desc: "Sets the font size of the utility text."
        default: input<NxUtilityTextSize>('m')
        type: "InputSignal<'s' | 'm' | 'l'>"
      - name: type
        desc: "Sets the text color to the primary or secondary tone."
        default: input<NxUtilityTextType>('primary')
        type: "InputSignal<'primary' | 'secondary'>"
      - name: attention
        desc: "Whether the text should be emphasized with a heavier font weight."
        default: input(false, { transform: booleanAttribute })
        type: "InputSignalWithTransform<boolean, unknown>"
      - name: inverse
        desc: "Whether the inverse colors for use on dark backgrounds should be applied."
        default: input(false, { transform: booleanAttribute })
        type: "InputSignalWithTransform<boolean, unknown>"
      - name: colorScheme
        desc: "The color scheme of the utility text. Only relevant for the A1 Design."
        default: input<NxUtilityTextColorScheme>(DEFAULT_COLOR_SCHEME)
        type: "InputSignal<'default' | 'on-accent-attention'>"

---
# Overview
<div class="docs-ndbx">
