-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
62 lines (59 loc) · 1.59 KB
/
tailwind.config.ts
File metadata and controls
62 lines (59 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import type { Config } from 'tailwindcss';
const config: Config = {
content: [
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./src/client/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
// サイバーパンクテーマカラー
neon: {
green: '#00ff41',
pink: '#ff006e',
cyan: '#00f5ff',
purple: '#b400ff',
},
},
animation: {
'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
'glow': 'glow 2s ease-in-out infinite alternate',
},
keyframes: {
glow: {
'0%': { boxShadow: '0 0 5px #00ff41, 0 0 10px #00ff41' },
'100%': { boxShadow: '0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41' },
},
},
},
},
plugins: [
// カスタムスクロールバー用プラグイン
function ({ addUtilities }: any) {
const newUtilities = {
'.scrollbar-thin': {
'scrollbar-width': 'thin',
},
'.scrollbar-thumb-green-500\\/30': {
'&::-webkit-scrollbar': {
width: '6px',
},
'&::-webkit-scrollbar-thumb': {
backgroundColor: 'rgba(34, 197, 94, 0.3)',
borderRadius: '3px',
},
'&::-webkit-scrollbar-thumb:hover': {
backgroundColor: 'rgba(34, 197, 94, 0.5)',
},
},
'.scrollbar-track-slate-800': {
'&::-webkit-scrollbar-track': {
backgroundColor: '#1e293b',
},
},
};
addUtilities(newUtilities);
},
],
};
export default config;