Skip to content

Commit

Permalink
Fix README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Karibash committed Jul 22, 2021
1 parent d1662b8 commit 6680c29
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,20 @@

- [x] px
- [x] cm
- [ ] mm
- [ ] Q
- [ ] in
- [ ] pc
- [ ] pt
- [x] mm
- [x] Q
- [x] in
- [x] pc
- [x] pt

### Relative length units

- [x] rem
- [x] em
- [x] vw
- [x] vh
- [x] vmin
- [x] vmax
- [ ] em
- [ ] ex
- [ ] ch
- [ ] lh

### Multiplication units

Expand All @@ -37,12 +34,12 @@
The basic usage is as follows:

```typescript
import { Pixel, tryFindRootFontSize } from '@karibash/pixel-units';
import { Unit, convertUnits } from '@karibash/pixel-units';

const pixel = new Pixel(32);
const rem = pixel.toRem(tryFindRootFontSize(16));
const pixel: Unit<'px'> = '32px';
const rem = convertUnits(pixel, 'rem');

console.log(`${rem}`);
console.log(rem);
// -> 2rem
```

Expand Down

0 comments on commit 6680c29

Please sign in to comment.