From 34bacac75b99a341e42b2b73c08d3f0041c5c533 Mon Sep 17 00:00:00 2001 From: Belar Date: Mon, 7 Oct 2024 11:33:19 +0000 Subject: [PATCH] feat: add icons - tabler --- bin/config.ts | 5 +++++ package-lock.json | 11 +++++++++++ package.json | 1 + src/icons.ts | 10 ++++++++++ 4 files changed, 27 insertions(+) diff --git a/bin/config.ts b/bin/config.ts index 6a413e4..a53c1f1 100644 --- a/bin/config.ts +++ b/bin/config.ts @@ -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}`, + })), ]; diff --git a/package-lock.json b/package-lock.json index 93e95b8..02d2b8c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,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", @@ -1136,6 +1137,16 @@ "@swc/counter": "^0.1.3" } }, + "node_modules/@tabler/icons": { + "version": "3.19.0", + "resolved": "https://registry.npmjs.org/@tabler/icons/-/icons-3.19.0.tgz", + "integrity": "sha512-A4WEWqpdbTfnpFEtwXqwAe9qf9sp1yRPvzppqAuwcoF0q5YInqB+JkJtSFToCyBpPVeLxJUxxkapLvt2qQgnag==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/codecalm" + } + }, "node_modules/@types/estree": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", diff --git a/package.json b/package.json index 55a2dff..013d012 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/icons.ts b/src/icons.ts index effb2ce..1a8f13c 100644 --- a/src/icons.ts +++ b/src/icons.ts @@ -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 =