This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
105 lines (90 loc) · 3.72 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
theme: {
// THEME
// To easily see what styles are used where, you can search the codebase for `text-primary-bold` e.g.
// For more information on how to configure this TailwindCSS theme, go to https://tailwindcss.com/docs/theme
colors: {
// BRAND COLOURS
// These are your product brand colours. Tweak these to get a branded experience out-of-the-box.
// Primary brand colours
primary: {
// Subtle
subtle: '#ecedf5', // <Button variant="subtle"/> bg, and radio options e.g.
'subtle-darker': '#d8dbea', // <Button variant="subtle"/> :hover bg
'subtle-darkest': '#c5c9e0', // <Button variant="subtle"/> :active bg
// Bold
bold: '#3D4C96', // <Button variant="bold"/> bg, and primary-bold -> primary-accent bg gradients e.g.
'bold-darker': '#2A3466', // Links (darker to provide more contrast)
// Accent
accent: '#498EBE', // primary-bold to primary-accent bg gradient e.g.
},
// Secondary brand colours
secondary: {
// Bold
'bold-lighter': '#F6C759', // icons on dark bg (lighter to provide more contrast)
bold: '#EFBC50', // primary-bold to secondary-bold bg gradients e.g.
'bold-darker': '#E5AE54', // icons on light bg (darker to provide more contrast)
},
// FUNCTIONAL COLOURS
// Colours that are not necessarily tied to your products brand, but are heavily used to style the UI.
// Base UI colours
transparent: 'transparent',
current: 'currentColor', // svgs to be able to grab the text-{color} as stroke- or fill colour
black: '#4a4a4a', // default text colour
white: '#FFFFFF', // default bg colour of the /account-verification flow, <Button variant="inverted"/> e.g.
// Neutral UI colours
neutral: {
subtle: '#F5F8F9', // subtle backgrounds to contrast with default white bg e.g.
'subtle-darker': '#EBEEEF', // <InstitutionsLoadingSkeleton />, disabled bg colour e.g.
dim: '#DEE4E7', // border, divide colour
'dim-darker': '#BECBD0', // form input border, radio circles e.g.
muted: '#777f81', // muted icons, e.g. in <SearchInput />
'muted-darker': '#6B7173', // muted text (darker to provide more contrast)
},
// Critical UI colours
critical: {
// Subtle
subtle: '#FFE9EB', // ErrorMessage and critical Toast background e.g.
// Bold
bold: '#E8001C', // <Button variant="critical"/> bg, error border colour e.g.
'bold-darker': '#A30014', // error message text colour (darker to provide more contrast)
},
// Success UI colours
success: {
// Subtle
subtle: '#D6FFEB', // Success Toast background e.g.
// Bold
bold: '#00BD62', // Success Toast border and icon colour e.g.
},
},
// FONT
// Changing font makes a big difference to the branded experience of your product.
// To change font go to /styles.css and import the font you want.
// Font-weights used through-out this example app are:
// 400 (default), 500 (font-medium), and 600 (font-semibold).
fontFamily: {
sans: ['Lato', ...defaultTheme.fontFamily.sans],
},
fontWeight: {
normal: 400,
medium: 700,
semibold: 900,
},
extend: {
animation: {
'ping-slow': 'pingSlow 2s cubic-bezier(0, 0, 0.2, 1) infinite',
},
keyframes: {
pingSlow: {
'75%, 100%': {
transform: 'scale(1.5)',
opacity: '0',
},
},
},
},
},
plugins: [],
};