I made CSS preprocessor for Vanilla Extract #1473
black7375
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Hi, I have been using vanilla-extract for a while. But there is one thing that does not meet my needs, and I would like to see if your library has a solution. When I create a style, I want to be able to use it inline, for example on devices of different sizes.
This method is a bit like the usage in tailwindcss |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, Vanilla Extract community!
I'm excited to share a new CSS-in-JS library project I've been working on called 'mincho'. This project is based on Vanilla Extract and aims to provide powerful CSS preprocessor features optimized for TypeScript.
Here are some key features we've implemented so far:
Nesting Syntax:
Similar to SCSS, we support nesting for properties, selectors, and media queries.
Conditional Styles:
Inspired by Panda CSS's Conditional Styles, we use
_
for easy representation of pseudo-classes and pseudo-elements.Property Merging:
Drawing from Less's Merge feature, we allow writing complex property values across multiple lines.
Property Value Referencing:
Implementing Stylus's property value referencing, we allow referencing values from other properties.
This project is still in its early stages, and the API may be unstable. However, we're exploring new possibilities in CSS-in-JS through this work.
For a more detailed discussion about the project, our future plans, and an in-depth exploration of CSS-in-JS and design systems, please check out the full article here:
We welcome your thoughts and feedback. Let's work together to create a better CSS-in-JS ecosystem!
Lastly, I'd like to express my sincere gratitude to the @askoufis who answered my questions. Your responses were invaluable and made writing tests for this project much easier. Without your help, it would have been extremely challenging to properly test and validate our implementations. Thank you for your support and guidance!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions