# ./packages/icons This package is for custom Supabase icons They can be used alongside any other icon packages ## example use ```jsx import { ReplaceCode, InsertCode } from 'icons' function app() { return ( <> ) } ``` ## adding new icons Add new icons into ./src/raw-icons Make sure there are no inline stroke/border/fill colors (see below) run this in ./packages/build-icons ```bash npm run build ``` This will output icons into ./src/icons and update import names/paths ### Design spec Icons should: - always be exported 24x24px, - and have an icon inside that frame that's around 18x18px(ish) ### ❌ bad example Notice the stroke, stroke-linecap, fills, etc. These need to be in the parent so the react component can easily control it. The SVG child elements will then respect their parent's attributes. ```svg ``` ✅ Good example We've now cleaned it up, and the parent SVG element now has all the attributes for color and stroke width styling. We have also removed the redundant elements that figma adds in like background / artboard backgrounds. ```svg ```