Comments (4)
hi @gsgualbano ,
The reason for this is that we we depend on the toString
method of the return object to be called. This is normally called in all circumstances where a string is expected, but for some reason ant
does not follow this convention.
If you were to String(css.compose(css.textAlign('center')))
, you would be okay.
You have a link to the project? We could create a PR which ensures this behaviour, as it should really work that way.
from stitches.
Thank you @christianalfoni,
Wrapping the compose on a String function worked really well. I don't have a link to my project because it's just a side project that i made for studying purposes, anyway thanks again.
Iām closing this issue
from stitches.
from stitches.
lol š, Iām sorry I misunderstood, here is the link https://github.com/ant-design/ant-design
from stitches.
Related Issues (20)
- Variants which contain numeric strings (e.g. "-12") and number keys (e.g. 12) are assigned a 'number' type when generating a union using the VariantProps type
- A Simplified Responsive Variants Api
- boxShadow isen't working when i use a color from my theme HOT 2
- Vendor prefix is stripped from WebkitBackgroundClip
- when using prefix, theme tokens in globalCSS aren't prefixed HOT 2
- Theme token not being parsed when overriding CSS prop (Next.js) HOT 1
- styled components not passing variants
- please consider using css string props like emotion HOT 2
- Is this project dead? HOT 2
- Container queries support HOT 2
- Chat about the future for stitches HOT 44
- When a responsive variant matches the @initial variant, the initial one is not applied. HOT 1
- reset function returned from createStitches is not in docs
- costum propreties like variants and sizes : example costum proprety
- export type of `css` function HOT 2
- (Feature request): Ability for child element to opt out of theme
- Dynamic props in styled
- Project Dead? HOT 1
- How to add `!important` automatically HOT 1
- Not compatible with `moduleResolution: "Bundler"`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stitches.