File tree 3 files changed +20
-18
lines changed
3 files changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ export function createBleed<AtomsFn extends typeof bentoSprinkles>(Box: BoxType<
19
19
20
20
function negateSpace ( space : ResponsiveSpace | undefined ) : ResponsiveNegativeSpace | undefined {
21
21
if ( typeof space === "number" ) {
22
- return `- ${ space } ` ;
22
+ return `negative ${ space } ` ;
23
23
} else if ( ! ! space ) {
24
24
return {
25
- desktop : space . desktop ? `- ${ space . desktop } ` : undefined ,
26
- tablet : space . tablet ? `- ${ space . tablet } ` : undefined ,
27
- mobile : space . mobile ? `- ${ space . mobile } ` : undefined ,
25
+ desktop : space . desktop ? `negative ${ space . desktop } ` : undefined ,
26
+ tablet : space . tablet ? `negative ${ space . tablet } ` : undefined ,
27
+ mobile : space . mobile ? `negative ${ space . mobile } ` : undefined ,
28
28
} ;
29
29
} else {
30
30
return undefined ;
Original file line number Diff line number Diff line change @@ -58,13 +58,15 @@ export const vars = createThemeContract({
58
58
} ,
59
59
negativeSpace : {
60
60
"0" : null ,
61
- "-4" : null ,
62
- "-8" : null ,
63
- "-16" : null ,
64
- "-24" : null ,
65
- "-32" : null ,
66
- "-40" : null ,
67
- "-80" : null ,
61
+ // NOTE(gabro): ideally we would use "-4" and so on here, but we can't due to
62
+ // https://github.com/Swatinem/rollup-plugin-dts/issues/201
63
+ negative4 : null ,
64
+ negative8 : null ,
65
+ negative16 : null ,
66
+ negative24 : null ,
67
+ negative32 : null ,
68
+ negative40 : null ,
69
+ negative80 : null ,
68
70
} ,
69
71
radius : {
70
72
4 : null ,
Original file line number Diff line number Diff line change @@ -121,13 +121,13 @@ const commonTheme = {
121
121
} ,
122
122
negativeSpace : {
123
123
"0" : "0" ,
124
- "-4" : "-4px" ,
125
- "-8" : "-8px" ,
126
- "-16" : "-16px" ,
127
- "-24" : "-24px" ,
128
- "-32" : "-32px" ,
129
- "-40" : "-40px" ,
130
- "-80" : "-80px" ,
124
+ negative4 : "-4px" ,
125
+ negative8 : "-8px" ,
126
+ negative16 : "-16px" ,
127
+ negative24 : "-24px" ,
128
+ negative32 : "-32px" ,
129
+ negative40 : "-40px" ,
130
+ negative80 : "-80px" ,
131
131
} ,
132
132
radius : {
133
133
"4" : "4px" ,
You can’t perform that action at this time.
0 commit comments