-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
73 lines (72 loc) · 2.23 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
const transparentize = require("polished").transparentize;
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
screens: {
xl: { max: "1279px" },
lg: { max: "1023px" },
md: { max: "767px" },
sm: { max: "639px" },
xs: { max: "299px" },
},
colors: {
transparent: "transparent",
current: "currentColor",
black: "#000000",
white: "#ffffff",
grey: {
// generated from deepBlue with https://palx.jxnblk.com/
lighter: "#f9f9fa",
light: "#dee1e4",
DEFAULT: "#97a1a9",
dark: "#5f6e7a",
darker: "#384047",
},
deepBlue: {
// https://github.com/igrmk/blec
10: "#eef0f4", // blec f9f9fa 2872af:0.1
20: "#e2e6ed", // blec f9f9fa 2872af:0.2
30: "#d6dce7", // blec f9f9fa 2872af:0.3
75: "#8aa2c5", // blec f9f9fa 2872af:0.75
80: "#7d9ac1", // blec f9f9fa 2872af:0.8
85: "#6f91bd", // blec f9f9fa 2872af:0.85
90: "#5f88b8", // blec f9f9fa 2872af:0.9
93: "#5382b6", // blec f9f9fa 2872af:0.93
95: "#497eb4", // blec f9f9fa 2872af:0.95
DEFAULT: "#2872af", // primary
105: "#1b65a2", // 5% darkened deepBlue
110: "#0f5996", // 10% darkened deepBlue
heroBase: transparentize(0.05, "#497eb4"), // deepBlue.95
heroTop: transparentize(0.2, "#5382b6"), // deepBlue.93
},
brightYellow: "#ffc71e", // secondary/accent
deepGreen: "#448147", // success
brightOrange: "#ff871e", // warning
deepRed: "#af284c", // danger
brightRed: "#e63227",
brightGreen: "#4fb440",
brightBlue: "#56c4dc",
deepPurple: "#5a4d6e",
brightPurple: "#951e6c",
brightPink: "#dc2d6c",
},
extend: {
fontFamily: {
title: ["Brawler", "serif"],
body: ["Lato", "sans-serif"],
},
backgroundImage: (theme) => {
const base = transparentize(0.05, theme("colors.deepBlue.95"));
const top = transparentize(0.2, theme("colors.deepBlue.93"));
return {
"hero-gradient": `linear-gradient(to top, ${base}, ${top})`,
};
},
},
},
variants: {
extend: {},
},
plugins: [require("@tailwindcss/forms")],
};