Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integrate ex-n-ui-foundations styles into dotcom-ui-base-styles #1063

Open
wants to merge 10 commits into
base: ui-foundations-base-styles
Choose a base branch
from

Conversation

apaleslimghost
Copy link
Member

@apaleslimghost apaleslimghost commented Sep 16, 2024

updates the n-ui-foundations styles included in #1062 to fit more into the Page Kit ecosystem, with an O3 future in mind. notably, this removes support for using dotcom-ui-base-styles in components, and recommends that components use Origami styles directly (there is no longer a need to have a default bundled set of styles for both components and apps, this is handled via peerDependencies).

this PR starts consuming o3-foundation as a dependency, to replace nUiZIndexFor with o3-foundation's z-index variables. there's no way to import just the z-index variables, so this imports the whole of o3-foundation. until we migrate dotcom-ui-base-styles fully to o3, this will increase the CSS bundle size. that's a tradeoff i'm willing to make for the next few months, to facilitate an easier migration path.

@apaleslimghost apaleslimghost marked this pull request as ready for review September 25, 2024 16:07
@apaleslimghost apaleslimghost requested a review from a team as a code owner September 25, 2024 16:07
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