-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
52 lines (49 loc) · 1.62 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
import { nextui } from "@nextui-org/react";
import typography from "@tailwindcss/typography";
import scrollbar from "tailwind-scrollbar";
import { withTV } from "tailwind-variants/transformer";
import type { Config } from "tailwindcss";
import { BREAKPOINTS } from "./shared/constants/breakpoints";
import { COLORS } from "./shared/theme/colors";
import GradientsPreset from "./shared/theme/tailwind/gradients-preset";
import RadiusPreset from "./shared/theme/tailwind/radius-preset";
import RingsPreset from "./shared/theme/tailwind/rings-preset";
import ShadowPreset from "./shared/theme/tailwind/shadow-preset";
import SizePreset from "./shared/theme/tailwind/size-preset";
import SpacingPreset from "./shared/theme/tailwind/spacing-preset";
const config: Config = withTV({
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./design-system/**/*.{js,ts,jsx,tsx,mdx}",
"./shared/**/*.{js,ts,jsx,tsx,mdx}",
"./.storybook/**/*.{js,ts,jsx,tsx}",
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
],
presets: [ShadowPreset, RingsPreset, GradientsPreset, SizePreset, SpacingPreset, RadiusPreset],
theme: {
extend: {
fontFamily: {
clash: "Clash Display",
inter: "Inter",
},
colors: {
...COLORS,
},
screens: {
mobile: `${BREAKPOINTS.mobile}px`,
tablet: `${BREAKPOINTS.tablet}px`,
laptop: `${BREAKPOINTS.laptop}px`,
desktop: `${BREAKPOINTS.desktop}px`,
wide: `${BREAKPOINTS.wide}px`,
},
},
},
plugins: [
typography,
scrollbar,
nextui({
defaultTheme: "dark",
}),
],
});
export default config;