generated from silveltman/starter-astro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
89 lines (86 loc) · 1.98 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
const radixColors = require('@radix-ui/colors')
function getRadixColors(object) {
const newObject = {}
Object.keys(object).forEach((item, index) => {
newObject[index + 1] = object[item]
})
return newObject
}
module.exports = {
content: [
'./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}',
'./node_modules/antislipprofiles-ui/dist/**/*.{html,js,svelte,ts}',
],
darkMode: 'class',
theme: {
fontFamily: {
heading: '"Open Sans", sans-serif',
subheading: '"Open Sans", sans-serif',
base: '"Open Sans", sans-serif',
button: '"Open Sans", sans-serif',
},
fontWeight: {
heading: 700,
subheading: 600,
base: 400,
button: 500,
},
lineHeight: {
heading: 1.125,
subheading: 1.25,
base: 1.625,
},
borderRadius: {
box: '12px',
card: '12px',
image: '12px',
button: '6px',
input: '6px',
},
},
plugins: [
require('@tailwindcss/forms'),
require('tailwindcss-themer')({
themes: [
{
name: 'light',
extend: {
colors: {
base: getRadixColors(radixColors.sand),
'base-9-content': 'white',
},
},
},
{
name: 'dark',
extend: {
colors: {
base: getRadixColors(radixColors.sandDark),
'base-9-content': 'white',
},
},
},
{
name: 'light-orange',
extend: {
colors: {
base: getRadixColors(radixColors.orange),
'base-9-content': 'white',
},
},
},
{
name: 'dark-orange',
extend: {
colors: {
base: getRadixColors(radixColors.orangeDark),
'base-9-content': 'white',
},
},
},
],
}),
require('antislipprofiles-ui/plugin'),
],
}