Files
andrew 987ff560f5 Add initial Nebula Core packages and docs
Import initial monorepo structure for Nebula Core: add packages (@nebula/core, core-glyphs, core-input, core-navigation, core-theme, core-ui, core-utils) with source, dist, tests and assets. Expand README with overview, quick start and API snippets, and add package-level documentation files. Add jsconfig.json for path mapping, package.json and lockfiles to bootstrap the repo. This commit sets up the project layout, docs, and local package links for further development.
2026-01-31 22:57:16 +13:00

784 B

@nebula/core-theme

Theme tokens tuned for readable, couch-friendly UI. Exports plain objects and helpers only.

What it does

  • Provides a default token set for colors, spacing, typography, radius, and motion.
  • Lets you merge overrides with createTheme() for custom styling.
  • Keeps everything as plain objects for easy use in any UI layer.

Token groups

  • colors: Background, surface, text, accent, focus, danger.
  • spacing: XS through XXL spacing scale.
  • radius: Corner radius presets.
  • typography: Caption, body, title, display sizes.
  • motion: Fast/base/slow durations.

Typical use cases

  • Consistent visual system across packages and apps.
  • Theme customization without framework coupling.
  • Readable defaults for TV and handheld screens.