-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
109 lines (107 loc) · 2.97 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
const colors = require('tailwindcss/colors');
const linkHeadingStyles = {
color: colors.gray[100],
borderBottomColor: 'transparent',
'&:hover': {
color: `${colors.gray[900]}`,
},
};
module.exports = {
theme: {
extend: {
typography: {
DEFAULT: {
css: {
pre: {
background: 'rgba(205, 200, 255, 0.05)',
},
'h2 a': linkHeadingStyles,
'h3 a': linkHeadingStyles,
'h4 a': linkHeadingStyles,
'h5 a': linkHeadingStyles,
'h6 a': linkHeadingStyles,
blockquote: {
fontSize: '90%',
color: colors.zinc[500],
borderLeftColor: colors.zinc[700],
'p::before': { display: 'none' },
'p::after': { display: 'none' },
},
a: {
textDecoration: 'none',
borderBottom: `2px solid hsl(var(--p))`,
color: `hsl(var(--p))`,
transition:
'color 0.2s ease, border-color 0.2s ease, background 0.2s ease',
'&:hover': {
color: `hsl(var(--pc)) !important`,
borderBottomColor: ` hsl(var(--p)) !important`,
background: `hsl(var(--p))`,
},
},
code: {
color: '#86e1fc',
'&::before': { content: `unset !important` },
'&::after': { content: `unset !important` },
fontWeight: 'normal',
},
'[data-rehype-pretty-code-fragment]:nth-of-type(2) pre': {
'[data-line]::before': {
content: 'counter(line)',
counterIncrement: 'line',
display: 'inline-block',
width: '1rem',
marginRight: '1rem',
textAlign: 'right',
color: colors.slate[600],
},
'[data-highlighted-line]::before': {
color: colors.slate[400],
},
},
},
},
},
},
},
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./posts/**/*.mdx",
],
plugins: [
require("@tailwindcss/typography"),
require("daisyui"),
require("@tailwindcss/line-clamp"),
],
daisyui: {
darkTheme: "dark",
base: false,
themes: [
{
sivert_light: {
primary: "#570df8",
secondary: "#f000b8",
accent: "#1dcdbc",
neutral: "#2b3440",
"base-100": "#ffffff",
info: "#3abff8",
success: "#36d399",
warning: "#fbbd23",
error: "#f87272",
},
sivert_dark: {
primary: "#d0bcff",
secondary: "#ccc2dc",
accent: "#efb8c8",
neutral: "#2b3440",
"base-100": "#2b2930",
info: "#3abff8",
success: "#36d399",
warning: "#fbbd23",
error: "#f2b8b5",
},
},
],
},
};