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

Expose calcite-components CSS variables for spacing #4437

Closed
jmanke opened this issue Apr 21, 2022 · 1 comment
Closed

Expose calcite-components CSS variables for spacing #4437

jmanke opened this issue Apr 21, 2022 · 1 comment
Labels
0 - new New issues that need assignment. enhancement Issues tied to a new feature or request. needs triage Planning workflow - pending design/dev review.

Comments

@jmanke
Copy link

jmanke commented Apr 21, 2022

Description

Add CSS variables with the spacing sizes calcite-components uses. For example, --calcite-spacing-1: 0.25rem or --calcite-spacing-3: 0.75rem. This would allow consumers of calcite-components to have consistent spacing throughout their project. Currently, one must either define their own spacing to match calcite-components (or by extension, TailwindCSS), or integrate TailwindCSS into their project.

Acceptance Criteria

Expose all spacing used by calcite-components through CSS variables.

Relevant Info

No response

Which Component

calcite-components

Example Use Case

A new project uses calcite-components and is not interested in using TailwindCSS. To keep their app looking consistent with calcite-components, they can use CSS variables provided by calcite-components for CSS properties such as padding, margin, right, left, etc.

@jmanke jmanke added 0 - new New issues that need assignment. enhancement Issues tied to a new feature or request. needs triage Planning workflow - pending design/dev review. labels Apr 21, 2022
@jcfranco
Copy link
Member

Closing in favor of #7180.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. enhancement Issues tied to a new feature or request. needs triage Planning workflow - pending design/dev review.
Projects
None yet
Development

No branches or pull requests

4 participants