Skip to content

Commit

Permalink
feat: add font-weight types
Browse files Browse the repository at this point in the history
  • Loading branch information
Esthefanie Vila Maior authored and matheushdsbr committed May 24, 2024
1 parent 1c02bec commit 6a10130
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getFontWeight, generator } from './theme';
import { getFontWeight, generator } from '../theme';

export const fontWeight = props =>
generator({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getFontWeight, generator } from './theme';
import { getFontWeight, generator } from '../theme';

export const fontWeight = props =>
generator({
Expand Down
2 changes: 2 additions & 0 deletions packages/system/src/font-weight/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './fontWeight';
export type { FontWeights } from './types';
8 changes: 8 additions & 0 deletions packages/system/src/font-weight/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { fontWeights } from '@gympass/yoga-tokens';

type FontWeightsValues = typeof fontWeights | string | number;

export type FontWeights = {
fontWeight?: FontWeightsValues;
fw?: FontWeightsValues;
};

0 comments on commit 6a10130

Please sign in to comment.