-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
65 lines (63 loc) · 2.02 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
const defaultTheme = require('tailwindcss/defaultTheme');
const defaultColors = require('tailwindcss/colors');
const colors = {
white: 'rgb(var(--color-white) / <alpha-value>)',
black: 'rgb(var(--color-black) / <alpha-value>)',
green: defaultColors.emerald,
red: defaultColors.rose,
blue: defaultColors.sky,
yellow: defaultColors.amber,
accent: {
dark: 'rgb(var(--color-accent-dark) / <alpha-value>)',
base: 'rgb(var(--color-accent-base) / <alpha-value>)'
},
canvas: 'rgb(var(--color-canvas) / <alpha-value>)',
stroke: 'rgb(var(--color-stroke) / <alpha-value>)',
muted: 'rgb(var(--color-muted) / <alpha-value>)',
neutral: {
25: 'rgb(var(--color-neutral-25) / <alpha-value>)',
50: 'rgb(var(--color-neutral-50) / <alpha-value>)',
100: 'rgb(var(--color-neutral-100) / <alpha-value>)',
200: 'rgb(var(--color-neutral-200) / <alpha-value>)',
300: 'rgb(var(--color-neutral-300) / <alpha-value>)',
400: 'rgb(var(--color-neutral-400) / <alpha-value>)',
500: 'rgb(var(--color-neutral-500) / <alpha-value>)',
600: 'rgb(var(--color-neutral-600) / <alpha-value>)',
700: 'rgb(var(--color-neutral-700) / <alpha-value>)',
800: 'rgb(var(--color-neutral-800) / <alpha-value>)',
900: 'rgb(var(--color-neutral-900) / <alpha-value>)'
}
};
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
colors,
borderColor: ({ theme }) => ({
...theme('colors'),
DEFAULT: theme('colors.neutral.100')
}),
ringColor: ({ theme }) => ({
...theme('colors'),
DEFAULT: theme('colors.blue.600')
}),
ringOffsetColor: ({ theme }) => ({
...theme('colors')
}),
lineHeight: {
normal: '1.565'
},
letterSpacing: {},
fontFamily: {
retro: ['auger-mono', 'space-mono', 'industry', ...defaultTheme.fontFamily.sans],
sans: ['Inter var', 'Inter', ...defaultTheme.fontFamily.sans],
code: ['IBM Plex Mono', ...defaultTheme.fontFamily.mono]
},
boxShadow: {
retro: '0.4rem 0.4rem 1px rgb(35 35 35)',
}
}
},
plugins: []
};