mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 10:25:06 +03:00
* Run prettier on packages too. * Add the generated files for icons to prettierignore. * Format all files in the packages folder. * Minor fix.
12 lines
419 B
JavaScript
12 lines
419 B
JavaScript
const TinyColor = require('@ctrl/tinycolor')
|
|
|
|
module.exports = {
|
|
type: 'value',
|
|
matcher: function (token) {
|
|
return token.type === 'custom-shadow' && token.value !== 0
|
|
},
|
|
transformer: function ({ value }) {
|
|
return `${value.shadowType === 'innerShadow' ? 'inset ' : ''}${value.offsetX}px ${value.offsetY}px ${value.radius}px ${value.spread}px ${new TinyColor.TinyColor(value.color).toRgbString()}`
|
|
},
|
|
}
|