Elffuss BraidHub

kikocis/continue public

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