Skip to content

Commit dd71382

Browse files
author
iunteq
committed
First commit!
0 parents  commit dd71382

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/node_modules
2+
package-lock.json
3+
yarn.lock
4+
npm-debug.log
5+
yarn-error.log

index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const _ = require('lodash')
2+
3+
module.exports = function() {
4+
return function({ addUtilities, e, theme, variants }) {
5+
const utilities = _.fromPairs(
6+
_.map(theme('textShadow'), (value, modifier) => {
7+
const className = modifier === 'default' ? 'text-shadow' : `${e(`text-shadow-${modifier}`)}`
8+
return [
9+
`.${className}`,
10+
{
11+
'text-shadow': value,
12+
},
13+
]
14+
})
15+
)
16+
addUtilities(utilities, variants('textShadow'))
17+
}
18+
}

package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "tailwindcss-textshadow",
3+
"version": "1.0.0",
4+
"description": "A Utility Plugins for Text Shadow like Tailwindcss default boxshadow with theme and variants option.",
5+
"main": "index.js",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/iunteq/tailwindcss-textShadow.git"
9+
},
10+
"keywords": [
11+
"textshadow",
12+
"tailwind",
13+
"tailwindcss",
14+
"tailwindcss-plugin",
15+
"tailwind utility",
16+
"tailwind variants",
17+
"textshadow",
18+
"lodash",
19+
"css",
20+
"javascript"
21+
],
22+
"author": "Debangshu Roy",
23+
"license": "MIT",
24+
"copyright": "iunteq",
25+
"bugs": {
26+
"url": "https://github.com/iunteq/tailwindcss-textShadow/issues"
27+
},
28+
"homepage": "https://github.com/iunteq/tailwindcss-textShadow#readme",
29+
"dependencies": {
30+
"tailwindcss": "^1.1.4"
31+
}
32+
}

0 commit comments

Comments
 (0)