Web component for displaying 5th Edition D&D character sheets
npm install vellum-sheetWeb component for displaying RPG sheets and 5th Edition RPG character sheets. Features include:
* Cross-browser support using Polymer and the Web Components polyfill
* Simpler (just one import vs 5)
* Theme-able
To install:
``sh`
npm i --save vellum-sheet
Add the following lines to your HTML head element:
`html`
A character sheet is written as follows:
`html
Bruenor
My gruff, snarling demeanour hides a soft heart and a genuine affection for my friends.
Personality Traits
Fairness. All are equal under the law and non should get preferential treatment.
I aspire to reclaim my homeland, Mithral Hall, from the shadow dragon that drove my people out.
I have a soft spot for orphans and other, wayward souls leading me to show mercy even when it might not be warranted.
`
Custom CSS properties for this component include:
| Property | Description
| -------------------------------------- | ---
| --char-sheet-border-color | Colour of the border line around sheet.
You can define your own custom sheets using the and custom elements:
`html`
You should also order the contents of your custom sheet into columns yourself, preferably using CSS Grid Layout:
`css`
vellum-sheet.custom {
display: grid;
grid-template-columns: 50% 50%;
width: 750px;
height: 750px;
}
Custom sheets can be composed on the following helper elements:
A sheet box is a bordered container for any content, typically a list of items:
`html``
Requirements:
* Node.js
To set-up your environment execute:
$ npm install
To run linting and test:
$ npm test