-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
50 lines (48 loc) · 1.09 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
const defaultTheme = require("tailwindcss/defaultTheme");
const plugin = require("tailwindcss/plugin");
/**
* Colors used:
* slate-50
* slate-950
* pink-500
* violet-500
* violet-900
*/
module.exports = {
darkMode: "class",
content: ["./src/**/*.{astro,html,js,jsx,ts,tsx,md,mdoc,mdx,yaml,json}"],
theme: {
container: {
center: true,
},
extend: {
fontFamily: {
body: ["Lato", ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [
plugin(({ addBase }) => {
addBase({
"@font-face": [
{
fontFamily: "Lato",
fontWeight: 400,
fontDisplay: "swap",
fontStyle: "normal",
src: 'url("/fonts/Lato-Regular.woff2") format("woff2")',
},
{
fontFamily: "Lato",
fontWeight: 700,
fontDisplay: "swap",
fontStyle: "normal",
src: 'url("/fonts/Lato-Bold.woff2") format("woff2")',
},
],
});
}),
require("@tailwindcss/typography"),
],
};