-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from hexadog/develop
First Commit
- Loading branch information
Showing
3 changed files
with
822 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,46 @@ | ||
# tailwind-css-social-colors | ||
Social color palette for TailwindCSS | ||
|
||
Standard social color = Swatch 500 | ||
|
||
_Shades generated via https://www.tints.dev/_ | ||
|
||
## Installation | ||
Install the NPM package: | ||
|
||
```sh | ||
# Install using npm | ||
npm install --save-dev @hexadog/tailwind-social-colors | ||
|
||
# Install using yarn | ||
yarn add -D @hexadog/tailwind-social-colors | ||
|
||
# Install using pnpm | ||
pnpm install -D @hexadog/tailwind-social-colors | ||
``` | ||
|
||
## Usage | ||
Edit your Tailwind config to extend your theme colors. | ||
|
||
```js | ||
// tailwind.config.js | ||
const socialColors = require('@hexadog/tailwind-social-colors'); | ||
|
||
module.exports = { | ||
theme: { | ||
extend: { | ||
colors: { ...socialColors }, | ||
} | ||
} | ||
} | ||
``` | ||
|
||
Start using your social colors! | ||
```html | ||
<div class="justify-center items-center w-10 h-10 text-sm font-semibold leading-6 text-facebook-800 rounded-md bg-facebook-100 hover:bg-facebook-500 hover:text-white focus:bg-facebook-500 focus:text-white"> | ||
<svg style="stroke-width: 1.25;" class="flex-shrink-0 h-4 w-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> | ||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path> | ||
<path d="M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3"></path> | ||
</svg> | ||
</div> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "@hexadog/tailwind-social-colors", | ||
"version": "0.1.0", | ||
"license": "MIT", | ||
"author": { | ||
"name": "Gaetan B.", | ||
"email": "[email protected]", | ||
"url": "https://www.hexadog.com/" | ||
}, | ||
"filename": "tailwind-social-colors.js", | ||
"description": "Social color palette for TailwindCSS ", | ||
"keywords": [ | ||
"tailwind", | ||
"tailwindcss", | ||
"color", | ||
"colors", | ||
"palette", | ||
"social" | ||
], | ||
"files": [ | ||
"tailwind-social-colors.js" | ||
], | ||
"main": "tailwind-social-colors.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/hexadog/tailwind-social-colors.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/hexadog/tailwind-social-colors/issues" | ||
}, | ||
"homepage": "https://github.com/hexadog/tailwind-social-colors#readme", | ||
"scripts": { | ||
"upload": "npm publish --access public", | ||
"patch": "npm version patch", | ||
"minor": "npm version minor", | ||
"major": "npm version major" | ||
} | ||
} |
Oops, something went wrong.