-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
78 lines (77 loc) · 2.13 KB
/
tailwind.config.ts
File metadata and controls
78 lines (77 loc) · 2.13 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
// Copyright 2019-2025 @polkassembly/fellowship authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { nextui } from '@nextui-org/theme/plugin';
import type { Config } from 'tailwindcss';
// eslint-disable-next-line import/no-extraneous-dependencies
import { createThemes } from 'tw-colors';
// eslint-disable-next-line import/no-extraneous-dependencies
import plugin from 'tailwindcss/plugin';
import THEME_COLORS from './src/global/themeColors';
const config: Config = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}'
],
darkMode: 'class',
plugins: [
nextui({
prefix: 'nui',
defaultTheme: 'light',
defaultExtendTheme: 'light',
layout: {
radius: {
small: '8px', // rounded-small
medium: '14px', // rounded-medium
large: '20px' // rounded-large
}
},
themes: {
light: {
colors: {
background: '#F8FAFC', // the page background color
foreground: '#243A57', // the page text color
primary: {
foreground: '#FFFFFF',
DEFAULT: '#E5007A'
},
secondary: {
foreground: '#FFFFFF',
DEFAULT: '#151532'
},
warning: '#F89118'
}
},
dark: {
colors: {
background: '#111D2B', // the page background color
foreground: '#FFFFFF', // the page text color
primary: {
foreground: '#FFFFFF',
DEFAULT: '#FF60B5'
},
secondary: {
foreground: '#FFFFFF',
DEFAULT: '#21214F'
}
}
}
}
}),
// eslint-disable-next-line @typescript-eslint/no-explicit-any, func-names
plugin(function ({ addUtilities }: { addUtilities: any }) {
addUtilities(
{
'.dark-icon-filter': {
filter: 'invert(71%) grayscale(100%) sepia(0%) saturate(558%) hue-rotate(187deg) brightness(90%) contrast(88%)'
}
},
['dark']
); // Ensure it's only applied in dark mode
}),
createThemes(THEME_COLORS)
]
};
export default config;