X Enterprises

Configuration

app.config.ts and runtimeConfig reference for xlayer-ui.

Configuration

app.config.ts

export default defineAppConfig({
  xUI: {
    fonts: {
      display: 'Mona Sans',
      body: 'Mona Sans',
      mono: 'Hubot Sans',
    },
    typography: {
      display: { size: '3.75rem', leading: '1', tracking: '-0.025em', weight: '800' },
      headline: { size: '2.25rem', leading: '1.1', tracking: '-0.02em', weight: '700' },
      title: { size: '1.5rem', leading: '1.25', tracking: '-0.01em', weight: '600' },
      body: { size: '1rem', leading: '1.625', tracking: '0', weight: '400' },
      small: { size: '0.875rem', leading: '1.5', tracking: '0', weight: '400' },
      caption: { size: '0.75rem', leading: '1.5', tracking: '0.01em', weight: '400' },
    },
    spacing: {
      xs: '0.25rem',
      sm: '0.5rem',
      md: '1rem',
      lg: '1.5rem',
      xl: '2rem',
      '2xl': '3rem',
      '3xl': '4rem',
    },
    radius: {
      sm: '0.375rem',
      md: '0.5rem',
      lg: '0.75rem',
      xl: '1rem',
      full: '9999px',
    },
    duration: {
      instant: '100ms',
      fast: '150ms',
      normal: '250ms',
      slow: '400ms',
      slower: '700ms',
    },
  },
})

Schema Reference

KeyTypeDefaultDescription
fonts.displaystring'Mona Sans'Display font family name. Maps to --x-font-display.
fonts.bodystring'Mona Sans'Body font family name. Maps to --x-font-body.
fonts.monostring'Hubot Sans'Monospace font family name. Maps to --x-font-mono.
typography.display.sizestring'3.75rem'Display scale font size.
typography.display.leadingstring'1'Display scale line height.
typography.display.trackingstring'-0.025em'Display scale letter spacing.
typography.display.weightstring'800'Display scale font weight.
typography.headline.sizestring'2.25rem'Headline scale font size.
typography.headline.leadingstring'1.1'Headline scale line height.
typography.headline.trackingstring'-0.02em'Headline scale letter spacing.
typography.headline.weightstring'700'Headline scale font weight.
typography.title.sizestring'1.5rem'Title scale font size.
typography.title.leadingstring'1.25'Title scale line height.
typography.title.trackingstring'-0.01em'Title scale letter spacing.
typography.title.weightstring'600'Title scale font weight.
typography.body.sizestring'1rem'Body scale font size.
typography.body.leadingstring'1.625'Body scale line height.
typography.small.sizestring'0.875rem'Small text font size.
typography.caption.sizestring'0.75rem'Caption text font size.
spacing.xsstring'0.25rem'Extra-small spacing token. Maps to --x-space-xs.
spacing.smstring'0.5rem'Small spacing token. Maps to --x-space-sm.
spacing.mdstring'1rem'Medium spacing token. Maps to --x-space-md.
spacing.lgstring'1.5rem'Large spacing token. Maps to --x-space-lg.
spacing.xlstring'2rem'Extra-large spacing token. Maps to --x-space-xl.
spacing.2xlstring'3rem'2x extra-large spacing token. Maps to --x-space-2xl.
spacing.3xlstring'4rem'3x extra-large spacing token. Maps to --x-space-3xl.
radius.smstring'0.375rem'Small border radius. Maps to --x-radius-sm.
radius.mdstring'0.5rem'Medium border radius. Maps to --x-radius-md.
radius.lgstring'0.75rem'Large border radius. Maps to --x-radius-lg.
radius.xlstring'1rem'Extra-large border radius. Maps to --x-radius-xl.
radius.fullstring'9999px'Full (pill) border radius. Maps to --x-radius-full.
duration.instantstring'100ms'Instant animation duration. Maps to --x-duration-instant.
duration.faststring'150ms'Fast animation duration. Maps to --x-duration-fast.
duration.normalstring'250ms'Normal animation duration. Maps to --x-duration-normal.
duration.slowstring'400ms'Slow animation duration. Maps to --x-duration-slow.
duration.slowerstring'700ms'Slower animation duration. Maps to --x-duration-slower.

Runtime Config / Environment Variables

None required.


AI Context

package: "xlayer-ui"
config-key: xUI
Copyright © 2026