Skip to content

Commit

Permalink
Merge pull request #20 from author-more/feat/add-icons-tabler
Browse files Browse the repository at this point in the history
feat: add icons - tabler
  • Loading branch information
Belar authored Oct 8, 2024
2 parents abbb6ec + 34bacac commit 40f1ea1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@ export const iconPackages: IconPackage[] = [
normaliseAttributes: (svg: string) =>
svg.replace(/fill="var\(--ci-primary-color, currentColor\)"/g, ""),
})),
...["outline", "filled"].map((variant) => ({
id: `tabler`,
variant,
iconsDir: `../node_modules/@tabler/icons/icons/${variant}`,
})),
];
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@material-design-icons/svg": "^0.14.13",
"@penpot/plugin-styles": "^0.10.0",
"@phosphor-icons/core": "^2.1.1",
"@tabler/icons": "^3.19.0",
"bootstrap-icons": "^1.11.3",
"feather-icons": "^4.29.2",
"heroicons": "^2.1.5",
Expand Down
10 changes: 10 additions & 0 deletions src/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ export const iconLibraries: IconLibrary[] = [
},
defaultSettings: { selectedVariant: "free" },
},
{
id: "tabler",
name: "Tabler Icons",
website: "https://tabler.io/icons",
license: {
name: "MIT",
url: "https://github.com/tabler/tabler-icons/blob/main/LICENSE",
},
icons: generateVariants("tabler", ["outline", "filled"]),
},
];

export const defaultIconSetSettings: Record<string, IconSetSettings> =
Expand Down

0 comments on commit 40f1ea1

Please sign in to comment.