Skip to content

Commit

Permalink
add old fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jothsa committed Jun 19, 2024
1 parent a1d6842 commit d970002
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/props.fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
--font-antique: Superclarendon, Bookman Old Style, URW Bookman, URW Bookman L, Georgia Pro, Georgia, serif;
--font-didone: Didot, Bodoni MT, Noto Serif Display, URW Palladio L, P052, Sylfaen, serif;
--font-handwritten: Segoe Print, Bradley Hand, Chilanka, TSCu_Comic, casual, cursive;
--font-sans: var(--font-system-ui);
--font-serif: var(--font-transitional);
--font-mono: var(--font-monospace-code);
--font-weight-1: 100;
--font-weight-2: 200;
--font-weight-3: 300;
Expand Down
5 changes: 4 additions & 1 deletion src/props.fonts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
'--font-system-ui': 'system-ui, sans-serif',
'--font-system-ui': 'system-ui, sans-serif',
'--font-transitional':
'Charter, Bitstream Charter, Sitka Text, Cambria, serif',
'--font-old-style':
Expand Down Expand Up @@ -27,6 +27,9 @@ export default {
'Didot, Bodoni MT, Noto Serif Display, URW Palladio L, P052, Sylfaen, serif',
'--font-handwritten':
'Segoe Print, Bradley Hand, Chilanka, TSCu_Comic, casual, cursive',
'--font-sans': 'var(--font-system-ui)',
'--font-serif': 'var(--font-transitional)',
'--font-mono': 'var(--font-monospace-code)',

'--font-weight-1': '100',
'--font-weight-2': '200',
Expand Down
2 changes: 1 addition & 1 deletion test/basic.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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, 1728)
t.is(Object.keys(OpenProps).length, 1734)
})

test('Import should have animations', async t => {
Expand Down

0 comments on commit d970002

Please sign in to comment.