Skip to content

Commit abdb3a9

Browse files
authored
Add utility typography CSS vars to main bundle (#2438)
* update main bundle * Create small-nails-matter.md
1 parent 70a3eee commit abdb3a9

File tree

5 files changed

+2731
-2780
lines changed

5 files changed

+2731
-2780
lines changed

.changeset/small-nails-matter.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Add utility typography CSS vars to main bundle

docs/.storybook/preview.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import '../../src/base/index.scss'
44
import '../src/stories/helpers/storybook-styles.scss'
55
// temporary import until primitives moves to core bundle
66
// importing the index from /css didn't play nice with Storybook
7-
import '../../node_modules/@primer/primitives/tokens-v2-private/css/tokens/base/size/size.css'
8-
import '../../node_modules/@primer/primitives/tokens-v2-private/css/tokens/base/typography/typography.css'
9-
import '../../node_modules/@primer/primitives/tokens-v2-private/css/tokens/functional/size/border.css'
10-
import '../../node_modules/@primer/primitives/tokens-v2-private/css/tokens/functional/size/breakpoints.css'
11-
import '../../node_modules/@primer/primitives/tokens-v2-private/css/tokens/functional/size/size-coarse.css'
12-
import '../../node_modules/@primer/primitives/tokens-v2-private/css/tokens/functional/size/size-fine.css'
13-
import '../../node_modules/@primer/primitives/tokens-v2-private/css/tokens/functional/size/size.css'
14-
import '../../node_modules/@primer/primitives/tokens-v2-private/css/tokens/functional/size/viewport.css'
15-
import '../../node_modules/@primer/primitives/tokens-v2-private/css/tokens/functional/typography/typography.css'
7+
import '@primer/primitives/tokens-next-private/css/base/size/size.css';
8+
import '@primer/primitives/tokens-next-private/css/base/typography/typography.css';
9+
import '@primer/primitives/tokens-next-private/css/functional/size/border.css';
10+
import '@primer/primitives/tokens-next-private/css/functional/size/breakpoints.css';
11+
import '@primer/primitives/tokens-next-private/css/functional/size/size-coarse.css';
12+
import '@primer/primitives/tokens-next-private/css/functional/size/size-fine.css';
13+
import '@primer/primitives/tokens-next-private/css/functional/size/size.css';
14+
import '@primer/primitives/tokens-next-private/css/functional/size/viewport.css';
15+
import '@primer/primitives/tokens-next-private/css/functional/typography/typography.css';
1616
import renderToHTML from '../src/stories/helpers/code-snippet-html-helper'
1717

1818
const customViewports = {

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@primer/gatsby-theme-doctocat": "4.4.0",
1616
"@primer/octicons": "17.0.0",
1717
"@primer/octicons-react": "17.0.0",
18-
"@primer/primitives": "7.8.3",
18+
"@primer/primitives": "7.11.7",
1919
"@primer/view-components": "^0.0.114",
2020
"@svgr/webpack": "5.5.0",
2121
"autoprefixer": "10.4.2",

0 commit comments

Comments
 (0)