Skip to content

Commit

Permalink
chore: update to icon-font-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Jan 9, 2025
1 parent 11b89ec commit 6702139
Show file tree
Hide file tree
Showing 25 changed files with 775 additions and 32 deletions.
797 changes: 771 additions & 26 deletions package-lock.json

Large diffs are not rendered by default.

Binary file modified packages/foundations/assets/icons/fonts/all/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/default/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/default_12/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/default_14/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/default_16/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/default_20/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/default_24/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/default_28/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/default_32/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/default_48/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/default_64/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/filled/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/filled_12/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/filled_14/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/filled_16/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/filled_20/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/filled_24/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/filled_28/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/filled_32/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/filled_48/db-ux.woff2
Binary file not shown.
Binary file modified packages/foundations/assets/icons/fonts/filled_64/db-ux.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/foundations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"devDependencies": {
"@csstools/normalize.css": "12.1.1",
"@db-ui/gif": "0.0.12",
"@db-ux/icon-font-tools": "0.1.0",
"cpr": "3.0.1",
"cssnano": "^7.0.6",
"dotenv": "^16.4.7",
Expand Down
6 changes: 2 additions & 4 deletions packages/foundations/scripts/local/generate-icon-font.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generateIconFonts from '@db-ui/gif/dist/generate-icon-fonts';
import generateIconFonts from '@db-ux/icon-font-tools/dist/commands/generate-icon-fonts/utils';
import { generateIconTypes } from './generate-icon-types.js';

const defaultBuildDir = './assets/icons';
Expand All @@ -11,15 +11,13 @@ const run = async () => {
fontName,
src: defaultBuildDir,
ignoreGlobs: ['**/tmp/**', '**/functional/**'],
cleanIgnoreVariants: [],
variants: ['filled'],
withSizes: true,
skipClean: true,
debug: false
});

generateIconTypes({
fontJsonPath: `${defaultBuildDir}/fonts/default/${fontName}.json`,
fontJsonPath: `${defaultBuildDir}/fonts/default/info.json`,
outDir: './scripts/public'
});
};
Expand Down
2 changes: 1 addition & 1 deletion packages/foundations/scss/icons/_icon-helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$default-icon-size: 24;
$default-icon-size-rem: #{helpers.px-to-rem($default-icon-size)};
$default-icon-variants: "default", "inverted", "filled";
$default-icon-variants: "default", "filled";

$default-icon-content: var(--db-icon, attr(data-icon));
$default-icon-content-after: var(--db-icon-after, attr(data-icon-after));
Expand Down

0 comments on commit 6702139

Please sign in to comment.