@nexub/mcp 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,6 +66,7 @@ Starting points for typical SaaS screens:
66
66
  | Onboarding | `StepIndicator` + `CheckList` |
67
67
  | Search / commands | `CommandPalette` + `KeyboardShortcut` |
68
68
  | Empty, loading, error | `EmptyState`, `Skeleton`, `ErrorState`, `Toast` |
69
+ | Expressive moment (onboarding, hero, success) | `@nexub/themes/vivid` + `data-expression="vivid"` on that area, `Aurora` behind the hero. One expressive moment per screen; keep dense tables and forms Calm |
69
70
  | White-label / customer brand | `<ThemeProvider seed="#hex">` (native: `<NexubNativeProvider seed>`), plus `createSeedStylesheet(seed)` from `@nexub/tokens/seed` rendered on the server so there is no flash. Never hand-pick brand hex for roles; try colours at nexub.design/foundations/theme-builder |
70
71
  | Marketing / landing page | `@nexub/marketing` under `data-mode="marketing"`: `MarketingNav`, `Hero`, `LogoStrip`, `StatBand`, `FeatureSplit`, `HowItWorks`, `ProductGrid`, `TestimonialGrid`, `PricingTable`, `FAQ`, `CTABand`, `MarketingFooter` |
71
72
 
@@ -0,0 +1,38 @@
1
+ # Aurora
2
+
3
+ A decorative background of slow-drifting colour fields from the accent roles. Subtle by default, richer under data-expression="vivid".
4
+
5
+ - Package: `@nexub/react` · Category: Inline Primitives · Status: beta
6
+ - Import: `import { Aurora } from '@nexub/react';`
7
+ - Docs: https://nexub-ds-docs.pages.dev/components/aurora
8
+
9
+ ## Props
10
+
11
+ | Prop | Type | Default | Description |
12
+ | --- | --- | --- | --- |
13
+ | `className` | `string` | | Shape it to its container, e.g. `rounded-shape-container`. The parent needs `position: relative` and `isolate` so the aurora stays behind the content. |
14
+
15
+ ## Example: Behind a hero
16
+
17
+ ```tsx
18
+ import { Aurora, Button, EyebrowChip } from '@nexub/react';
19
+
20
+ export default function Example() {
21
+ return (
22
+ <div className="relative isolate flex w-full flex-col items-center gap-4 overflow-hidden rounded-shape-container px-6 py-14 text-center">
23
+ <Aurora />
24
+ <EyebrowChip>New</EyebrowChip>
25
+ <h3 className="m-0 text-headline-md text-[var(--color-on-surface)]">Your money, at a glance</h3>
26
+ <p className="m-0 max-w-[40ch] text-body-md text-[var(--color-on-surface)]">The colour follows your brand, theme and dark mode.</p>
27
+ <Button>Get started</Button>
28
+ </div>
29
+ );
30
+ }
31
+ ```
32
+
33
+ ## Accessibility
34
+
35
+ - Decorative: the whole layer is `aria-hidden`.
36
+ - The fields stop drifting under reduced motion and the layer is hidden in forced-colours mode.
37
+
38
+ Related: [text-gradient](text-gradient.md)
@@ -32,7 +32,7 @@ export default function Example() {
32
32
  title="Pay your team on time, every time"
33
33
  description="Run payroll in minutes with tax and statutory filings handled for you."
34
34
  points={['CPF, EPF and BPJS filed for you', 'Payslips in every employee’s language', 'Approvals on your phone']}
35
- visual={<Card variant="showcase" accent="payub" className="aspect-[4/3] w-full" aria-label="Payroll screenshot" />}
35
+ visual={<Card variant="showcase" accent="payub" className="aspect-[4/3] w-full" role="img" aria-label="Payroll screenshot" />}
36
36
  />
37
37
  </div>
38
38
  );
@@ -20,7 +20,7 @@ import { Card, Reveal } from '@nexub/react';
20
20
 
21
21
  export default function Example() {
22
22
  return (
23
- <div data-mode="marketing" className="flex h-64 w-full flex-col gap-6 overflow-y-auto p-2">
23
+ <div data-mode="marketing" role="region" aria-label="Reveal demo" tabIndex={0} className="flex h-64 w-full flex-col gap-6 overflow-y-auto p-2">
24
24
  <p className="m-0 shrink-0 pb-40 text-body-md text-[var(--color-on-surface-variant)]">Scroll down</p>
25
25
  {[1, 2, 3].map((n) => (
26
26
  <Reveal key={n} className="shrink-0">
@@ -1,6 +1,6 @@
1
1
  # Component index
2
2
 
3
- Nexub DS v4.0.0. Open `components/<slug>.md` for props, examples and accessibility notes.
3
+ Nexub DS v4.2.0. Open `components/<slug>.md` for props, examples and accessibility notes.
4
4
  Never use a component marked deprecated.
5
5
 
6
6
  ## Components — Actions
@@ -80,6 +80,7 @@ Never use a component marked deprecated.
80
80
 
81
81
  ## Components — Inline Primitives
82
82
 
83
+ - [Aurora](components/aurora.md) `@nexub/react`: A decorative background of slow-drifting colour fields from the accent roles. Subtle by default, richer under data-expression="vivid".
83
84
  - [Code](components/code-inline.md) `@nexub/react`: Inline code span for technical terms and short code snippets.
84
85
  - [Kbd](components/kbd.md) `@nexub/react`: Keyboard key display — renders a styled <kbd> element.
85
86
  - [Link](components/link.md) `@nexub/react`: Styled anchor link with variant and external support.
@@ -1,6 +1,6 @@
1
1
  # Tokens
2
2
 
3
- Nexub DS v4.0.0. Every token is a CSS custom property from `@nexub/tokens/css` (loaded by `@nexub/themes/base`).
3
+ Nexub DS v4.2.0. Every token is a CSS custom property from `@nexub/tokens/css` (loaded by `@nexub/themes/base`).
4
4
  The Tailwind preset (`@nexub/tokens/tailwind`) maps them to utilities. Never hardcode a hex, px spacing or shadow that a token covers.
5
5
 
6
6
  ## Color roles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexub/mcp",
3
- "version": "4.0.0",
3
+ "version": "4.2.0",
4
4
  "description": "MCP server for Nexub Design System: gives Claude, Cursor and any MCP client the components, patterns, tokens and design rules of the installed release.",
5
5
  "type": "module",
6
6
  "license": "MIT",