typography-theme-trajan
Advanced tools
+21
| MIT License | ||
| Copyright (c) [2017] [guoliim] | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
+3
-3
@@ -30,8 +30,8 @@ import gray from 'gray-percentage'; | ||
| blockquote: { | ||
| ...scale(1/5), | ||
| ...scale(2/16), | ||
| color: gray(41), | ||
| fontStyle: 'italic', | ||
| paddingLeft: rhythm(13/16), | ||
| marginLeft: rhythm(-1), | ||
| borderLeft: `${rhythm(3/16)} solid ${gray(10)}`, | ||
| marginLeft: rhythm(-1/16), | ||
| borderLeft: `${rhythm(3/16)} solid ${gray(36)}`, | ||
| }, | ||
@@ -38,0 +38,0 @@ 'blockquote > :last-child': { |
+8
-1
| { | ||
| "name": "typography-theme-trajan", | ||
| "version": "0.0.1", | ||
| "version": "0.0.2", | ||
| "description": "A theme for Typography.js insprired by the typography-theme-wordpress-2016", | ||
@@ -19,3 +19,10 @@ "main": "index.js", | ||
| "typography-breakpoint-constants": "^0.14.0" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/guoliim/typography-theme-trajan" | ||
| }, | ||
| "bugs": { | ||
| "url": "https://github.com/guoliim/typography-theme-trajan/issues" | ||
| } | ||
| } |
+16
-0
| # Trajan -- a [Typography.js](https://github.com/kyleamathews/typography.js) theme | ||
| [](https://www.npmjs.com/package/typography-theme-trajan) []() | ||
| A theme for Typography.js inspired by the typography of the typography-theme-wordpress-2016 | ||
| ## Install | ||
| ```bash | ||
| npm install --save typography typography-theme-trajan | ||
| ``` | ||
| ## Usage | ||
| ```javascript | ||
| import Typography from 'typography' | ||
| import themeTrajan from 'typography-theme-trajan' | ||
| const typography = new Typography(themeTrajan) | ||
| ``` | ||
| ## More on theme | ||
| + Trajan theme uses "[Trajan](https://typekit.com/fonts/trajan)" for headers and "[Merriweather](https://typekit.com/fonts/merriweather)" for body text | ||
| + Add "[Source Han Serif](https://source.typekit.com/source-han-serif/)" for supporting chinese based on local Source Han Serif font | ||
| ## LICENSE | ||
| This project is under the MIT license. See the [LICENSE](./LISENCE) file for the full license text |
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
5226
67.07%5
25%1
-50%21
320%0
-100%