@nyx-raul/core
v0.2.0-beta.3
Published
Nyx UI tokens, themes, foundations, and component styles.
Maintainers
Readme
@nyx-raul/core
The CSS foundation for Nyx UI: design tokens, four accent themes, base styles, motion rules, and component styles without a JavaScript runtime.
Install
For Tailwind CSS 4 projects, install the beta package with a compatible Tailwind release:
pnpm add @nyx-raul/core@beta tailwindcss@^4Register the locations that contain Nyx markup, then import the stylesheet:
@import "tailwindcss";
@source "../src/**/*.{html,js,ts,jsx,tsx}";
@source "../node_modules/@nyx-raul/core/src/**/*.css";
@import "@nyx-raul/core";Tailwind CSS is an optional peer dependency with the supported range >=4 <5. It is required for the source-scanning workflow above.
Direct CSS mode
Projects with an existing CSS bundler can consume the package stylesheet without installing Tailwind:
pnpm add @nyx-raul/core@beta@import "@nyx-raul/core";The optional peer declaration keeps this mode free of an unexplained Tailwind peer warning. The package does not ship a browser CDN bundle; the CSS import must be handled by the consumer's bundler.
Themes and customization
Choose one of the built-in accent themes on the document root or a subtree:
<html data-nyx-theme="signal">Available themes are solar, signal, flux, and plasma. Components consume semantic custom properties, so an application can load Nyx first and override a focused token set afterward:
:root {
--nyx-accent: #7cf6d4;
--nyx-accent-hi: #a8ffe8;
--nyx-accent-ink: #03120e;
--nyx-radius-control: 0.25rem;
--nyx-radius-panel: 0.375rem;
}Copy component markup from the Nyx UI registry and preserve its native elements, labels, ARIA relationships, and data-nyx-* hooks.
