├── .gitignore ├── LICENSE.txt ├── package.json ├── css ├── css-font-weight.min.css ├── css-font-weight.css ├── font-weight.css └── font-weight.min.css ├── src └── css-font-weight.css └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # List of files for git to ignore 2 | 3 | .DS_Store 4 | .AppleDouble 5 | .LSOverride 6 | 7 | # Icon must end with two \r 8 | Icon 9 | 10 | 11 | # Thumbnails 12 | ._* 13 | 14 | # Files that might appear on external disk 15 | .Spotlight-V100 16 | .Trashes 17 | 18 | # Directories potentially created on remote AFP share 19 | .AppleDB 20 | .AppleDesktop 21 | Network Trash Folder 22 | Temporary Items 23 | .apdisk 24 | 25 | # Vim 26 | Session.vim 27 | 28 | # Node 29 | node_modules/* 30 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | ISC License (ISC) 2 | Copyright (c) 2018, Adam Morse 3 | 4 | Permission to use, copy, modify, and/or distribute this software for any 5 | purpose with or without fee is hereby granted, provided that the above 6 | copyright notice and this permission notice appear in all copies. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 9 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 10 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 11 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 12 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 13 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 14 | PERFORMANCE OF THIS SOFTWARE. 15 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "css-font-weight", 3 | "style": "font-weight.css", 4 | "version": "1.0.8", 5 | "homepage": "http://github.com/mrmrs/css-font-weight", 6 | "description": "Css module of single purpose classes for font weight", 7 | "keywords": [ 8 | "css", 9 | "oocss", 10 | "font-weight" 11 | ], 12 | "css-font-weight": { 13 | "type": "git", 14 | "url": "http://github.com/mrmrs/css-font-weight.git" 15 | }, 16 | "bugs": { 17 | "url": "https://github.com/mrmrs/css-font-weight/issues", 18 | "email": "hi@mrmrs.cc" 19 | }, 20 | "author": { 21 | "name": "Adam Morse", 22 | "email": "hi@mrmrs.cc", 23 | "url": "http://mrmrs.cc" 24 | }, 25 | "contributors": [ 26 | { 27 | "name": "Adam Morse", 28 | "email": "hi@mrmrs.cc" 29 | } 30 | ], 31 | "license": "MIT", 32 | "devDependencies": { 33 | "tachyons-cli": "^1.3.0" 34 | }, 35 | "scripts": { 36 | "start": "tachyons src/css-font-weight.css > css/css-font-weight.css && tachyons src/css-font-weight.css --minify > css/css-font-weight.min.css && tachyons src/css-font-weight.css --generate-docs --package=../../package.json > readme.md" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /css/css-font-weight.min.css: -------------------------------------------------------------------------------- 1 | .fwn{font-weight:400}.b{font-weight:700}.fw-light{font-weight:lighter}.fw-bolder{font-weight:bolder}.fw1{font-weight:100}.fw2{font-weight:200}.fw3{font-weight:300}.fw4{font-weight:400}.fw5{font-weight:500}.fw6{font-weight:600}.fw7{font-weight:700}.fw8{font-weight:800}.fw9{font-weight:900}@media screen and (min-width:48em){.fwn-ns{font-weight:400}.b-ns{font-weight:700}.fw-light-ns{font-weight:lighter}.fw-bolder-ns{font-weight:bolder}.fw1-ns{font-weight:100}.fw2-ns{font-weight:200}.fw3-ns{font-weight:300}.fw4-ns{font-weight:400}.fw5-ns{font-weight:500}.fw6-ns{font-weight:600}.fw7-ns{font-weight:700}.fw8-ns{font-weight:800}.fw9-ns{font-weight:900}}@media screen and (min-width:48em) and (max-width:64em){.fwn-m{font-weight:400}.b-m{font-weight:700}.fw-light-m{font-weight:lighter}.fw-bolder-m{font-weight:bolder}.fw1-m{font-weight:100}.fw2-m{font-weight:200}.fw3-m{font-weight:300}.fw4-m{font-weight:400}.fw5-m{font-weight:500}.fw6-m{font-weight:600}.fw7-m{font-weight:700}.fw8-m{font-weight:800}.fw9-m{font-weight:900}}@media screen and (min-width:64em){.fwn-l{font-weight:400}.b-l{font-weight:700}.fw-light-l{font-weight:lighter}.fw-bolder-l{font-weight:bolder}.fw1-l{font-weight:100}.fw2-l{font-weight:200}.fw3-l{font-weight:300}.fw4-l{font-weight:400}.fw5-l{font-weight:500}.fw6-l{font-weight:600}.fw7-l{font-weight:700}.fw8-l{font-weight:800}.fw9-l{font-weight:900}} 2 | 3 | -------------------------------------------------------------------------------- /css/css-font-weight.css: -------------------------------------------------------------------------------- 1 | /* 2 | FONT WEIGHT 3 | */ 4 | .fwn { font-weight: normal; } 5 | .b { font-weight: bold; } 6 | .fw-light { font-weight: lighter; } 7 | .fw-bolder { font-weight: bolder; } 8 | .fw1 { font-weight: 100; } 9 | .fw2 { font-weight: 200; } 10 | .fw3 { font-weight: 300; } 11 | .fw4 { font-weight: 400; } 12 | .fw5 { font-weight: 500; } 13 | .fw6 { font-weight: 600; } 14 | .fw7 { font-weight: 700; } 15 | .fw8 { font-weight: 800; } 16 | .fw9 { font-weight: 900; } 17 | @media screen and (min-width: 48em) { 18 | .fwn-ns { font-weight: normal; } 19 | .b-ns { font-weight: bold; } 20 | .fw-light-ns { font-weight: lighter; } 21 | .fw-bolder-ns { font-weight: bolder; } 22 | .fw1-ns { font-weight: 100; } 23 | .fw2-ns { font-weight: 200; } 24 | .fw3-ns { font-weight: 300; } 25 | .fw4-ns { font-weight: 400; } 26 | .fw5-ns { font-weight: 500; } 27 | .fw6-ns { font-weight: 600; } 28 | .fw7-ns { font-weight: 700; } 29 | .fw8-ns { font-weight: 800; } 30 | .fw9-ns { font-weight: 900; } 31 | } 32 | @media screen and (min-width:48em) and (max-width: 64em) { 33 | .fwn-m { font-weight: normal; } 34 | .b-m { font-weight: bold; } 35 | .fw-light-m { font-weight: lighter; } 36 | .fw-bolder-m { font-weight: bolder; } 37 | .fw1-m { font-weight: 100; } 38 | .fw2-m { font-weight: 200; } 39 | .fw3-m { font-weight: 300; } 40 | .fw4-m { font-weight: 400; } 41 | .fw5-m { font-weight: 500; } 42 | .fw6-m { font-weight: 600; } 43 | .fw7-m { font-weight: 700; } 44 | .fw8-m { font-weight: 800; } 45 | .fw9-m { font-weight: 900; } 46 | } 47 | @media screen and (min-width: 64em) { 48 | .fwn-l { font-weight: normal; } 49 | .b-l { font-weight: bold; } 50 | .fw-light-l { font-weight: lighter; } 51 | .fw-bolder-l { font-weight: bolder; } 52 | .fw1-l { font-weight: 100; } 53 | .fw2-l { font-weight: 200; } 54 | .fw3-l { font-weight: 300; } 55 | .fw4-l { font-weight: 400; } 56 | .fw5-l { font-weight: 500; } 57 | .fw6-l { font-weight: 600; } 58 | .fw7-l { font-weight: 700; } 59 | .fw8-l { font-weight: 800; } 60 | .fw9-l { font-weight: 900; } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /css/font-weight.css: -------------------------------------------------------------------------------- 1 | /* 2 | FONT WEIGHT 3 | */ 4 | 5 | .fwn { font-weight: normal; } 6 | .b { font-weight: bold; } 7 | 8 | .fw-light { font-weight: lighter; } 9 | .fw-bolder { font-weight: bolder; } 10 | 11 | .fw1 { font-weight: 100; } 12 | .fw2 { font-weight: 200; } 13 | .fw3 { font-weight: 300; } 14 | .fw4 { font-weight: 400; } 15 | .fw5 { font-weight: 500; } 16 | .fw6 { font-weight: 600; } 17 | .fw7 { font-weight: 700; } 18 | .fw8 { font-weight: 800; } 19 | .fw9 { font-weight: 900; } 20 | 21 | @media screen and (min-width: 48em) { 22 | .fwn-ns { font-weight: normal; } 23 | .b-ns { font-weight: bold; } 24 | .fw-light-ns { font-weight: lighter; } 25 | .fw-bolder-ns { font-weight: bolder; } 26 | .fw1-ns { font-weight: 100; } 27 | .fw2-ns { font-weight: 200; } 28 | .fw3-ns { font-weight: 300; } 29 | .fw4-ns { font-weight: 400; } 30 | .fw5-ns { font-weight: 500; } 31 | .fw6-ns { font-weight: 600; } 32 | .fw7-ns { font-weight: 700; } 33 | .fw8-ns { font-weight: 800; } 34 | .fw9-ns { font-weight: 900; } 35 | } 36 | 37 | @media screen and (min-width:48em) and (max-width: 64em) { 38 | .fwn-m { font-weight: normal; } 39 | .b-m { font-weight: bold; } 40 | .fw-light-m { font-weight: lighter; } 41 | .fw-bolder-m { font-weight: bolder; } 42 | .fw1-m { font-weight: 100; } 43 | .fw2-m { font-weight: 200; } 44 | .fw3-m { font-weight: 300; } 45 | .fw4-m { font-weight: 400; } 46 | .fw5-m { font-weight: 500; } 47 | .fw6-m { font-weight: 600; } 48 | .fw7-m { font-weight: 700; } 49 | .fw8-m { font-weight: 800; } 50 | .fw9-m { font-weight: 900; } 51 | 52 | } 53 | 54 | @media screen and (min-width: 64em) { 55 | .fwn-l { font-weight: normal; } 56 | .b-l { font-weight: bold; } 57 | .fw-light-l { font-weight: lighter; } 58 | .fw-bolder-l { font-weight: bolder; } 59 | .fw1-l { font-weight: 100; } 60 | .fw2-l { font-weight: 200; } 61 | .fw3-l { font-weight: 300; } 62 | .fw4-l { font-weight: 400; } 63 | .fw5-l { font-weight: 500; } 64 | .fw6-l { font-weight: 600; } 65 | .fw7-l { font-weight: 700; } 66 | .fw8-l { font-weight: 800; } 67 | .fw9-l { font-weight: 900; } 68 | } 69 | 70 | -------------------------------------------------------------------------------- /css/font-weight.min.css: -------------------------------------------------------------------------------- 1 | /* 2 | FONT WEIGHT 3 | */ 4 | 5 | .fwn { font-weight: normal; } 6 | .b { font-weight: bold; } 7 | 8 | .fw-light { font-weight: lighter; } 9 | .fw-bolder { font-weight: bolder; } 10 | 11 | .fw1 { font-weight: 100; } 12 | .fw2 { font-weight: 200; } 13 | .fw3 { font-weight: 300; } 14 | .fw4 { font-weight: 400; } 15 | .fw5 { font-weight: 500; } 16 | .fw6 { font-weight: 600; } 17 | .fw7 { font-weight: 700; } 18 | .fw8 { font-weight: 800; } 19 | .fw9 { font-weight: 900; } 20 | 21 | @media screen and (min-width: 48em) { 22 | .fwn-ns { font-weight: normal; } 23 | .b-ns { font-weight: bold; } 24 | .fw-light-ns { font-weight: lighter; } 25 | .fw-bolder-ns { font-weight: bolder; } 26 | .fw1-ns { font-weight: 100; } 27 | .fw2-ns { font-weight: 200; } 28 | .fw3-ns { font-weight: 300; } 29 | .fw4-ns { font-weight: 400; } 30 | .fw5-ns { font-weight: 500; } 31 | .fw6-ns { font-weight: 600; } 32 | .fw7-ns { font-weight: 700; } 33 | .fw8-ns { font-weight: 800; } 34 | .fw9-ns { font-weight: 900; } 35 | } 36 | 37 | @media screen and (min-width:48em) and (max-width: 64em) { 38 | .fwn-m { font-weight: normal; } 39 | .b-m { font-weight: bold; } 40 | .fw-light-m { font-weight: lighter; } 41 | .fw-bolder-m { font-weight: bolder; } 42 | .fw1-m { font-weight: 100; } 43 | .fw2-m { font-weight: 200; } 44 | .fw3-m { font-weight: 300; } 45 | .fw4-m { font-weight: 400; } 46 | .fw5-m { font-weight: 500; } 47 | .fw6-m { font-weight: 600; } 48 | .fw7-m { font-weight: 700; } 49 | .fw8-m { font-weight: 800; } 50 | .fw9-m { font-weight: 900; } 51 | 52 | } 53 | 54 | @media screen and (min-width: 64em) { 55 | .fwn-l { font-weight: normal; } 56 | .b-l { font-weight: bold; } 57 | .fw-light-l { font-weight: lighter; } 58 | .fw-bolder-l { font-weight: bolder; } 59 | .fw1-l { font-weight: 100; } 60 | .fw2-l { font-weight: 200; } 61 | .fw3-l { font-weight: 300; } 62 | .fw4-l { font-weight: 400; } 63 | .fw5-l { font-weight: 500; } 64 | .fw6-l { font-weight: 600; } 65 | .fw7-l { font-weight: 700; } 66 | .fw8-l { font-weight: 800; } 67 | .fw9-l { font-weight: 900; } 68 | } 69 | 70 | -------------------------------------------------------------------------------- /src/css-font-weight.css: -------------------------------------------------------------------------------- 1 | /* 2 | FONT WEIGHT 3 | */ 4 | 5 | .fwn { font-weight: normal; } 6 | .b { font-weight: bold; } 7 | 8 | .fw-light { font-weight: lighter; } 9 | .fw-bolder { font-weight: bolder; } 10 | 11 | .fw1 { font-weight: 100; } 12 | .fw2 { font-weight: 200; } 13 | .fw3 { font-weight: 300; } 14 | .fw4 { font-weight: 400; } 15 | .fw5 { font-weight: 500; } 16 | .fw6 { font-weight: 600; } 17 | .fw7 { font-weight: 700; } 18 | .fw8 { font-weight: 800; } 19 | .fw9 { font-weight: 900; } 20 | 21 | @media screen and (min-width: 48em) { 22 | .fwn-ns { font-weight: normal; } 23 | .b-ns { font-weight: bold; } 24 | .fw-light-ns { font-weight: lighter; } 25 | .fw-bolder-ns { font-weight: bolder; } 26 | .fw1-ns { font-weight: 100; } 27 | .fw2-ns { font-weight: 200; } 28 | .fw3-ns { font-weight: 300; } 29 | .fw4-ns { font-weight: 400; } 30 | .fw5-ns { font-weight: 500; } 31 | .fw6-ns { font-weight: 600; } 32 | .fw7-ns { font-weight: 700; } 33 | .fw8-ns { font-weight: 800; } 34 | .fw9-ns { font-weight: 900; } 35 | } 36 | 37 | @media screen and (min-width:48em) and (max-width: 64em) { 38 | .fwn-m { font-weight: normal; } 39 | .b-m { font-weight: bold; } 40 | .fw-light-m { font-weight: lighter; } 41 | .fw-bolder-m { font-weight: bolder; } 42 | .fw1-m { font-weight: 100; } 43 | .fw2-m { font-weight: 200; } 44 | .fw3-m { font-weight: 300; } 45 | .fw4-m { font-weight: 400; } 46 | .fw5-m { font-weight: 500; } 47 | .fw6-m { font-weight: 600; } 48 | .fw7-m { font-weight: 700; } 49 | .fw8-m { font-weight: 800; } 50 | .fw9-m { font-weight: 900; } 51 | 52 | } 53 | 54 | @media screen and (min-width: 64em) { 55 | .fwn-l { font-weight: normal; } 56 | .b-l { font-weight: bold; } 57 | .fw-light-l { font-weight: lighter; } 58 | .fw-bolder-l { font-weight: bolder; } 59 | .fw1-l { font-weight: 100; } 60 | .fw2-l { font-weight: 200; } 61 | .fw3-l { font-weight: 300; } 62 | .fw4-l { font-weight: 400; } 63 | .fw5-l { font-weight: 500; } 64 | .fw6-l { font-weight: 600; } 65 | .fw7-l { font-weight: 700; } 66 | .fw8-l { font-weight: 800; } 67 | .fw9-l { font-weight: 900; } 68 | } 69 | 70 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # css-font-weight 1.0.6 2 | 3 | Css module of single purpose classes for font weight 4 | 5 | #### Stats 6 | 7 | 340 | 52 | 52 8 | ---|---|--- 9 | bytes | selectors | declarations 10 | 11 | ## Installation 12 | 13 | #### With [npm](https://npmjs.com) 14 | 15 | ``` 16 | npm install --save-dev css-font-weight 17 | ``` 18 | 19 | Learn more about using css installed with npm: 20 | * https://webpack.github.io/docs/stylesheets.html 21 | * https://github.com/defunctzombie/npm-css 22 | 23 | #### With Git 24 | 25 | http: 26 | ``` 27 | git clone https://github.com/tachyons-css/css-font-weight 28 | ``` 29 | 30 | ssh: 31 | ``` 32 | git clone git@github.com:tachyons-css/css-font-weight.git 33 | ``` 34 | 35 | ## Usage 36 | 37 | #### Using with [Postcss](https://github.com/postcss/postcss) 38 | 39 | Import the css module 40 | 41 | ```css 42 | @import "css-font-weight"; 43 | ``` 44 | 45 | Then process the css using the [`tachyons-cli`](https://github.com/tachyons-css/tachyons-cli) 46 | 47 | ```sh 48 | $ npm i -g tachyons-cli 49 | $ tachyons path/to/css-file.css > dist/t.css 50 | ``` 51 | 52 | #### Using the css 53 | 54 | ##### CDN 55 | The easiest and most simple way to use the css is to use the cdn hosted version. Include it in the head of your html with: 56 | 57 | ``` 58 | 59 | ``` 60 | 61 | ##### Locally 62 | The built css is located in the `css` directory. It contains an unminified and minified version. 63 | You can either cut and paste that css or link to it directly in your html. 64 | 65 | ```html 66 | 67 | ``` 68 | 69 | #### Development 70 | 71 | The source css files can be found in the `src` directory. 72 | Running `$ npm start` will process the source css and place the built css in the `css` directory. 73 | 74 | ## The css 75 | 76 | ```css 77 | /* 78 | FONT WEIGHT 79 | */ 80 | .fwn { font-weight: normal; } 81 | .b { font-weight: bold; } 82 | .fw-light { font-weight: lighter; } 83 | .fw-bolder { font-weight: bolder; } 84 | .fw1 { font-weight: 100; } 85 | .fw2 { font-weight: 200; } 86 | .fw3 { font-weight: 300; } 87 | .fw4 { font-weight: 400; } 88 | .fw5 { font-weight: 500; } 89 | .fw6 { font-weight: 600; } 90 | .fw7 { font-weight: 700; } 91 | .fw8 { font-weight: 800; } 92 | .fw9 { font-weight: 900; } 93 | @media screen and (min-width: 48em) { 94 | .fwn-ns { font-weight: normal; } 95 | .b-ns { font-weight: bold; } 96 | .fw-light-ns { font-weight: lighter; } 97 | .fw-bolder-ns { font-weight: bolder; } 98 | .fw1-ns { font-weight: 100; } 99 | .fw2-ns { font-weight: 200; } 100 | .fw3-ns { font-weight: 300; } 101 | .fw4-ns { font-weight: 400; } 102 | .fw5-ns { font-weight: 500; } 103 | .fw6-ns { font-weight: 600; } 104 | .fw7-ns { font-weight: 700; } 105 | .fw8-ns { font-weight: 800; } 106 | .fw9-ns { font-weight: 900; } 107 | } 108 | @media screen and (min-width:48em) and (max-width: 64em) { 109 | .fwn-m { font-weight: normal; } 110 | .b-m { font-weight: bold; } 111 | .fw-light-m { font-weight: lighter; } 112 | .fw-bolder-m { font-weight: bolder; } 113 | .fw1-m { font-weight: 100; } 114 | .fw2-m { font-weight: 200; } 115 | .fw3-m { font-weight: 300; } 116 | .fw4-m { font-weight: 400; } 117 | .fw5-m { font-weight: 500; } 118 | .fw6-m { font-weight: 600; } 119 | .fw7-m { font-weight: 700; } 120 | .fw8-m { font-weight: 800; } 121 | .fw9-m { font-weight: 900; } 122 | } 123 | @media screen and (min-width: 64em) { 124 | .fwn-l { font-weight: normal; } 125 | .b-l { font-weight: bold; } 126 | .fw-light-l { font-weight: lighter; } 127 | .fw-bolder-l { font-weight: bolder; } 128 | .fw1-l { font-weight: 100; } 129 | .fw2-l { font-weight: 200; } 130 | .fw3-l { font-weight: 300; } 131 | .fw4-l { font-weight: 400; } 132 | .fw5-l { font-weight: 500; } 133 | .fw6-l { font-weight: 600; } 134 | .fw7-l { font-weight: 700; } 135 | .fw8-l { font-weight: 800; } 136 | .fw9-l { font-weight: 900; } 137 | } 138 | ``` 139 | 140 | ## Contributing 141 | 142 | 1. Fork it 143 | 2. Create your feature branch (`git checkout -b my-new-feature`) 144 | 3. Commit your changes (`git commit -am 'Add some feature'`) 145 | 4. Push to the branch (`git push origin my-new-feature`) 146 | 5. Create new Pull Request 147 | 148 | ## Authors 149 | 150 | * [mrmrs](http://mrmrs.io) 151 | * [johno](http://johnotander.com) 152 | 153 | ## License 154 | 155 | ISC 156 | 157 | --------------------------------------------------------------------------------