Repository navigation
Expand file tree
/
Copy pathtailwind.config.js
More file actions
87 lines (82 loc) · 1.84 KB
/
Copy pathtailwind.config.js
File metadata and controls
87 lines (82 loc) · 1.84 KB
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
const defaultTheme = require('tailwindcss/defaultTheme');
const plugin = require('tailwindcss/plugin');
const radialGradientPlugin = plugin(
function ({ matchUtilities, theme }) {
matchUtilities(
{
// map to bg-radient-[*]
'bg-radient': (value) => ({
'background-image': `radial-gradient(${value},var(--tw-gradient-stops))`,
}),
},
{ values: theme('radialGradients') },
);
},
{
theme: {
radialGradients: _presets(),
},
},
);
/**
* utility class presets
*/
function _presets() {
const shapes = ['circle', 'ellipse'];
const pos = {
c: 'center',
t: 'top',
b: 'bottom',
l: 'left',
r: 'right',
tl: 'top left',
tr: 'top right',
bl: 'bottom left',
br: 'bottom right',
};
let result = {};
for (const shape of shapes)
for (const [posName, posValue] of Object.entries(pos)) result[`${shape}-${posName}`] = `${shape} at ${posValue}`;
return result;
}
/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
plugins: [radialGradientPlugin],
theme: {
colors: {
blue: '#3294F8',
'base-title': '#E7EDF4',
'base-subtitle': '#C4D4E3',
'base-text': '#AFC2D4',
'base-span': '#7B96B2',
'base-label': '#3A536B',
'base-border': '#1C2F41',
'base-post': '#112131',
'base-profile': '#0B1B2B',
'base-background': '#071422',
'base-input': '#040F1A',
},
fontWeight: {
normal: 400,
bold: 700,
},
fontSize: {
xs: '12pt',
sm: '14pt',
md: '16pt',
lg: '18pt',
xl: '20pt',
'2xl': '24pt',
},
borderColor: {
current: '#1C2F41',
},
extend: {
fontFamily: {
sans: ['Nunito', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [],
};