-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.ts
58 lines (47 loc) · 1.22 KB
/
tailwind.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
import { TailwindConfig, TailwindThemeFontSizes } from "tailwindcss/tailwind-config";
export type AppThemeColors = keyof typeof themeColors
export type AppThemeFontSizes = keyof typeof themeFontSizes
export const themeFontSizes:TailwindThemeFontSizes = {
'heading':'24',
'title':'20',
'subTitle':'16',
'subTitle-2':'14',
'body':'15',
'body-2':'14',
'caption':'12',
'overline':'10',
'button':'14',
}
export const themeColors = {
primary: "#2d3e61",
"primary-dark": "#242E48",
"on-primary": "#EEEEDF",
secondary: "#f7b902",
"secondary-dark": "#F66900",
"on-secondary": "#ffffff",
background: "#F8F8F8",
"on-background": "#444444",
surface: "#ffffff",
"on-surface": "#444444",
error:'#B00020',
outline:"#e0e0e0",
'on-dark':'#E3E3E3',
gray: '#888888'
}
const config:TailwindConfig = {
purge: ["**/*.{js,jsx,ts,tsx}"],
darkMode: "class", // or 'media' or 'class'
theme: {
extend: {
colors: themeColors,
fontFamily:{
sans:['open-sans','sans-serif'],
'sans-semibold':['open-sans-semibold','sans-serif'],
'sans-bold':['open-sans-bold','sans-serif'],
mono:['serif']
},
fontSize:themeFontSizes
},
},
};
module.exports = config