-
|
Is there a way to define an @property in vanilla extract? I'm migrating some @property --fade-left {
syntax: '<color>';
inherits: false;
initial-value: transparent;
}
@property --fade-right {
syntax: '<color>';
inherits: false;
initial-value: transparent;
}
.tabStripScroll {
--fade-size: 32px;
padding-left: var(--spacer-2);
transition: --fade-left, --fade-right;
transition-timing-function: linear;
transition-duration: var(--duration-sm);
.tabStripRoot:not([data-scroll-x='none']) & {
mask-image: linear-gradient(
to right,
var(--fade-left),
black var(--fade-size),
black calc(100% - var(--fade-size)),
var(--fade-right)
);
}
.tabStripRoot[data-scroll-x='start'] & {
--fade-left: black;
}
.tabStripRoot[data-scroll-x='end'] & {
--fade-right: black;
}I didn't see any mention of |
Beta Was this translation helpful? Give feedback.
Answered by
bschlenk
Sep 24, 2025
Replies: 1 comment
-
|
Ahh sorry! I just didn't look hard enough. https://vanilla-extract.style/documentation/api/create-var/#property-rules |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bschlenk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ahh sorry! I just didn't look hard enough. https://vanilla-extract.style/documentation/api/create-var/#property-rules