-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
42 lines (40 loc) · 1.15 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
/** @type {import('tailwindcss').Config} */
import frequencyConfig from '@frequency-chain/style-guide/tailwind.config';
import { MAX_PAGE_WIDTH } from './src/lib/consts';
export default {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
fontFamily: {
title: ['Newake', 'sans-serif'],
sans: ['Poppins', 'sans-serif'],
},
colors: {
darkIndigo: '#445BC3',
tealBright: '#00B6AF',
},
width: {
page: `${MAX_PAGE_WIDTH}px`,
full: '100%',
},
maxWidth: {
page: `${MAX_PAGE_WIDTH}px`,
full: '100%',
},
minWidth: {
page: `${MAX_PAGE_WIDTH}px`,
full: '100%',
},
screens: {
sm: '0px',
md: '900px',
lg: '1300px',
xl: `${MAX_PAGE_WIDTH}px`,
'vertical-lg': { raw: '(max-height: 700px) and (min-width: 1300px)' },
'vertical-md': { raw: '(max-height: 700px) and (min-width: 900px)' },
vertical: { raw: '(max-height: 700px) or (min-width: 0px)' },
horizontal: { raw: '(min-height: 700px) and (min-width: 1300px)' },
},
},
safelist: ['after:bg-navy', 'after:bg-cream', 'invalid:border-red'],
presets: [frequencyConfig],
};