Elffuss BraidHub

kikocis/continue public

6e4b7e9fc0a8 · 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: "0.5rem",
31 },
32 outlineOffset: {
33 0.5: "0.5px",
34 },
35 colors: {
36 background: varWithFallback("background"),
37 foreground: varWithFallback("foreground"),
38 editor: {
39 DEFAULT: varWithFallback("editor-background"),
40 foreground: varWithFallback("editor-foreground"),
41 },
42 primary: {
43 DEFAULT: varWithFallback("primary-background"),
44 foreground: varWithFallback("primary-foreground"),
45 hover: varWithFallback("primary-hover"),
46 },
47 secondary: {
48 DEFAULT: varWithFallback("secondary-background"),
49 foreground: varWithFallback("secondary-foreground"),
50 hover: varWithFallback("secondary-hover"),
51 },
52 border: {
53 DEFAULT: varWithFallback("border"),
54 focus: varWithFallback("border-focus"),
55 },
56 command: {
57 DEFAULT: varWithFallback("command-background"),
58 foreground: varWithFallback("command-foreground"),
59 border: {
60 DEFAULT: varWithFallback("command-border"),
61 focus: varWithFallback("command-border-focus"),
62 },
63 },
64 description: {
65 DEFAULT: varWithFallback("description"),
66 muted: varWithFallback("description-muted"),
67 },
68 input: {
69 DEFAULT: varWithFallback("input-background"),
70 foreground: varWithFallback("input-foreground"),
71 border: varWithFallback("input-border"),
72 placeholder: varWithFallback("input-placeholder"),
73 },
74 table: {
75 oddRow: varWithFallback("table-oddRow"),
76 },
77 badge: {
78 DEFAULT: varWithFallback("badge-background"),
79 foreground: varWithFallback("badge-foreground"),
80 },
81 success: varWithFallback("success"),
82 warning: varWithFallback("warning"),
83 error: varWithFallback("error"),
84 link: varWithFallback("link"),
85 accent: varWithFallback("accent"),
86 findMatch: {
87 DEFAULT: THEME_COLORS["find-match"].default,
88 selected: varWithFallback("find-match-selected"),
89 },
90 list: {
91 hover: varWithFallback("list-hover"),
92 active: {
93 DEFAULT: varWithFallback("list-active"),
94 foreground: varWithFallback("list-active-foreground"),
95 },
96 },
97
98 // DEPRECATED, slowly remove usages of these ide-named or explicit colors
99 lightgray: "#999998", // use border, description, or description-muted instead - AVOID
100 "vsc-input-background": varWithFallback("input-background"), // use "input-background" instead
101 "vsc-background": varWithFallback("background"), // use "background" instead
102 "vsc-foreground": varWithFallback("editor-foreground"), // use "foreground" instead
103 "vsc-editor-background": varWithFallback("editor-background"), // use "editor" instead
104 "vsc-input-border": varWithFallback("input-border"), // use "input-border" instead
105 },
106 },
107 },
108 plugins: [],
109 corePlugins: {
110 preflight: false,
111 },
112};