-
Notifications
You must be signed in to change notification settings - Fork 67
/
tailwind.config.js
60 lines (58 loc) · 1.54 KB
/
tailwind.config.js
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
const { light, dark } = require('@charcoal-ui/theme')
const { createTailwindConfig } = require('@charcoal-ui/tailwind-config')
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: ['./src/**/*.{js,ts,jsx,tsx}'],
// デフォルトのTailwindのclassが効かないのはコイツのせい
presets: [
createTailwindConfig({
version: 'v3',
theme: {
':root': light,
},
}),
],
theme: {
extend: {
colors: {
primary: '#856292',
'primary-hover': '#8E76A1',
'primary-press': '#988BB0',
'primary-disabled': '#6F48694D',
secondary: '#FF617F',
'secondary-hover': '#FF849B',
'secondary-press': '#FF9EB1',
'secondary-disabled': '#FF617F4D',
base: '#FBE2CA',
'text-primary': '#514062',
// トースト用のより鮮明な色定義
'toast-info': '#007BFF',
'toast-info-hover': '#0056B3',
'toast-error': '#DC3545',
'toast-error-hover': '#BD2130',
'toast-success': '#28A745',
'toast-success-hover': '#218838',
},
fontFamily: {
M_PLUS_2: ['Montserrat', 'M_PLUS_2', 'sans-serif'],
Montserrat: ['Montserrat', 'sans-serif'],
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
},
width: {
'1/2': '50%',
},
zIndex: {
5: '5',
15: '15',
},
},
},
plugins: [require('@tailwindcss/line-clamp')],
}