Skip to content

Commit

Permalink
Merge pull request #13 from Indie-Creator-Community/feat/tailwind-ani…
Browse files Browse the repository at this point in the history
…mations-and-fluid-typography

Feature: tailwind animations and fluid typography
  • Loading branch information
serudda authored Sep 21, 2024
2 parents 40d9452 + d68dee8 commit 5a0525d
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 21 deletions.
2 changes: 1 addition & 1 deletion apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dotenv-cli": "^7.2.1",
"eslint": "^8.38.0",
"postcss": "^8.4.22",
"tailwindcss": "^3.3.1",
"tailwindcss": "^3.4.10",
"typescript": "^5.0.4"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"prettier-plugin-prisma": "^4.10.0",
"prettier-plugin-tailwindcss": "^0.6.6",
"side-ui": "^0.15.1",
"tailwindcss-animated": "^1.1.2",
"tailwindcss-scrollbar": "^0.1.0",
"turbo": "^2.1.2",
"typescript": "^5.0.4"
Expand Down
37 changes: 24 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 37 additions & 7 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,42 @@
/**
* @type {import('tailwindcss').Config}
*/

/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.tsx', '../../node_modules/side-ui/**/*.{js,jsx,ts,tsx}'],
presets: [require('./node_modules/side-ui/dist/tailwind.config')],
theme: {
extend: {},
extend: {
animationDelay: {
400: '400ms',
600: '600ms',
800: '800ms',
'3s': '3s',
'5s': '5s',
'10s': '10s',
'15s': '15s',
'20s': '20s',
},
animationDuration: {
400: '400ms',
600: '600ms',
800: '800ms',
'3s': '3s',
'5s': '5s',
'10s': '10s',
'15s': '15s',
'20s': '20s',
},
fontSize: {
'fluid-base': 'clamp(0.75rem, 2vw, 1rem)',
'fluid-lg': 'clamp(1rem, 4vw, 1.5rem)',
'fluid-xl': 'clamp(1.5rem, 6vw, 2.5rem)',
'fluid-2xl': 'clamp(2rem, 9vw, 3.5rem)',
},
screens: {
'3xs': '240px',
'2xs': '360px',
xs: '480px',
},
},
},
presets: [require('./node_modules/side-ui/dist/tailwind.config')],
plugins: [require('tailwindcss-scrollbar')],

plugins: [require('tailwindcss-scrollbar'), require('tailwindcss-animated')],
};

0 comments on commit 5a0525d

Please sign in to comment.