real-world-css-libraries 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,13 @@
1
1
  # real-world-css-libraries
2
2
 
3
- Repository of unminified, real-world, CSS files from open source projects.
3
+ Corpus of unminified, real-world, CSS files from open source projects.
4
4
 
5
5
  For use in minification tests and tooling benchmarks.
6
6
 
7
+ To see how various CSS Minification Tools perform when minifying these files:
8
+
9
+ * https://www.keithcirkel.co.uk/css-minify-tests/#real-world
10
+
7
11
 
8
12
  ## Usage
9
13
 
@@ -25,18 +29,22 @@ console.log(libraries);
25
29
  /*
26
30
  * [
27
31
  * {
32
+ * fileName: '960.gs-v0.0.0.css',
28
33
  * name: '960.gs',
29
- * version: 'v1.0.0',
34
+ * version: 'v0.0.0',
30
35
  * license: 'GPL-3.0 or MIT',
31
36
  * source: '/*\n 960 Grid System ~ Core CSS.\n Learn more ~ http://9...',
32
- * size: 9989
37
+ * size: 9989,
38
+ * url: 'https://github.com/nathansmith/960-Grid-System/blob/master/code/css/960.css'
33
39
  * },
34
40
  * {
41
+ * fileName: 'animate-v4.1.1.css',
35
42
  * name: 'Animate',
36
43
  * version: 'v4.1.1',
37
44
  * license: 'Hippocratic-2.1',
38
45
  * source: '@charset "UTF-8";\n/*!\n * animate.css - https://animate.s...',
39
- * size: 95377
46
+ * size: 95377,
47
+ * url: 'https://github.com/animate-css/animate.css/blob/main/animate.css'
40
48
  * },
41
49
  * ...
42
50
  * ]
@@ -54,6 +62,23 @@ console.log(namesOfLibrariesCompatibleWithMITLicense);
54
62
  // ['960.gs', '98', 'AdminLTE', ...]
55
63
  ```
56
64
 
65
+ **Note:** The `size` is from the original file size on disk. This will be different from `source.length`. If you are comparing the output of a minifier, for example, by using `output.length` of it as a string, then to get a more accurate comparison for percentage of size reduction, you should use `output.length / source.length` instead of `output.length / size`. Counting the number of characters is different than the actual filesize, because not all characters are 1 byte.
66
+
67
+
68
+ ## Non-npm usage
69
+
70
+ If you are using a different programming language/package management system and can't `npm i` this library, you have some other options:
71
+
72
+ 1. Download via `git`
73
+ * `git clone https://github.com/TheJaredWilcurt/real-world-css-libraries.git`
74
+ * `git clone git@github.com:TheJaredWilcurt/real-world-css-libraries.git`
75
+ 1. HTTPS download via UNPKG:
76
+ * https://app.unpkg.com/real-world-css-libraries
77
+ 1. Manually download repo as a ZIP file:
78
+ * https://github.com/TheJaredWilcurt/real-world-css-libraries/archive/refs/heads/main.zip
79
+
80
+ Then you can loop over the files in the `libs` folder yourself for your usage.
81
+
57
82
 
58
83
  ## Adding a library
59
84
 
@@ -69,6 +94,11 @@ console.log(namesOfLibrariesCompatibleWithMITLicense);
69
94
  * If the new library's name needs correcting (like `Mycssrepo` should be `My CSS Repo`), update `nameMap` in `index.js` and run `npm t` again.
70
95
 
71
96
 
97
+ ## License
98
+
99
+ This repo and all original work within is licensed under MIT. However, the files in the `libs` folder have their own licenses, which can be seen below. I've modified each file to include a single line comment at the top with a link to the original source file, and where needed, ensured there is a single empty return at the end of each file. For simplicity, each of these changes is re-licensed using the exact same original license that was associated with that library. So the (slightly) modified copy of FF-Ultima in `/libs/ff-ultima-v4.3.0.css`, for example, retains it's original `MPL-2.0` license. Effectively all the files in the `/lib` folder have a "pass-through" license back to their original in the sense that my modifications are intentionally minor and inconsequential and therefor should not require a re-licensing of them, but if in a legal sense these minor changes require re-licensing, they are intentionally re-licensed with a matching license of the original. No other changes were made to these files, as I want to keep them representative to what exists in the real world, bugs and all.
100
+
101
+
72
102
  ## Skipped Libraries
73
103
 
74
104
  These libraries were explicitly not included because they lack a compatible license. Issues have been created for them to add a license, if they do in the future, they can be included in this repo.
@@ -82,7 +112,7 @@ These libraries were explicitly not included because they lack a compatible lice
82
112
 
83
113
  ## Libraries included:
84
114
 
85
- There are **150** files totaling **33.31MB** of unminified CSS.
115
+ There are **166** files totaling **33.75MB** of unminified CSS.
86
116
 
87
117
  Library | License
88
118
  :-- | :--
@@ -101,8 +131,8 @@ Library | License
101
131
  [Blue-Topaz Obsidian](https://raw.githubusercontent.com/PKM-er/Blue-Topaz_Obsidian-css/refs/heads/master/obsidian.css) | MIT
102
132
  [Boilerform](https://github.com/Andy-set-studio/boilerform/blob/master/dist/css/boilerform.css) | MIT
103
133
  [Bojler](https://unpkg.com/@slicejack/bojler@3.2.1/dist/inline.css) | MIT
104
- [Bootstrap](https://github.com/twbs/bootstrap/releases/tag/v4.6.2) | MIT
105
- [Bootstrap](https://github.com/twbs/bootstrap/releases/tag/v5.3.8) | MIT
134
+ [Bootstrap 4](https://github.com/twbs/bootstrap/releases/tag/v4.6.2) | MIT
135
+ [Bootstrap 5](https://github.com/twbs/bootstrap/releases/tag/v5.3.8) | MIT
106
136
  [Bttn](https://github.com/ganapativs/bttn.css/blob/master/dist/bttn.css) | MIT
107
137
  [Bulma](https://github.com/jgthms/bulma/blob/main/css/bulma.css) | MIT
108
138
  [Carbon](https://unpkg.com/@carbon/styles@1.107.0/css/styles.css) | Apache-2.0
@@ -110,13 +140,15 @@ Library | License
110
140
  [Chota](https://github.com/jenil/chota/blob/main/dist/chota.css) | MIT
111
141
  [Cirrus](https://github.com/Spiderpig86/Cirrus/blob/master/dist/cirrus.css) | MIT
112
142
  [Classless](https://github.com/DigitallyTailored/Classless.css/blob/main/classless.css) | MIT
143
+ [CleanSlate](https://github.com/premasagar/cleanslate/blob/master/cleanslate.css) | MIT
113
144
  [CodeFrame](https://github.com/codyhouse/codyframe/blob/main/main/css/style.css) | MIT
145
+ [Colofilter](https://github.com/LukyVj/colofilter.css/blob/master/styles/colofilter.css) | MIT
114
146
  [Concise](https://unpkg.com/concise.css@4.1.2/dist/concise.css) | MIT
115
147
  [CrookedStyleSheets](https://github.com/jbtronics/CrookedStyleSheets/blob/master/screen.css) | MIT
116
148
  [cs16.css](https://github.com/ekmas/cs16.css/blob/main/css/cs16.css) | MIT
117
149
  [CSS Diner](https://github.com/flukeout/css-diner/blob/develop/css/style.css) | MPL-2.0
118
150
  [CSS Plot](https://github.com/asciimoo/cssplot/blob/master/build/cssplot.full.css) | MIT
119
- [Css Social Buttons](https://github.com/smcllns/css-social-buttons/blob/master/css/zocial.css) | MIT
151
+ [CSS Social Buttons](https://github.com/smcllns/css-social-buttons/blob/master/css/zocial.css) | MIT
120
152
  [CSS Spinners](https://github.com/jlong/css-spinners/blob/master/css/spinners.css) | MIT
121
153
  [CSS Zen Garden #215](https://github.com/mezzoblue/csszengarden.com/blob/master/215/215.css) | CC-BY-NC-SA-1.0
122
154
  [css-extras](https://github.com/sindresorhus/css-extras/blob/main/index.css) | CC0-1.0 or MIT
@@ -132,6 +164,7 @@ Library | License
132
164
  [ElegantFin](https://github.com/lscambo13/ElegantFin/blob/main/Theme/ElegantFin-theme-v25.12.31.css) | MIT
133
165
  [Evil](https://github.com/tlrobinson/evil.css/blob/master/evil.css) | Public Domain
134
166
  [FF-Ultima](https://github.com/soulhotel/FF-ULTIMA/blob/main/theme/ffu-internal-appearance.css) | MPL-2.0
167
+ [Fileicon](https://github.com/picturepan2/fileicon.css/blob/master/fileicon.css) | MIT
135
168
  [Flakes](https://github.com/kumailht/flakes/blob/master/css/all.css) | MIT
136
169
  [Flex Layout Attribute](https://github.com/StefanKovac/flex-layout-attribute/blob/master/css/flex-layout-attribute.css) | MIT
137
170
  [Fomantic UI](https://github.com/fomantic/Fomantic-UI/blob/develop/dist/semantic.css) | MIT
@@ -143,22 +176,26 @@ Library | License
143
176
  [GitHub-Markdown](https://github.com/sindresorhus/github-markdown-css/blob/main/github-markdown.css) | MIT
144
177
  [GitHub-Windows](https://github.com/Athari/CssGitHubWindows/blob/master/GitHubWindows.user.css) | MIT
145
178
  [google-type](https://github.com/femmebot/google-type/blob/master/css/google-type.css) | MIT
179
+ [Gridism](https://github.com/cobyism/gridism/blob/master/gridism.css) | MIT
146
180
  [Gridlex](https://github.com/devlint/gridlex/blob/master/dist/gridlex.css) | MIT
147
181
  [Gumby](https://github.com/GumbyFramework/Gumby/blob/master/css/gumby.css) | MIT
148
182
  [Gutenberg](https://github.com/BafS/Gutenberg/blob/master/dist/gutenberg.css) | MIT
149
183
  [Halfmoon](https://github.com/halfmoonui/halfmoon/blob/master/css/halfmoon.css) | MIT
150
184
  [HalfStyle](https://github.com/arbelh/HalfStyle/blob/master/css/halfstyle.css) | MIT
151
185
  [Hint](https://github.com/chinchang/hint.css/blob/master/hint.css) | MIT
186
+ [Holmes](https://github.com/redroot/holmes/blob/master/holmes.css) | GPL-3.0
152
187
  [HTML Sheets of Paper](https://github.com/delight-im/HTML-Sheets-of-Paper/blob/gh-pages/css/sheets-of-paper.css) | MIT
153
188
  [Hugo Universal Theme](https://github.com/devcows/hugo-universal-theme/blob/master/static/css/style.default.css) | MIT
154
189
  [Icon Hover Effects](https://github.com/codrops/IconHoverEffects/blob/master/css/component.css) | MIT
155
190
  [Instagram.css](https://github.com/picturepan2/instagram.css/blob/master/dist/instagram.css) | MIT
156
191
  [Jupyter Themes](https://github.com/dunovank/jupyter-themes/blob/master/jupyterthemes/styles/compiled/gruvboxd.css) | MIT
192
+ [Less Framework](https://github.com/jonikorpi/Less-Framework/blob/master/main-17px.css) | MIT
157
193
  [Load Awesome](https://labs.danielcardoso.net/load-awesome/assets/loaders.css) | MIT
158
194
  [Loaders](https://github.com/ConnorAtherton/loaders.css/blob/master/loaders.css) | MIT
159
195
  [Luxbar](https://github.com/balzss/luxbar/blob/master/build/luxbar.css) | MIT
160
196
  [markdown-css](https://github.com/mrcoles/markdown-css/blob/master/markdown.css) | MIT
161
197
  [Material for Bootstrap](https://github.com/Daemonite/material/blob/master/css/material.css) | MIT
198
+ [medium.css](https://github.com/lucagez/medium.css/blob/master/demo/src/medium_extended.css) | MIT
162
199
  [Meyer](https://meyerweb.com/eric/tools/css/reset/reset.css) | Public Domain
163
200
  [Microsoft Metro Buttons](https://github.com/ace-subido/css3-microsoft-metro-buttons#license) | CC-BY-3.0
164
201
  [Microtip](https://github.com/ghosh/microtip/blob/master/microtip.css) | MIT
@@ -175,6 +212,7 @@ Library | License
175
212
  [object-fit Polyfill](https://github.com/anselmh/object-fit/blob/master/dist/polyfill.object-fit.css) | MIT
176
213
  [Obsidian Colored Sidebar](https://github.com/CyanVoxel/Obsidian-Colored-Sidebar/blob/main/Colored%20Sidebar%20Items.css) | MIT
177
214
  [Obsidian Modular CSS Layout](https://github.com/efemkay/obsidian-modular-css-layout/blob/main/MCL%20Multi%20Column.css) | GPL-3.0
215
+ [OffCanvasMenuEffects](https://github.com/codrops/OffCanvasMenuEffects/blob/master/css/menu_cornermorph.css) | MIT
178
216
  [Orbit](https://unpkg.com/@zumer/orbit@1.4.11/dist/orbit.css) | MIT
179
217
  [Paper](https://github.com/cognitom/paper-css/blob/master/paper.css) | MIT
180
218
  [PatternFly](https://unpkg.com/@patternfly/patternfly@6.5.2/patternfly.css) | MIT
@@ -199,6 +237,7 @@ Library | License
199
237
  [Ripple UI](https://unpkg.com/rippleui@1.12.1/dist/css/styles.css) | MIT
200
238
  [Sakura](https://github.com/oxalorg/sakura/blob/master/css/sakura.css) | MIT
201
239
  [Sanitize](https://github.com/csstools/sanitize.css/blob/main/sanitize.css) | CC0-1.0
240
+ [Select2 Bootstrap](https://github.com/t0m/select2-bootstrap-css/blob/master/select2-bootstrap.css) | MIT
202
241
  [Select](https://github.com/filamentgroup/select-css/blob/master/src/select-css.css) | MIT
203
242
  [Semantic UI](https://github.com/Semantic-Org/Semantic-UI/blob/master/dist/semantic.css) | MIT
204
243
  [Shards](https://github.com/DesignRevision/shards-ui/blob/master/dist/css/shards.css) | MIT
@@ -206,14 +245,19 @@ Library | License
206
245
  [Simple Grid](https://github.com/zachacole/Simple-Grid/blob/master/simple-grid.css) | MIT
207
246
  [Simple Line Icons](https://github.com/thesabbir/simple-line-icons/blob/master/dist/styles/simple-line-icons.css) | MIT
208
247
  [Simple](https://codeberg.org/kevquirk/simple.css/src/branch/main/simple.css) | MIT
248
+ [SimpTip](https://github.com/arashmanteghi/simptip/blob/master/simptip.css) | MIT
209
249
  [Skeleton](https://github.com/dhg/Skeleton/blob/master/css/skeleton.css) | MIT
210
250
  [SPCSS](https://github.com/susam/spcss/blob/main/sp.css) | MIT
211
251
  [Spectre](https://github.com/picturepan2/spectre/blob/master/dist/spectre.css) | MIT
252
+ [Spicetify Bloom](https://github.com/nimsandu/spicetify-bloom/blob/main/src/user.css) | MIT
212
253
  [Spicetify Dribbblish](https://github.com/spicetify/spicetify-themes/blob/master/Dribbblish/user.css) | MIT
213
254
  [Spicetify Text](https://github.com/spicetify/spicetify-themes/blob/master/text/user.css) | MIT
214
255
  [Spinkit](https://github.com/tobiasahlin/SpinKit/blob/master/spinkit.css) | MIT
215
256
  [Stackicons](https://github.com/parkerbennett/stackicons/blob/master/css/stackicons-social.css) | MIT
257
+ [StackOverflow-Dark](https://github.com/StylishThemes/StackOverflow-Dark/blob/v5.1.2/stackoverflow-dark.user.css) | CC-BY-SA-4.0
216
258
  [Stacks](https://unpkg.com/@stackoverflow/stacks@2.8.6/dist/css/stacks.css) | MIT
259
+ [Swagger UI Themes 2](https://github.com/ostranme/swagger-ui-themes/blob/develop/themes/2.x/theme-monokai.css) | MIT
260
+ [Swagger UI Themes 3](https://github.com/ostranme/swagger-ui-themes/blob/develop/themes/3.x/theme-monokai.css) | MIT
217
261
  [System](https://github.com/sakofchit/system.css/blob/main/style.css) | MIT
218
262
  [Tablecloth](https://github.com/bwsewell/tablecloth/blob/master/assets/css/tablecloth.css) | MIT
219
263
  [Tachyons](https://github.com/tachyons-css/tachyons/blob/main/css/tachyons.css) | MIT
@@ -233,6 +277,8 @@ Library | License
233
277
  [Water](https://cdn.jsdelivr.net/npm/water.css@2.1.1/out/water.css) | MIT
234
278
  [Weather Icons](https://github.com/erikflowers/weather-icons/tree/master/css) | MIT
235
279
  [Webgradients](https://github.com/itmeo/webgradients/blob/master/webgradients.css) | MIT
280
+ [Wenk](https://github.com/tiaanduplessis/wenk/blob/master/dist/wenk.cssnext.css) | MIT
236
281
  [Windows 98](https://github.com/yocontra/windows_98.css/blob/master/dist/win98.css) | MIT
237
282
  [Wing](https://github.com/kbrsh/wing/blob/master/dist/wing.css) | MIT
238
283
  [WTF Forms](https://github.com/mdo/wtf-forms/blob/master/wtf-forms.css) | MIT
284
+ [Zotero Dark Theme](https://github.com/Rosmaninho/Zotero-Dark-Theme/blob/main/userChrome.css) | GPL-3.0
package/index.js CHANGED
@@ -12,12 +12,14 @@ const nameMap = {
12
12
  'admin-lte': 'AdminLTE',
13
13
  beercss: 'Beer CSS',
14
14
  'blue-topaz-obsidian': 'Blue-Topaz Obsidian',
15
+ cleanslate: 'CleanSlate',
15
16
  codyframe: 'CodeFrame',
16
17
  crookedstylesheets: 'CrookedStyleSheets',
17
18
  'cs16': 'cs16.css',
18
19
  'css3-buttons': 'CSS3 Buttons',
19
20
  'css-diner': 'CSS Diner',
20
21
  'css-extras': 'css-extras',
22
+ 'css-social-buttons': 'CSS Social Buttons',
21
23
  'css-spinners': 'CSS Spinners',
22
24
  cssco: 'CSSCO',
23
25
  cssicon: 'cssicon',
@@ -35,6 +37,7 @@ const nameMap = {
35
37
  instagram: 'Instagram.css',
36
38
  'material-for-bootstrap': 'Material for Bootstrap',
37
39
  'markdown-css': 'markdown-css',
40
+ 'medium.css': 'medium.css',
38
41
  'microsoft-metro-buttons': 'Microsoft Metro Buttons',
39
42
  minireset: 'Mini Reset',
40
43
  'modern-css-resets': 'Modern CSS Resets',
@@ -42,10 +45,15 @@ const nameMap = {
42
45
  nes: 'NES.css',
43
46
  'object-fit-polyfill': 'object-fit Polyfill',
44
47
  'obsidian-modular-css-layout': 'Obsidian Modular CSS Layout',
48
+ 'off-canvas-menu-effects': 'OffCanvasMenuEffects',
45
49
  patternfly: 'PatternFly',
46
50
  rippleui: 'Ripple UI',
47
51
  semantic: 'Semantic UI',
52
+ simptip: 'SimpTip',
48
53
  spcss: 'SPCSS',
54
+ 'stackoverflow-dark': 'StackOverflow-Dark',
55
+ 'swagger-ui-themes-2': 'Swagger UI Themes 2',
56
+ 'swagger-ui-themes-3': 'Swagger UI Themes 3',
49
57
  'the-new-css-reset': 'The New CSS Reset',
50
58
  'tw-animate-css': 'tw-animate-css',
51
59
  uikit: 'UIkit',
@@ -68,7 +76,9 @@ const nameLicenseMap = {
68
76
  cutestrap2: 'GPL-3.0',
69
77
  evil: 'Public Domain',
70
78
  'ff-ultima': 'MPL-2.0',
79
+ 'stackoverflow-dark': 'CC-BY-SA-4.0',
71
80
  'github-dark': 'BSD-2-Clause',
81
+ holmes: 'GPL-3.0',
72
82
  meyer: 'Public Domain',
73
83
  'microsoft-metro-buttons': 'CC-BY-3.0',
74
84
  missing: 'BSD-2-Clause',
@@ -141,6 +151,7 @@ export default function (includeUrl) {
141
151
  const filePath = join(libsPath, fileName);
142
152
  const sourceWithUrl = getSource(filePath);
143
153
  const library = {
154
+ fileName,
144
155
  name: getFullName(fileName),
145
156
  version: getVersion(fileName),
146
157
  license: getLicences(fileName),