Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hasinhayder/tailwind-cards
A growing collection of text/image cards you can use/copy-paste in your tailwind css projects
https://github.com/hasinhayder/tailwind-cards
learning-by-doing tailwind-css tailwindcss
Last synced: about 1 month ago
JSON representation
A growing collection of text/image cards you can use/copy-paste in your tailwind css projects
- Host: GitHub
- URL: https://github.com/hasinhayder/tailwind-cards
- Owner: hasinhayder
- License: mit
- Created: 2021-03-11T19:30:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-09T13:56:52.000Z (5 months ago)
- Last Synced: 2024-09-30T18:40:46.866Z (about 1 month ago)
- Topics: learning-by-doing, tailwind-css, tailwindcss
- Language: CSS
- Homepage: https://tailwind-cards.netlify.app
- Size: 448 KB
- Stars: 584
- Watchers: 10
- Forks: 77
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tailwindcss - Tailwind Cards - Growing collection of text/image cards. (UI Libraries, Components & Templates)
README
# Tailwind Cards
[![Netlify Status](https://api.netlify.com/api/v1/badges/d9d621c2-bace-4ca0-95e0-3ad4f38318cf/deploy-status)](https://app.netlify.com/sites/tailwind-cards/deploys)
I used the [TailWind CSS Boilerplate](https://github.com/hasinhayder/tailwind-boilerplate) project for this.
A growing collection of text/image cards you can use/copy-paste in your tailwind css projects. Some of these cards have animated hover effects.
Check The Demo Here - https://tailwind-cards.netlify.app
### start
```sh
git clone this_repository
cd this_directory
yarn
yarn dev
```### build
```sh
yarn build
```then grab everything from the dist folder
### change server port
Just change the port number in `vite.config.js` file
```javascript
export default {
plugins: [],
server: {
open: '/index.html',
port: 3116, //< -change this
}
}```
### configure tailwind
There is a `tailwind.config.js` file with `purge` instructions and extra colors, feel free to customize it according to your need
```javascript
const colors = require('tailwindcss/colors')
module.exports = {
purge:['./*.html'],
darkMode: false, // or 'media' or 'class'
theme: {
fontFamily: {
display: ['Inter', 'system-ui', 'sans-serif'],
body: ['Inter', 'system-ui', 'sans-serif'],
},
extend: {
colors:{
fuchsia:colors.fuchsia,
cyan:colors.cyan,
emerald:colors.emerald,
teal:colors.teal,
orange:colors.orange,
yellow:colors.yellow,
},
maxHeight:{
116:"29rem", /*464px*/
125:"31.25rem", /*500px*/
140:"35rem", /*560px*/
150:"37.5rem", /*600px*/
190:"47.5rem", /*760px*/
},
height:{
116:"29rem", /*464px*/
125:"31.25rem", /*500px*/
140:"35rem", /*560px*/
150:"37.5rem", /*600px*/
},
minHeight:{
18:"4.5rem", /*72*/
62:"15.5rem", /*248px*/
150:"37.5rem", /*600px*/
},
},
},
variants: {
extend: {
display: ["group-hover"],
opacity: ["group-hover"],
translate: ["group-hover"],
transform: ["group-hover"],
width: ["group-hover", "hover"],
height: ["group-hover", "hover"],
padding: ["group-hover", "hover"],
animation: ["group-hover", "hover"],
scale: ["group-hover", "hover"],
},
},
plugins: [],
}```