feat: add tailwind-scrollbar dependency

Added the 'tailwind-scrollbar' dependency to the project manifest files and imported it into the Tailwind CSS configuration. This allows us to leverage the scrollbar utility features provided by 'tailwind-scrollbar'. This change is reflected in the updated yarn.lock, package.json, and tailwind.config.js files.
This commit is contained in:
p-sw 2024-06-11 19:31:15 +09:00
parent 300c7fc8c3
commit 8e6e691308
3 changed files with 19 additions and 7 deletions

View File

@ -32,6 +32,7 @@
"eslint-config-prettier": "^9",
"oclif": "^4",
"shx": "^0.3.3",
"tailwind-scrollbar": "^3.1.0",
"ts-node": "^10",
"typescript": "^5"
},

View File

@ -1,14 +1,15 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./{components,stories,src}/**/*.{js,jsx,ts,tsx,css,mdx}"],
darkMode: ["variant", [
'@media (prefers-color-scheme: dark) { &:is(.system *) }',
'&:is(.dark *)'
]],
darkMode: [
"variant",
[
"@media (prefers-color-scheme: dark) { &:is(.system *) }",
"&:is(.dark *)",
],
],
theme: {
extend: {},
},
plugins: [
require('@tailwindcss/typography')
],
plugins: [require("@tailwindcss/typography"), require("tailwind-scrollbar")],
};

View File

@ -1849,6 +1849,7 @@ __metadata:
ora: "npm:^8.0.1"
react: "npm:^18.3.1"
shx: "npm:^0.3.3"
tailwind-scrollbar: "npm:^3.1.0"
treeify: "npm:^1.1.0"
ts-node: "npm:^10"
typescript: "npm:^5"
@ -10222,6 +10223,15 @@ __metadata:
languageName: node
linkType: hard
"tailwind-scrollbar@npm:^3.1.0":
version: 3.1.0
resolution: "tailwind-scrollbar@npm:3.1.0"
peerDependencies:
tailwindcss: 3.x
checksum: 10c0/dad4d5dcc37f09806cb1b5380d7908d113d139638ac606644ba0c689dffb2d72250f6997c0091c2ba596346390b31742859a20933c2d8543f8103e2ddfc3fb82
languageName: node
linkType: hard
"tailwindcss@npm:^3.4.3":
version: 3.4.4
resolution: "tailwindcss@npm:3.4.4"