Skip to content

Commit

Permalink
Merge pull request #1 from hexadog/develop
Browse files Browse the repository at this point in the history
First Commit
  • Loading branch information
gaetan-hexadog authored Jun 19, 2023
2 parents 1b1deb6 + 3587057 commit 6a0b4b5
Show file tree
Hide file tree
Showing 3 changed files with 822 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
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>
```
38 changes: 38 additions & 0 deletions package.json
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"
}
}
Loading

0 comments on commit 6a0b4b5

Please sign in to comment.