Skip to content

<LESS Variables>: breakpoint variables are different than CSS variables. #558

@pcanella

Description

@pcanella

I verified there's no existing issue for this bug.

  • There are no existing issues

Current behavior

I have an issue where we'd love to use the native CSS variable breakpoints in our project (like --breakpoint-extra-large). However, CSS does not allow CSS vars to be used in media queries.

Anyway, I found we have LESS variables that are similar in https://github.com/eBay/evo-web/blob/main/packages/skin/dist/variables/variables.less

But the values are different than the CSS breakpoint vars (the names/values do not align with Playbook).

For reference, here's the Evo Web Playbook:

https://playbook.ebay.com/design-system/tokens/breakpoint

Note: it seems that LESS variables do not "convert" CSS variables to their assigned values, so just setting them like @breakpoint-large: var(--breakpoint-large) will work.

Expected behavior

No response

Package and version

No response

Device/OS/Browser info

No response

Steps to reproduce

1.
2.
3.
...

Relevant code block

No response

Additional context

No response

Metadata

Metadata

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions