Skip to content

[01253] Add Box Shadow Tokens#14

Merged
dcrjodle merged 1 commit into
mainfrom
plan-01253-Ivy-Design-System
Apr 9, 2026
Merged

[01253] Add Box Shadow Tokens#14
dcrjodle merged 1 commit into
mainfrom
plan-01253-Ivy-Design-System

Conversation

@dcrjodle

@dcrjodle dcrjodle commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Changes

Added box shadow design tokens to the Ivy Design System. Seven shadow levels (none, sm, md, lg, xl, 2xl, inner) are now available as CSS custom variables, flat CSS variables, and C# static properties. The demo app includes a visual preview section for all shadow tokens.

API Changes

  • New CSS variables: --shadow-none, --shadow-sm, --shadow-md, --shadow-lg, --shadow-xl, --shadow-2xl, --shadow-inner
  • New C# class: IvyFrameworkShadowTokens.Shadow (in Ivy.Themes namespace) with properties None, Sm, Md, Lg, Xl, _2xl, Inner
  • New package export: @ivy-interactive/ivy-design-system/css/ivy-framework-shadow

Files Modified

  • Token definitions: figma-tokens/$tokens.json — added shadow.shadow section with 7 tokens
  • Build pipeline: scripts/build.ts — added shadow extraction and generation calls (CSS, flat CSS, C#)
  • Generators: scripts/generate-css.ts, scripts/generate-flat-css.ts, scripts/generate-csharp.ts — added "shadow" to category arrays and reference regex
  • Demo app: demo/src/main.ts — added shadow CSS import and shadow preview section
  • Demo styles: demo/src/style.css — added shadow grid/card styling
  • Package exports: package.json — added shadow CSS export entries

Commits

  • 7c13dbb [01253] Add box shadow tokens to design system

Add shadow tokens (none, sm, md, lg, xl, 2xl, inner) with CSS variable
generation, flat CSS, and C# code generation. Update demo app with shadow
preview section and add package.json exports.
@dcrjodle
dcrjodle merged commit d17faf5 into main Apr 9, 2026
1 of 2 checks passed
@dcrjodle
dcrjodle deleted the plan-01253-Ivy-Design-System branch April 9, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant