Skip to content

Commit

Permalink
Merge pull request #94 from gsoft-inc/feature/update-hopper-tokens
Browse files Browse the repository at this point in the history
Feature/update hopper tokens
  • Loading branch information
fraincs authored Mar 13, 2024
2 parents 4d7604b + e2db2ab commit f9e7866
Show file tree
Hide file tree
Showing 27 changed files with 17 additions and 77 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-dolphins-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@orbit-ui/transition-css": minor
---

Removed local assets to use Hopper font tokens
2 changes: 1 addition & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Themes } from "./styles/themes";

if (!isChromatic) {
// Custom font makes chromatic inconsistent and cause "false positive". View https://www.chromatic.com/docs/resource-loading#loading-custom-fonts.
import("@css/font/index.css");
import("@css/fonts.css");
} else {
import("./styles/chromatic.css");
}
Expand Down
1 change: 1 addition & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function addWebpackAliases(config) {
// we could use the ~, but this only works for webpack, and vite doesn't support it.
// also, since we are not using ~, it's considered a relative path, so we add the ./ to the alias.
"./@hopper-ui/icons/index.css": path.resolve(__dirname, "../node_modules/@hopper-ui/icons/dist/index.css"),
"./@hopper-ui/tokens/fonts.css": path.resolve(__dirname, "../node_modules/@hopper-ui/tokens/dist/fonts.css"),
"./@hopper-ui/styled-system/index.css": path.resolve(__dirname, "../node_modules/@hopper-ui/styled-system/dist/index.css"),
};
}
Expand Down
3 changes: 3 additions & 0 deletions packages/css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"license": "Apache-2.0",
"main": "src/index.css",
"style": "src/index.css",
"dependencies": {
"@hopper-ui/tokens": "^3.2.1"
},
"publishConfig": {
"access": "public",
"provenance": true
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed packages/css/src/font/assets/inter/Inter-Bold.otf
Binary file not shown.
Binary file not shown.
Binary file removed packages/css/src/font/assets/inter/Inter-Medium.otf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
75 changes: 0 additions & 75 deletions packages/css/src/font/index.css

This file was deleted.

1 change: 1 addition & 0 deletions packages/css/src/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "@hopper-ui/tokens/fonts.css";
2 changes: 1 addition & 1 deletion packages/css/src/index.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import "./font/index.css";
@import "./normalize.css";
@import "./fonts.css";
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1587,6 +1587,11 @@
"@react-aria/ssr" "^3.9.1"
clsx "^2.1.0"

"@hopper-ui/[email protected]":
version "3.2.1"
resolved "https://registry.yarnpkg.com/@hopper-ui/tokens/-/tokens-3.2.1.tgz#b0a895a580ceec4767a6d8d6e7e89ac96d00f3fe"
integrity sha512-JwWtudZESiceYzzytUWtW0H3zMy51Y0tPhAak+hrI7Sk/oBgPeGNTHV7Q9iesqvNswoOVIOQJCasnjsUoIm/fA==

"@humanwhocodes/config-array@^0.11.8":
version "0.11.8"
resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz#03595ac2075a4dc0f191cc2131de14fbd7d410b9"
Expand Down

0 comments on commit f9e7866

Please sign in to comment.