Skip to content

Commit

Permalink
feat: make first steps work with Amsterdam theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Oct 4, 2024
1 parent 7ed3967 commit d7ee3b6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const amsterdamTheme = addPath(convertValueTreeToDesignTokenTree(amsterda

const meta = {
title: 'Theme Builder/Amsterdam',
id: 'theme-builder-amsterdam',
id: 'theme-builder-ams',
component: ThemeBuilder,
args: {
step: 0,
Expand All @@ -29,13 +29,17 @@ const meta = {
theme: amsterdamTheme,
themeExtension: {
basis: {
common: {
typography: {
'font-family': {
default: {
value: '{ams.text.font-family}',
},
},
typography: {
'font-family': {
default: { value: '{ams.text.font-family}' },
},
'font-size': {
small: { value: '{ams.text.level.6.font-size}' },
medium: { value: '{ams.text.level.5.font-size}' },
large: { value: '{ams.text.level.4.font-size}' },
'x-large': { value: '{ams.text.level.3.font-size}' },
'xx-large': { value: '{ams.text.level.2.font-size}' },
'xxx-large': { value: '{ams.text.level.1.font-size}' },
},
},
},
Expand Down
24 changes: 12 additions & 12 deletions packages/storybook/src/theme-builder/steps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ export const steps: ThemeBuilderStepObject[] = [
{
name: 'Font families',
tokens: [
'basis.common.typography.font-family.default',
'basis.common.typography.font-family.sans-serif',
'basis.common.typography.font-family.serif',
'basis.common.typography.font-family.code',
'basis.typography.font-family.default',
'basis.typography.font-family.sans-serif',
'basis.typography.font-family.serif',
'basis.typography.font-family.code',
],
example: LinkExample,
description: () => (
Expand All @@ -59,14 +59,14 @@ export const steps: ThemeBuilderStepObject[] = [
{
name: 'Font size scale',
tokens: [
'basis.common.typography.font-size.xx-small',
'basis.common.typography.font-size.x-small',
'basis.common.typography.font-size.small',
'basis.common.typography.font-size.medium',
'basis.common.typography.font-size.large',
'basis.common.typography.font-size.x-large',
'basis.common.typography.font-size.xx-large',
'basis.common.typography.font-size.xxx-large',
'basis.typography.font-size.xx-small',
'basis.typography.font-size.x-small',
'basis.typography.font-size.small',
'basis.typography.font-size.medium',
'basis.typography.font-size.large',
'basis.typography.font-size.x-large',
'basis.typography.font-size.xx-large',
'basis.typography.font-size.xxx-large',
],
example: FontSizeScale,
description: () => (
Expand Down

0 comments on commit d7ee3b6

Please sign in to comment.