-
Notifications
You must be signed in to change notification settings - Fork 25
/
tailwind.config.ts
81 lines (79 loc) · 3.13 KB
/
tailwind.config.ts
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
import typography from '@tailwindcss/typography'
import plugin from 'tailwindcss/plugin'
import tailwindAnimate from 'tailwindcss-animate'
import reactAriaComponent from 'tailwindcss-react-aria-components'
import type { Config } from 'tailwindcss'
const config: Config = {
content: [
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/markdown/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/markdown/twoslash/**/*.{ts,tsx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
darkMode: 'class',
plugins: [
typography,
reactAriaComponent,
tailwindAnimate,
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{
'animation-delay': value => {
return {
'animation-delay': value,
}
},
},
{
values: theme('transitionDelay'),
},
)
}),
],
theme: {
extend: {
backgroundImage: ({ theme }) => ({
paper: `linear-gradient(90deg, transparent 0%, transparent 5%, ${theme('colors.orange.600')} 5%, ${theme('colors.orange.600')} calc(5% + 2px), transparent calc(5% + 2px), transparent 100%), linear-gradient(180deg, white 56px, transparent 56px), repeating-linear-gradient(180deg, ${theme('colors.sky.500')} 0px, ${theme('colors.sky.500')} 2px, transparent 2px, transparent 32px), linear-gradient(white,white);`,
'paper-dark': `linear-gradient(90deg, transparent 0%, transparent 5%, ${theme('colors.zinc.500')} 5%, ${theme('colors.zinc.500')} calc(5% + 2px), transparent calc(5% + 2px), transparent 100%), linear-gradient(180deg, ${theme('colors.gray.900')} 56px, transparent 56px), repeating-linear-gradient(180deg, ${theme('colors.zinc.700')} 0px, ${theme('colors.zinc.700')} 2px, transparent 2px, transparent 32px), linear-gradient(${theme('colors.gray.900')},${theme('colors.gray.900')});`,
}),
borderColor: {
DEFAULT: 'rgb(var(--border) / <alpha-value>)',
},
boxShadow: {
bento: '0 2px 4px rgba(0,0,0,.04)',
},
colors: {
border: 'rgb(var(--border) / <alpha-value>)',
brand: 'rgb(var(--brand) / <alpha-value>)',
'color-1': 'rgb(var(--text-1) / <alpha-value>)',
'color-2': 'rgb(var(--text-2) / <alpha-value>)',
'color-3': 'rgb(var(--text-3) / <alpha-value>)',
'color-4': 'rgb(var(--text-4) / <alpha-value>)',
surface: 'rgb(var(--surface) / <alpha-value>)',
'surface-1': 'rgb(var(--surface-1) / <alpha-value>)',
'surface-2': 'rgb(var(--surface-2) / <alpha-value>)',
'surface-3': 'rgb(var(--surface-3) / <alpha-value>)',
'surface-4': 'rgb(var(--surface-4) / <alpha-value>)',
},
fontFamily: {
handwriting: [
'var(--font-remote-handwriting)',
'var(--font-remote-sans)',
'sans-serif',
],
primary: ['var(--font-remote)', 'sans-serif'],
sans: [
'var(--font-remote-sans)',
'ui-sans-serif',
'system-ui',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
'Noto Color Emoji',
],
},
},
},
}
export default config