mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
* Run prettier on packages too. * Add the generated files for icons to prettierignore. * Format all files in the packages folder. * Minor fix.
13 lines
325 B
JavaScript
13 lines
325 B
JavaScript
module.exports = {
|
|
type: 'value',
|
|
matcher: function (token) {
|
|
return token.type === 'custom-spacing'
|
|
},
|
|
transformer: ({ value: { top, left, bottom, right } }) => {
|
|
if ([bottom, left, right].every((v) => v === top)) {
|
|
return `${top}px`
|
|
}
|
|
return `${top}px ${right}px ${bottom}px ${left}px`
|
|
},
|
|
}
|