We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f2cc7e commit e999308Copy full SHA for e999308
.changeset/orange-moons-wink.md
@@ -0,0 +1,5 @@
1
+---
2
+'@vanilla-extract/sprinkles': patch
3
4
+
5
+Fix types for numbers as values
packages/sprinkles/src/index.ts
@@ -16,10 +16,12 @@ interface Condition {
16
17
type BaseConditions = { [conditionName: string]: Condition };
18
19
+type CSSProperties = CSS.Properties<(string & {}) | number>;
20
21
type AtomicProperties = {
- [Property in keyof CSS.Properties]?:
- | Record<string, CSS.Properties[Property]>
22
- | Array<CSS.Properties[Property]>;
+ [Property in keyof CSSProperties]?:
23
+ | Record<string, CSSProperties[Property]>
24
+ | Array<CSSProperties[Property]>;
25
};
26
27
type ShorthandOptions<
0 commit comments