mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 02:15:05 +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
394 B
JavaScript
13 lines
394 B
JavaScript
module.exports = {
|
|
type: 'value',
|
|
matcher: function (token) {
|
|
return token.type === 'custom-radius'
|
|
},
|
|
transformer: function ({ value }) {
|
|
if ([value.topRight, value.bottomLeft, value.bottomRight].every((v) => v === value.topLeft)) {
|
|
return `${value.topLeft}px`
|
|
}
|
|
return `${value.topLeft}px ${value.topRight}px ${value.bottomLeft}px ${value.bottomRight}px`
|
|
},
|
|
}
|