lucent-ui 0.26.0 → 0.27.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.
@@ -9,13 +9,12 @@ const LUCENT_TOKEN_KEYS = new Set([
9
9
  'bgBase', 'bgSubtle', 'bgOverlay',
10
10
  'surface', 'surfaceSecondary', 'surfaceRaised', 'surfaceOverlay',
11
11
  'borderDefault', 'borderSubtle', 'borderStrong',
12
- 'textPrimary', 'textSecondary', 'textDisabled', 'textInverse', 'textOnAccent',
13
- 'accentDefault', 'accentHover', 'accentActive', 'accentSubtle',
12
+ 'textPrimary', 'textSecondary', 'textDisabled', 'textInverse',
13
+ 'accentDefault', 'accentHover', 'accentSubtle', 'accentBorder', 'accentFg',
14
14
  'successDefault', 'successSubtle', 'successText',
15
15
  'warningDefault', 'warningSubtle', 'warningText',
16
16
  'dangerDefault', 'dangerHover', 'dangerSubtle', 'dangerText',
17
17
  'infoDefault', 'infoSubtle', 'infoText',
18
- 'focusRing',
19
18
  // TypographyTokens
20
19
  'fontFamilyBase', 'fontFamilyMono', 'fontFamilyDisplay',
21
20
  'fontSizeXs', 'fontSizeSm', 'fontSizeMd', 'fontSizeLg',
@@ -17,13 +17,13 @@ export const COMPONENT_MANIFEST = {
17
17
  type: 'boolean',
18
18
  required: false,
19
19
  default: 'false',
20
- description: 'Applies alternating surfaceSecondary backgrounds to even tbody rows.',
20
+ description: 'Applies alternating tinted backgrounds to even tbody rows via color-mix(transparent).',
21
21
  },
22
22
  {
23
23
  name: 'Table.Head',
24
24
  type: 'component',
25
25
  required: false,
26
- description: 'Renders <thead> with surfaceSecondary background. Accepts Table.Row children.',
26
+ description: 'Renders <thead> with a subtle tinted background. Accepts Table.Row children.',
27
27
  },
28
28
  {
29
29
  name: 'Table.Body',
@@ -35,7 +35,7 @@ export const COMPONENT_MANIFEST = {
35
35
  name: 'Table.Foot',
36
36
  type: 'component',
37
37
  required: false,
38
- description: 'Renders <tfoot> with surfaceSecondary background.',
38
+ description: 'Renders <tfoot> with a subtle tinted background.',
39
39
  },
40
40
  {
41
41
  name: 'Table.Row',
@@ -51,7 +51,7 @@ export const COMPONENT_MANIFEST = {
51
51
  '- `ghost` and `outline` use `transparent` — they inherit from whatever they\'re placed on. ' +
52
52
  'The border is the only visual differentiator for `outline`.\n' +
53
53
  '- Never use `bgBase` or `bgSubtle` on a Card — those tokens are reserved for the page canvas.\n' +
54
- '- Content nested inside a Card that needs a tinted fill should use `surfaceSecondary`.',
54
+ '- Content nested inside a Card that needs a tinted fill should use `color-mix(in srgb, var(--lucent-text-primary) 5%, transparent)` for accent-neutral insets.',
55
55
  props: [
56
56
  {
57
57
  name: 'variant',
@@ -39,7 +39,7 @@ export const COMPONENT_MANIFEST = {
39
39
  '## Selected state\n' +
40
40
  'MenuItem accepts a `selected` prop that renders a trailing accent-colored checkmark. The selected item ' +
41
41
  'gets a `color-mix(in srgb, accent-default 12%, surface-overlay)` background with `shadow-sm` elevation, ' +
42
- 'making it visually stronger than the hover state (`surface-secondary`). Uses `role="menuitemcheckbox"` ' +
42
+ 'making it visually stronger than the hover state (subtle `color-mix` tint). Uses `role="menuitemcheckbox"` ' +
43
43
  'with `aria-checked` for accessibility.\n\n' +
44
44
  '## Animation\n' +
45
45
  'Both entrance and exit use a subtle scale + fade (`scale(0.97) ↔ 1`, `opacity 0 ↔ 1`) over 120ms. ' +
@@ -97,7 +97,8 @@ export const COMPONENT_MANIFEST = {
97
97
  description: 'Background token for chrome regions (header, sidebar, footer). ' +
98
98
  '"bgBase" uses the page canvas color so the main content card feels elevated; ' +
99
99
  '"bgSubtle" uses a subtle shade of bgBase for chrome distinction; ' +
100
- '"surface" matches the old behavior where chrome and content share the same background.',
100
+ '"surface" matches the old behavior where chrome and content share the same background; ' +
101
+ '"surfaceSecondary" uses the tinted fill token for a more visible chrome/stage separation.',
101
102
  },
102
103
  {
103
104
  name: 'mainStyle',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucent-ui",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "An AI-first React component library with machine-readable manifests.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",