-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
117 lines (107 loc) · 3.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
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
113
114
115
116
117
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
darkMode: ['class', '.vscode-dark'],
theme: {
extend: {
colors: {
// Core VSCode colors
background: 'var(--vscode-editor-background)',
foreground: 'var(--vscode-editor-foreground)',
// UI Elements
'ui-border': 'var(--vscode-editorWidget-border)',
'ui-shadow': 'var(--vscode-widget-shadow)',
// Interactive elements
primary: {
DEFAULT: 'var(--vscode-button-background)',
foreground: 'var(--vscode-button-foreground)',
hover: 'var(--vscode-button-hoverBackground)',
border: 'var(--vscode-button-border)',
},
secondary: {
DEFAULT: 'var(--vscode-button-secondaryBackground)',
foreground: 'var(--vscode-button-secondaryForeground)',
hover: 'var(--vscode-button-secondaryHoverBackground)',
},
// Form elements
input: {
DEFAULT: 'var(--vscode-input-background)',
foreground: 'var(--vscode-input-foreground)',
border: 'var(--vscode-input-border)',
placeholder: 'var(--vscode-input-placeholderForeground)',
},
// Status/feedback colors
error: {
DEFAULT: 'var(--vscode-errorForeground)',
background: 'var(--vscode-inputValidation-errorBackground)',
border: 'var(--vscode-inputValidation-errorBorder)',
},
warning: {
DEFAULT: 'var(--vscode-editorWarning-foreground)',
background: 'var(--vscode-inputValidation-warningBackground)',
border: 'var(--vscode-inputValidation-warningBorder)',
},
info: {
DEFAULT: 'var(--vscode-editorInfo-foreground)',
background: 'var(--vscode-inputValidation-infoBackground)',
border: 'var(--vscode-inputValidation-infoBorder)',
},
// Link colors
link: {
DEFAULT: 'var(--vscode-textLink-foreground)',
active: 'var(--vscode-textLink-activeForeground)',
},
// Progress indicators
progress: {
background: 'var(--vscode-progressBar-background)',
foreground: 'var(--vscode-progressBar-foreground)',
},
// New colors
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))',
},
success: {
DEFAULT: 'hsl(var(--success))',
foreground: 'hsl(var(--success-foreground))',
},
},
// Typography
fontFamily: {
sans: ['var(--vscode-font-family)'],
mono: ['var(--vscode-editor-font-family)'],
},
fontSize: {
base: 'var(--vscode-font-size)',
code: 'var(--vscode-editor-font-size)',
},
// Animations
animation: {
'reverse-spin': 'reverse-spin 1s linear infinite',
progress: 'progress 2s ease infinite',
},
keyframes: {
'reverse-spin': {
from: {
transform: 'rotate(360deg)',
},
},
progress: {
'0%': { left: '0', width: '0%' },
'50%': { width: '50%' },
'100%': { left: '100%', width: '0%' },
},
},
// Border radius
borderRadius: {
DEFAULT: 'var(--radius)',
},
},
},
plugins: [
require('@tailwindcss/typography'),
require('tailwind-scrollbar'),
require('tailwindcss-radix'),
require('tailwindcss-animate'),
],
}