Skip to content

Commit 530d60b

Browse files
🔥 Initial commit
0 parents  commit 530d60b

File tree

7 files changed

+1397
-0
lines changed

7 files changed

+1397
-0
lines changed

.gitignore

+133
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
.pnpm-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
.DS_Store
19+
20+
# Directory for instrumented libs generated by jscoverage/JSCover
21+
lib-cov
22+
23+
# Coverage directory used by tools like istanbul
24+
coverage
25+
*.lcov
26+
27+
# nyc test coverage
28+
.nyc_output
29+
30+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
31+
.grunt
32+
33+
# Bower dependency directory (https://bower.io/)
34+
bower_components
35+
36+
# node-waf configuration
37+
.lock-wscript
38+
39+
# Compiled binary addons (https://nodejs.org/api/addons.html)
40+
build/Release
41+
42+
# Dependency directories
43+
node_modules/
44+
jspm_packages/
45+
46+
# Snowpack dependency directory (https://snowpack.dev/)
47+
web_modules/
48+
49+
# TypeScript cache
50+
*.tsbuildinfo
51+
52+
# Optional npm cache directory
53+
.npm
54+
55+
# Optional eslint cache
56+
.eslintcache
57+
58+
# Optional stylelint cache
59+
.stylelintcache
60+
61+
# Microbundle cache
62+
.rpt2_cache/
63+
.rts2_cache_cjs/
64+
.rts2_cache_es/
65+
.rts2_cache_umd/
66+
67+
# Optional REPL history
68+
.node_repl_history
69+
70+
# Output of 'npm pack'
71+
*.tgz
72+
73+
# Yarn Integrity file
74+
.yarn-integrity
75+
76+
# dotenv environment variable files
77+
.env
78+
.env.development.local
79+
.env.test.local
80+
.env.production.local
81+
.env.local
82+
83+
# parcel-bundler cache (https://parceljs.org/)
84+
.cache
85+
.parcel-cache
86+
87+
# Next.js build output
88+
.next
89+
out
90+
91+
# Nuxt.js build / generate output
92+
.nuxt
93+
dist
94+
95+
# Gatsby files
96+
.cache/
97+
# Comment in the public line in if your project uses Gatsby and not Next.js
98+
# https://nextjs.org/blog/next-9-1#public-directory-support
99+
# public
100+
101+
# vuepress build output
102+
.vuepress/dist
103+
104+
# vuepress v2.x temp and cache directory
105+
.temp
106+
.cache
107+
108+
# Docusaurus cache and generated files
109+
.docusaurus
110+
111+
# Serverless directories
112+
.serverless/
113+
114+
# FuseBox cache
115+
.fusebox/
116+
117+
# DynamoDB Local files
118+
.dynamodb/
119+
120+
# TernJS port file
121+
.tern-port
122+
123+
# Stores VSCode versions used for testing VSCode extensions
124+
.vscode-test
125+
126+
# yarn v2
127+
.yarn/cache
128+
.yarn/unplugged
129+
.yarn/build-state.yml
130+
.yarn/install-state.gz
131+
.pnp.*
132+
133+
.vscode/

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Harsha Vardhan Sannareddy
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

assets/cover.png

19 KB
Loading

index.js

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
const plugin = require("tailwindcss/plugin");
2+
3+
const highTail = plugin(
4+
function ({ addUtilities, theme, e }) {
5+
const values = {...theme('height'), ...theme("customHeights")};
6+
7+
var utilities = Object.entries(values).map(([key, value]) => {
8+
return {
9+
[`.${e(`h-${key}`)}`]: { height: `${value}` },
10+
};
11+
});
12+
13+
addUtilities(utilities);
14+
},
15+
{
16+
theme: {
17+
customHeights: {
18+
'1/7': '14.28571%',
19+
'2/7': '28.57143%',
20+
'3/7': '42.85714%',
21+
'4/7': '57.14286%',
22+
'5/7': '71.42857%',
23+
'6/7': '85.71429%',
24+
'7/7': '100%',
25+
'1/8': '12.5%',
26+
'2/8': '25%',
27+
'3/8': '37.5%',
28+
'4/8': '50%',
29+
'5/8': '62.5%',
30+
'6/8': '75%',
31+
'7/8': '87.5%',
32+
'8/8': '100%',
33+
'1/9': '11.11111111%',
34+
'2/9': '22.22222222%',
35+
'3/9': '33.33333333%',
36+
'4/9': '44.44444444%',
37+
'5/9': '55.55555556%',
38+
'6/9': '66.66666667%',
39+
'7/9': '77.77777778%',
40+
'8/9': '88.88888889%',
41+
'9/9': '100%',
42+
'1/10': '10%',
43+
'2/10': '20%',
44+
'3/10': '30%',
45+
'4/10': '40%',
46+
'5/10': '50%',
47+
'6/10': '60%',
48+
'7/10': '70%',
49+
'8/10': '80%',
50+
'9/10': '90%',
51+
'10/10': '100%',
52+
'1/11': '9.09090909090909%',
53+
'2/11': '18.1818181818182%',
54+
'3/11': '27.2727272727273%',
55+
'4/11': '36.3636363636364%',
56+
'5/11': '45.4545454545455%',
57+
'6/11': '54.5454545454545%',
58+
'7/11': '63.6363636363636%',
59+
'8/11': '72.7272727272727%',
60+
'9/11': '81.8181818181818%',
61+
'10/11': '90.9090909090909%',
62+
'11/11': '100%',
63+
'1/12': '8.33333333333333%',
64+
'2/12': '16.6666666666667%',
65+
'3/12': '25%',
66+
'4/12': '33.33333333%',
67+
'5/12': '41.6666666666667%',
68+
'6/12': '50%',
69+
'7/12': '58.3333333333333%',
70+
'8/12': '66.6666666666667%',
71+
'9/12': '75%',
72+
'10/12': '83.3333333333333%',
73+
'11/12': '91.6666666666667%',
74+
'12/12': '100%',
75+
'1/13': '7.69230769230769%',
76+
'2/13': '15.3846153846154%',
77+
'3/13': '23.0769230769231%',
78+
'4/13': '30.7692307692308%',
79+
'5/13': '38.4615384615385%',
80+
'6/13': '46.1538461538462%',
81+
'7/13': '53.8461538461538%',
82+
'8/13': '61.5384615384615%',
83+
'9/13': '69.2307692307692%',
84+
'10/13': '76.9230769230769%',
85+
'11/13': '84.6153846153846%',
86+
'12/13': '92.3076923076923%',
87+
'13/13': '100%',
88+
'1/14': '7.14285714285714%',
89+
'2/14': '14.2857142857143%',
90+
'3/14': '21.4285714285714%',
91+
'4/14': '28.5714285714286%',
92+
'5/14': '35.7142857142857%',
93+
'6/14': '42.8571428571429%',
94+
'7/14': '50%',
95+
'8/14': '57.1428571428571%',
96+
'9/14': '64.2857142857143%',
97+
'10/14': '71.4285714285714%',
98+
'11/14': '78.5714285714286%',
99+
'12/14': '85.7142857142857%',
100+
'13/14': '92.8571428571429%',
101+
'14/14': '100%',
102+
}
103+
},
104+
}
105+
);
106+
107+
module.exports = highTail;

0 commit comments

Comments
 (0)