Skip to content

Commit

Permalink
feat: add font tokens and component-level tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
tigranpetrossian committed Jun 14, 2024
1 parent a346985 commit 0098062
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion figma-primitives/src/styles/figma-development-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

body {
font-family: Inter, sans-serif;
font-family: var(--fp-font-family-default);
font-size: 11px;
line-height: 16px;
font-weight: 400;
Expand Down
2 changes: 2 additions & 0 deletions figma-primitives/src/styles/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import 'tokens/fonts.css';
@import 'tokens/space.css';
@import 'tokens/radii.css';
@import 'tokens/components.css';
@import '../components/input-base/input-base.css';
@import '../components/control-input/control-input.css';
@import '../components/tooltip/tooltip.css';
Expand Down
10 changes: 10 additions & 0 deletions figma-primitives/src/styles/tokens/components.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
:root {
--fp-color-bg-menu: #1e1e1e;
--fp-color-bg-menu-selected: var(--figma-color-bg-selected-strong);
--fp-color-text-menu: var(--figma-color-text-oncomponent);
--fp-color-text-menu-secondary: var(--figma-color-text-oncomponent-secondary);
--fp-color-text-menu-tertiary: var(--figma-color-text-oncomponent-tertiary);
--fp-color-icon-menu: var(--figma-color-icon-oncomponent);
--fp-color-border-menu: #383838;
--fp-font-size-menu: 12px;
}
5 changes: 5 additions & 0 deletions figma-primitives/src/styles/tokens/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:root {
--fp-font-family-default: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
Noto Sans, sans-serif, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
SFProLocalRange;
}

0 comments on commit 0098062

Please sign in to comment.