-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtwind.config.ts
66 lines (65 loc) · 1.54 KB
/
twind.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
import { apply } from "twind"
import { Options } from "$fresh/plugins/twind.ts"
import * as colors from "twind/colors"
export default {
selfURL: import.meta.url,
preflight: {
"@import":
`url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:wght@400;700&family=Raleway:wght@400;700&display=swap')`,
"@font-face": [
{
fontFamily: "Libre Bodoni",
},
{ fontFamily: "Raleway" },
],
body: apply`bg-gray-900`,
a: apply`text-indigo text-underline visited:text-violet hover:text-blue`,
"h1, h2, h3": {
"@apply": `mb-3 font-heading font-normal`,
a: {
"@apply": `text-dark no-underline`,
"&:visited": apply`text-dark`,
},
},
h1: {
"@apply": `text-3xl`,
},
h2: {
"@apply": `text-2xl`,
},
h3: {
"@apply": `text-xl`,
},
},
theme: {
extend: {
boxShadow: {
"red": "0 35px 60px -15px rgba(210,81,153, 1)",
},
},
fontFamily: {
"heading": ['"Libre Bodoni"', "serif"],
"body": ['"Raleway"', "sans-serif"],
},
screens: {
sm: "480px",
md: "768px",
lg: "976px",
xl: "1440px",
},
colors: {
purple: "#271f3f",
green: "#59a188",
blue: "rgb(0,190,211)",
indigo: "rgb(0,153,212)",
violet: "rgb(108, 73, 136)",
red: "rgb(210,81,153)",
orange: "rgb(249,108,98)",
yellow: "rgb(254,245,121)",
dark: "rgb(15,15,15)",
white: colors.white,
black: colors.black,
gray: colors.gray,
},
},
} as Options