-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.mjs
39 lines (37 loc) · 1.26 KB
/
tailwind.config.mjs
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
/** @type {import('tailwindcss').Config} */
const colors = require('tailwindcss/colors');
const defaultTheme = require('tailwindcss/defaultTheme');
const fs = require('fs');
const noiseBitmap = fs.readFileSync('./src/assets/noise.png', { encoding: 'base64' });
const noiseDataUri = 'data:image/png;base64,' + noiseBitmap;
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {
backgroundImage: {
'grid-pattern': `linear-gradient(to bottom, theme('colors.neutral.950 / 0%'), theme('colors.neutral.950 / 100%')), url('${noiseDataUri}')`
},
colors: {
neutral: colors.neutral
},
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans]
}
}
},
daisyui: {
themes: [
{
lofi: {
...require('daisyui/src/theming/themes')['lofi'],
primary: '#F67280',
'primary-content': '#1f1f1f',
secondary: '#C06C84',
info: '#F67280',
'info-content': '#1f1f1f'
}
}
]
},
plugins: [require('daisyui')]
};