Skip to content

Commit

Permalink
Merge pull request #19632 from storybookjs/jeppe/fix-uisb-symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold authored Oct 26, 2022
2 parents b476912 + 98fbc0e commit ce66b39
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
4 changes: 2 additions & 2 deletions code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
"publish:debug": "npm run publish:latest -- --npm-tag=debug --no-push",
"publish:latest": "lerna publish --exact --concurrency 1 --force-publish",
"publish:next": "npm run publish:latest -- --npm-tag=next",
"storybook:ui": "./lib/cli/bin/index.js dev --port 6006 --config-dir ./ui/.storybook --no-manager-cache",
"storybook:ui:build": "./lib/cli/bin/index.js build --config-dir ./ui/.storybook",
"storybook:ui": "NODE_OPTIONS=\"--preserve-symlinks --preserve-symlinks-main\" ./lib/cli/bin/index.js dev --port 6006 --config-dir ./ui/.storybook --no-manager-cache",
"storybook:ui:build": "NODE_OPTIONS=\"--preserve-symlinks --preserve-symlinks-main\" ./lib/cli/bin/index.js build --config-dir ./ui/.storybook",
"storybook:ui:chromatic": "yarn chromatic --build-script-name storybook:ui:build --storybook-config-dir ./ui/.storybook --storybook-base-dir ./code/ui --project-token=$CHROMATIC_TOKEN_STORYBOOK_UI --only-changed --exit-zero-on-changes --exit-once-uploaded",
"task": "cd .. && yarn task",
"test": "NODE_OPTIONS=--max_old_space_size=4096 jest --config ./jest.config.js",
Expand Down
4 changes: 2 additions & 2 deletions code/ui/.storybook/preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
convert,
styled,
useTheme,
} from '../../lib/theming';
import { Symbols } from '../components';
} from '@storybook/theming';
import { Symbols } from '@storybook/components';

const { document } = global;

Expand Down
28 changes: 27 additions & 1 deletion code/ui/components/src/typography/typography.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ export const sampleText =

## Sans-serif

```
font-family:
"Nunito Sans",
-apple-system,
".SFNSText-Regular",
"San Francisco",
BlinkMacSystemFont,
"Segoe UI",
"Helvetica Neue",
Helvetica,
Arial,
sans-serif;
```

<Typeset
fontFamily={typography.fonts.base}
fontSizes={fontSizes}
Expand All @@ -33,7 +47,19 @@ export const sampleText =

## Monospace

Currently not working
```
font-family:
ui-monospace,
Menlo,
Monaco,
"Roboto Mono",
"Oxygen Mono",
"Ubuntu Monospace",
"Source Code Pro",
"Droid Sans Mono",
"Courier New",
monospace;
```

<Typeset
fontFamily={typography.fonts.mono}
Expand Down

0 comments on commit ce66b39

Please sign in to comment.