Elffuss BraidHub

kikocis/continue public

cd33d3613239 · 3.8 KiBRawPermalink
1/** @type {import('tailwindcss').Config} */
2const defaultTheme = require("tailwindcss/defaultTheme");
3const { varWithFallback, THEME_COLORS } = require("./src/styles/theme");
4
5module.exports = {
6 content: [
7 "./index.html",
8 "./src/**/*.{js,ts,jsx,tsx}",
9 "./src/*.{js,ts,jsx,tsx}",
10 ],
11 theme: {
12 // Note that these breakpoints are primarily optimized for the input toolbar
13 screens: {
14 "2xs": "170px", // Smallest width for Primary Sidebar in VS Code
15 xs: "250px", // Avg default sidebar width in VS Code
16 sm: "330px",
17 int: "380px",
18 md: "460px",
19 lg: "590px",
20 xl: "720px",
21 "2xl": "860px",
22 "3xl": "1000px",
23 "4xl": "1180px",
24 },
25 extend: {
26 animation: {
27 "spin-slow": "spin 6s linear infinite",
28 },
29 borderRadius: {
30 default: "5px",
31 },
32 colors: {
33 background: varWithFallback("background"),
34 foreground: varWithFallback("foreground"),
35 editor: {
36 DEFAULT: varWithFallback("editor-background"),
37 foreground: varWithFallback("editor-foreground"),
38 },
39 primary: {
40 DEFAULT: varWithFallback("primary-background"),
41 foreground: varWithFallback("primary-foreground"),
42 hover: varWithFallback("primary-hover"),
43 },
44 secondary: {
45 DEFAULT: varWithFallback("secondary-background"),
46 foreground: varWithFallback("secondary-foreground"),
47 hover: varWithFallback("secondary-hover"),
48 },
49 border: {
50 DEFAULT: varWithFallback("border"),
51 focus: varWithFallback("border-focus"),
52 },
53 command: {
54 DEFAULT: varWithFallback("command-background"),
55 foreground: varWithFallback("command-foreground"),
56 border: {
57 DEFAULT: varWithFallback("command-border"),
58 focus: varWithFallback("command-border-focus"),
59 },
60 },
61 description: {
62 DEFAULT: varWithFallback("description"),
63 muted: varWithFallback("description-muted"),
64 },
65 input: {
66 DEFAULT: varWithFallback("input-background"),
67 foreground: varWithFallback("input-foreground"),
68 border: varWithFallback("input-border"),
69 placeholder: varWithFallback("input-placeholder"),
70 },
71 table: {
72 oddRow: varWithFallback("table-oddRow"),
73 },
74 badge: {
75 DEFAULT: varWithFallback("badge-background"),
76 foreground: varWithFallback("badge-foreground"),
77 },
78 success: varWithFallback("success"),
79 warning: varWithFallback("warning"),
80 error: varWithFallback("error"),
81 link: varWithFallback("link"),
82 accent: varWithFallback("accent"),
83 findMatch: {
84 DEFAULT: THEME_COLORS["find-match"].default,
85 selected: varWithFallback("find-match-selected"),
86 },
87 list: {
88 hover: varWithFallback("list-hover"),
89 active: {
90 DEFAULT: varWithFallback("list-active"),
91 foreground: varWithFallback("list-active-foreground"),
92 },
93 },
94
95 // DEPRECATED, slowly remove usages of these ide-named or explicit colors
96 lightgray: "#999998", // use border, description, or description-muted instead - AVOID
97 "vsc-input-background": varWithFallback("input-background"), // use "input-background" instead
98 "vsc-background": varWithFallback("background"), // use "background" instead
99 "vsc-foreground": varWithFallback("editor-foreground"), // use "foreground" instead
100 "vsc-editor-background": varWithFallback("editor-background"), // use "editor" instead
101 "vsc-input-border": varWithFallback("input-border"), // use "input-border" instead
102 },
103 },
104 },
105 plugins: [],
106 corePlugins: {
107 preflight: false,
108 },
109};