-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
112 lines (112 loc) · 4.05 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/** @type {import('tailwindcss').Config} */
import typographyPlugin from '@tailwindcss/typography';
module.exports = {
darkMode: ['class'],
content: ['./@/**/*.{ts,tsx}', './app/**/*.{ts,tsx}'],
prefix: '',
theme: {
container: {
center: true,
screens: {
'2xl': '1440px',
},
},
fontFamily: {
body: ["Nunito Sans Variable", "ui-sans-serif", "system-ui", "sans-serif"],
heading: ["Cormorant Variable", "ui-serif", "Georgia", "Cambria", "Times New Roman", "Times", "serif"],
},
fontSize: {
scale: [
"calc(var(--min-size-px) + (var(--max-size) - var(--min-size)) * ((100vw - var(--wv-min-viewport-size, 320) * 1px) / (var(--wv-max-viewport-size, 1920) - var(--wv-min-viewport-size, 320))))",
1,
],
xs: ["calc(var(--body-base-size) * 0.75)", 1],
sm: ["calc(var(--body-base-size) * 0.875)", 1.25],
base: ["var(--body-base-size)", "var(--body-base-line-height)"],
lg: ["calc(var(--body-base-size) * 1.125)", 1.75],
xl: ["calc(var(--body-base-size) * 1.25)", 1.75],
"2xl": ["calc(var(--body-base-size) * 1.5)", 2],
"3xl": ["calc(var(--body-base-size) * 1.875)", 2.25],
"4xl": ["calc(var(--body-base-size) * 2.25)", 2.5],
"5xl": ["calc(var(--body-base-size) * 3)", 1],
"6xl": ["calc(var(--body-base-size) * 3.75)", 1],
"7xl": ["calc(var(--body-base-size) * 4.5)", 1],
"8xl": ["calc(var(--body-base-size) * 6)", 1],
"9xl": ["calc(var(--body-base-size) * 8)", 1],
},
extend: {
colors: {
background: {
DEFAULT: 'rgb(var(--color-background) / <alpha-value>)',
subtle: {
1: 'rgb(var(--color-background-subtle) / <alpha-value>)',
2: 'rgb(var(--color-background-subtle-2) / <alpha-value>)',
},
basic: 'rgb(var(--color-background-basic) / <alpha-value>)',
},
foreground: {
DEFAULT: 'rgb(var(--color-foreground) / <alpha-value>)',
subtle: 'rgb(var(--color-foreground-subtle) / <alpha-value>)',
basic: 'rgb(var(--color-foreground-basis) / <alpha-value>)',
},
primary: {
DEFAULT: 'rgb(var(--color-primary) / <alpha-value>)',
foreground: 'rgb(var(--color-primary-foreground) / <alpha-value>)',
},
secondary: {
DEFAULT: 'rgb(var(--color-secondary) / <alpha-value>)',
foreground: 'rgb(var(--color-secondary-foreground) / <alpha-value>)',
},
outline: {
DEFAULT: 'rgb(var(--color-outline) / <alpha-value>)',
foreground: 'rgb(var(--color-outline-foreground) / <alpha-value>)',
},
bar: {
DEFAULT: 'rgb(var(--color-border) / <alpha-value>)',
subtle: 'rgb(var(--color-border-subtle) / <alpha-value>)',
},
label: {
sale: '#AB2E2E',
new: '#9AA473',
soldout: '#A8A79C',
},
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
},
height: {
screen: 'var(--screen-height, 100vh)',
'screen-no-nav':
'calc(var(--screen-height, 100vh) - var(--height-nav))',
'screen-in-drawer': 'calc(var(--screen-height, 100vh) - 90px)',
'screen-dynamic': 'var(--screen-height-dynamic, 100vh)',
nav: 'var(--height-nav)',
},
keyframes: {
'accordion-down': {
from: {height: '0'},
to: {height: 'var(--radix-accordion-content-height)'},
},
'accordion-up': {
from: {height: 'var(--radix-accordion-content-height)'},
to: {height: '0'},
},
'scrollContent':{
from: { transform: 'translateX(0)' },
to: { transform: 'translateX(-100%)' },
},
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
'scrollContent': 'scrollContent linear infinite',
},
},
},
plugins: [
require('tailwindcss-animate'),
typographyPlugin
],
};