-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathtailwind.config.js
67 lines (66 loc) · 2.1 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
const { nextui, commonColors } = require('@nextui-org/theme');
const { sizes } = require('./src/ui/constants/sizes.constant');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/**/*.{js,ts,jsx,tsx,mdx}',
'./node_modules/@nextui-org/theme/dist/components/(button|chip|card|navbar|toggle|tooltip|modal|input|circular-progress|table|image|link).js',
],
theme: {
extend: {
padding: {
nodePadding: sizes.nodePadding,
},
height: {
nodeContentHeight: sizes.nodeContentHeight,
},
minWidth: {
arrayNodeSize: sizes.arrayNodeSize,
nodeMinWidth: sizes.nodeMinWidth,
nodeDetailPanelWidth: sizes.nodeDetailPanelWidth,
},
maxWidth: {
arrayNodeSize: sizes.arrayNodeSize,
nodeMaxWidth: sizes.nodeMaxWidth,
nodeDetailPanelWidth: sizes.nodeDetailPanelWidth,
},
minHeight: {
arrayNodeSize: sizes.arrayNodeSize,
},
maxHeight: {
arrayNodeSize: sizes.arrayNodeSize,
},
},
},
darkMode: 'class',
plugins: [
nextui({
addCommonColors: true, // override common colors (e.g. "blue", "green", "pink").
defaultTheme: 'light', // default theme from the themes object
defaultExtendTheme: 'light', // default theme to extend on custom themes
layout: {}, // common layout tokens (applied to all themes)
themes: {
light: {
layout: {},
colors: {
border: 'rgba(0, 0, 0, 0.15)',
backgroundAlpha: 'rgba(255, 255, 255, 0.8)',
backgroundContrast: '#ffffff',
titleJson: '#00254D', // 'JSON' of 'JSON SEA'
titleSea: '#4C76A5', // 'SEA' of 'JSON SEA'
},
},
dark: {
layout: {},
colors: {
border: 'rgba(255, 255, 255, 0.15)',
backgroundAlpha: 'rgba(0, 0, 0, 0.6)',
backgroundContrast: '#16181A',
titleJson: commonColors.zinc[100], // 'JSON' of 'JSON SEA'
titleSea: commonColors.zinc[100], // 'SEA' of 'JSON SEA'
},
},
},
}),
],
};