-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
74 lines (72 loc) · 2.71 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/** @type {import('tailwindcss').Config} */
module.exports = {
plugins: [require("daisyui"), require("@tailwindcss/typography")],
daisyui: {
themes: false, // true: all themes | false: only light + dark | array: specific themes like this ["light", "dark", "cupcake"]
darkTheme: "dark", // name of one of the included themes for dark mode
base: false, // applies background color and foreground color for root element by default
styled: true, // include daisyUI colors and design decisions for all components
utils: true, // adds responsive and modifier utility classes
rtl: false, // rotate style direction from left-to-right to right-to-left. You also need to add dir="rtl" to your html tag and install `tailwindcss-flip` plugin for Tailwind CSS.
prefix: "", // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors)
logs: false, // Shows info about daisyUI version and used config in the console when building your CSS
},
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
primary: "#ff77c4",
"primary-light": "#eda8cf",
"primary-dark": "#de1888",
secondary: "#f0d1f0",
"secondary-light": "#fcebfc",
"secondary-dark": "#d494d4",
// 以下tertiary、quaternaryは現在使用していないためコメントアウト
// tertiary: "#fc90cd",
// "tertiary-light": "#fccfe9",
// "tertiary-dark": "#e03f9a",
// quaternary: "#d941a1",
// "quaternary-light": "#fcdcf0",
// "quaternary-dark": "#ffccdd",
},
fontFamily: {
"noto-serif": ["Noto Serif JP", "serif"],
},
keyframes: {
"xScroll-lg": {
"0%": { transform: "translateX(0)" },
// 都々逸のカードが800px * 5枚と、余白を含めた数値
"100%": { transform: "translateX(-4095px)" },
},
xScroll: {
"0%": { transform: "translateX(0)" },
// 都々逸のカードが600px * 5枚と、余白を含めた数値
"100%": { transform: "translateX(-3100px)" },
},
// loading時のスケルトンアニメーション
pulse: {
"0%, 100%": {
opacity: 1,
},
"50%": {
opacity: 0.5,
},
},
},
animation: {
"xScroll-lg": "xScroll-lg 60s linear infinite",
xScroll: "xScroll 60s linear infinite",
// loading
pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;",
},
transitionDelay: {
"0s": "0s",
"60s": "60s",
},
},
},
};