mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
* new packages * new transforms * Update package.json * new internal files * Update cleanse-css-for-tailwind.js * updated css files * remove old code * update tokens * Delete global.css * update themes * Update tailwind-theming.md * Update tailwind-theming.md * Update tailwind-theming.md * Update tailwind-theming.md * Update tailwind-theming.md * Update tailwind-theming.md --------- Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
12 lines
418 B
JavaScript
12 lines
418 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()}`
|
|
}
|
|
}
|