[01253] Add Box Shadow Tokens#14
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
--shadow-none,--shadow-sm,--shadow-md,--shadow-lg,--shadow-xl,--shadow-2xl,--shadow-innerIvyFrameworkShadowTokens.Shadow(inIvy.Themesnamespace) with propertiesNone,Sm,Md,Lg,Xl,_2xl,Inner@ivy-interactive/ivy-design-system/css/ivy-framework-shadowFiles Modified
figma-tokens/$tokens.json— addedshadow.shadowsection with 7 tokensscripts/build.ts— added shadow extraction and generation calls (CSS, flat CSS, C#)scripts/generate-css.ts,scripts/generate-flat-css.ts,scripts/generate-csharp.ts— added "shadow" to category arrays and reference regexdemo/src/main.ts— added shadow CSS import and shadow preview sectiondemo/src/style.css— added shadow grid/card stylingpackage.json— added shadow CSS export entriesCommits