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 with Fields module #8

Open
Tracked by #7
eliot-akira opened this issue Sep 23, 2024 · 1 comment
Open
Tracked by #7

Integrate with Fields module #8

eliot-akira opened this issue Sep 23, 2024 · 1 comment

Comments

@eliot-akira
Copy link
Contributor

eliot-akira commented Sep 23, 2024

How to integrate the design library with the Fields module, a React-based form fields library. There are some components in common, like Checkbox and Switch.

The fields are currently used by Tangible Blocks for block controls:

In the template system, they will be used for WordPress content types and fields, custom post types and database tables, similar to Advanced Custom Fields.

Unifying all fields with the design system means:

  • Incrementally update existing styles to use a shared set of design tokens and primitives.

For example, replace literal value 8px with Sass variable $space-2, or #abcdef with $theme-primary-color.

@eliot-akira
Copy link
Contributor Author

eliot-akira commented Sep 24, 2024

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

No branches or pull requests

1 participant