Skip to content

Commit

Permalink
feat(plasma-web/b2c): add typography as tokens-mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
TitanKuzmich committed Dec 19, 2023
1 parent dfb3e2e commit ec32d9d
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plasma-b2c/src/tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ export {
inputBorderHover,
} from '@salutejs/plasma-hope';

export * from '@salutejs/plasma-typo';
export * from './typography';
54 changes: 54 additions & 0 deletions packages/plasma-b2c/src/tokens/typography.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
export {
dsplL,
dsplLBold,
dsplM,
dsplMBold,
dsplS,
dsplSBold,
h1,
h1Bold,
h2,
h2Bold,
h3,
h3Bold,
h4,
h4Bold,
h5,
h5Bold,
bodyL,
bodyLBold,
bodyM,
bodyMBold,
bodyS,
bodySBold,
bodyXS,
bodyXSBold,
bodyXXS,
bodyXXSBold,
textL,
textLBold,
textM,
textMBold,
textS,
textSBold,
textXS,
textXSBold,
body1,
body2,
body3,
button1,
button2,
caption,
display1,
display2,
display3,
footnote1,
footnote2,
headline1,
headline2,
headline3,
headline4,
paragraph1,
paragraph2,
underline,
} from '@salutejs/plasma-new-hope';
55 changes: 55 additions & 0 deletions packages/plasma-web/src/tokens/typography.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
import type { CSSObject } from 'styled-components';

export {
dsplL,
dsplLBold,
dsplM,
dsplMBold,
dsplS,
dsplSBold,
h1,
h1Bold,
h2,
h2Bold,
h3,
h3Bold,
h4,
h4Bold,
h5,
h5Bold,
bodyL,
bodyLBold,
bodyM,
bodyMBold,
bodyS,
bodySBold,
bodyXS,
bodyXSBold,
bodyXXS,
bodyXXSBold,
textL,
textLBold,
textM,
textMBold,
textS,
textSBold,
textXS,
textXSBold,
body1,
body2,
body3,
button1,
button2,
caption,
display1,
display2,
display3,
footnote1,
footnote2,
headline1,
headline2,
headline3,
headline4,
paragraph1,
paragraph2,
underline,
} from '@salutejs/plasma-new-hope';

export const fieldTypo = ({
fontFamily: 'var(--plasma-field-font-family)',
fontSize: 'var(--plasma-field-font-size)',
Expand Down

0 comments on commit ec32d9d

Please sign in to comment.