-
I want to add some at rules like this in the CSS file: @position-try --left {
inset: auto;
top: anchor(bottom);
right: anchor(right);
} How can I achieve this? I didn't found anything in the documentation, neither here or in the issues… |
Beta Was this translation helpful? Give feedback.
Answered by
nmn
Jan 19, 2025
Replies: 1 comment 5 replies
-
We don't have an explicit API for this today. Please use a CSS file for this for now. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. I created an issue #866 for new top-level rules that need to be referenced elsewhere in StyleX styles.
NOTE: We have always maintained that you should use a standalone CSS file for global styles and resets. This is by design and our goal with StyleX is to not to replace the need for any CSS at all. Our goal is to replace component-level styling specifically.