Skip to content

Commit

Permalink
fix: remove fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
fpasquet committed Jan 25, 2024
1 parent a280261 commit 32e08c1
Show file tree
Hide file tree
Showing 10 changed files with 176 additions and 211 deletions.
1 change: 0 additions & 1 deletion .env

This file was deleted.

1 change: 0 additions & 1 deletion bin/build-design-tokens/formats/register.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import './scss/font-face';
import './scss/map-deep-with-css-variables';
import './typescript/object';
106 changes: 0 additions & 106 deletions bin/build-design-tokens/formats/scss/font-face.ts

This file was deleted.

26 changes: 0 additions & 26 deletions bin/build-design-tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,32 +57,6 @@ const styleDictionary = StyleDictionary.extend({
],
options: {
categoriesWithNotCssVariables: ['breakpoint'],
injectVariables: {
'cdn-path': process.env.CDN_PATH || '/',
},
},
},
'scss/font-face': {
buildPath: './src/styles/',
transforms: ['attribute/font'],
files: [
{
format: 'scss/font-face',
filter: {
attributes: {
category: 'asset',
type: 'font',
},
},
destination: '_fonts.scss',
options: {
outputReferences: true,
},
},
],
options: {
fontPathPrefix: `#{map.get($token-variables, 'cdn-path')}`,
injectToHead: [`@use 'abstracts' as *;`],
},
},
'typescript/token-variables': {
Expand Down
14 changes: 0 additions & 14 deletions bin/build-design-tokens/transforms/attribute/font.ts

This file was deleted.

1 change: 0 additions & 1 deletion bin/build-design-tokens/transforms/register.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
import './attribute/font';
import './name/cti/kebab-only-category-item';
51 changes: 0 additions & 51 deletions bin/compress-fonts.ts

This file was deleted.

13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@eleven-labs/design-system",
"description": "Design System for Eleven Labs",
"version": "0.6.3",
"version": "0.6.4",
"repository": {
"type": "git",
"url": "https://github.com/eleven-labs/design-system.git"
Expand Down Expand Up @@ -31,10 +31,10 @@
],
"scripts": {
"prepare": "husky install && yarn optimize:svgs && yarn build:icons && yarn build:design-tokens",
"optimize:fonts": "ts-node bin/optimize-fonts",
"optimize:fonts": "tsx bin/optimize-fonts",
"optimize:svgs": "svgo --config svgo.config.cjs -f src/assets/svgs -o ./public/svgs",
"build:icons": "svgr --config-file svgr.config.cjs --typescript -d src/components/Atoms/Svgs public/svgs",
"build:design-tokens": "ts-node -r dotenv/config bin/build-design-tokens",
"build:design-tokens": "tsx bin/build-design-tokens",
"build": "vite build",
"start:storybook": "storybook dev -p 6009",
"build:storybook": "yarn build && yarn storybook build",
Expand All @@ -51,11 +51,6 @@
"stylelint --fix"
]
},
"engines": {
"npm": "please-use-yarn-instead",
"yarn": ">= 1.2.0",
"node": ">= 14.0"
},
"dependencies": {
"autosuggest-highlight": "^3.3.4",
"classnames": "^2.3.2",
Expand Down Expand Up @@ -104,7 +99,7 @@
"stylelint-config-standard-scss": "^9.0.0",
"svgo": "^3.0.2",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"tsx": "^4.7.0",
"typescript": "^4.9.5",
"vite": "^4.3.9",
"vite-plugin-dts": "^2.3.0",
Expand Down
1 change: 0 additions & 1 deletion src/styles/common.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@use 'reset';
@use 'token-custom-properties';
@use 'base';
@use 'fonts';
@use 'utilities';
Loading

0 comments on commit 32e08c1

Please sign in to comment.