Skip to content

Commit

Permalink
Add t-shirt size props to sizes (#164)
Browse files Browse the repository at this point in the history
* Add additional size props

* remove props declaration from css file

* Update openprops and OPtoken numbers

Co-authored-by: Aslam Shah <aslam.shah@riskident.com>
  • Loading branch information
hunzaboy and aslamatriskident authored Jan 26, 2022
1 parent db520bb commit f36a516
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/props.sizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,12 @@ export default {
'--size-header-1': '20ch',
'--size-header-2': '25ch',
'--size-header-3': '35ch',

'--size-xxs': '240px',
'--size-xs': '360px',
'--size-sm': '480px',
'--size-md': '768px',
'--size-lg': '1024px',
'--size-xl': '1440px',
'--size-xxl': '1920px',
}
4 changes: 2 additions & 2 deletions test/basic.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const OpenProps = require('../dist/open-props.cjs')
const OPtokens = require('../open-props.tokens.json')

test('Should have an all included import', t => {
t.is(Object.keys(OpenProps).length, 371)
t.is(Object.keys(OpenProps).length, 378)
})

test('Import should have animations', async t => {
Expand All @@ -20,7 +20,7 @@ test('Import should have colors', async t => {
})

test('JSON Import should have colors', async t => {
t.is(Object.keys(OPtokens).length, 274)
t.is(Object.keys(OPtokens).length, 281)
t.assert(Object.keys(OPtokens).includes('--orange-0'))
})

Expand Down

0 comments on commit f36a516

Please sign in to comment.