| 1 | /** @type {import('tailwindcss').Config} */ |
| 2 | const defaultTheme = require("tailwindcss/defaultTheme"); |
| 3 | |
| 4 | module.exports = { |
| 5 | content: [ |
| 6 | "./index.html", |
| 7 | "./src/**/*.{js,ts,jsx,tsx}", |
| 8 | "./src/*.{js,ts,jsx,tsx}", |
| 9 | ], |
| 10 | theme: { |
| 11 | // Note that these breakpoints are primarily optimized for the input toolbar |
| 12 | screens: { |
| 13 | "2xs": "170px", // Smallest width for Primary Sidebar in VS Code |
| 14 | xs: "250px", // Avg default sidebar width in VS Code |
| 15 | sm: "330px", |
| 16 | int: "380px", |
| 17 | md: "460px", |
| 18 | lg: "590px", |
| 19 | xl: "720px", |
| 20 | "2xl": "860px", |
| 21 | "3xl": "1000px", |
| 22 | "4xl": "1180px", |
| 23 | }, |
| 24 | extend: { |
| 25 | animation: { |
| 26 | "spin-slow": "spin 6s linear infinite", |
| 27 | }, |
| 28 | borderRadius: { |
| 29 | default: "5px", |
| 30 | }, |
| 31 | colors: { |
| 32 | lightgray: "#999998", |
| 33 | "vsc-input-background": "var(--vscode-input-background, rgb(45 45 45))", |
| 34 | "vsc-background": "var(--vscode-sideBar-background, rgb(30 30 30))", |
| 35 | "vsc-foreground": "var(--vscode-editor-foreground, #fff)", |
| 36 | "vsc-editor-background": |
| 37 | "var(--vscode-editor-background, var(--vscode-sideBar-background, rgb(30 30 30)))", |
| 38 | "vsc-input-border": "var(--vscode-input-border, #999998)", |
| 39 | "vsc-commandCenter-inactiveBorder": |
| 40 | "var(--vscode-commandCenter-inactiveBorder, #999998)", |
| 41 | |
| 42 | // Starting to make things less vsc-specific |
| 43 | // TODO make it all non-IDE-specific naming |
| 44 | "find-match-selected": |
| 45 | "var(--vscode-editor-findMatchHighlightBackground, rgba(255, 223, 0))", |
| 46 | "list-active": "var(--vscode-list-activeSelectionBackground, #1bbe84)", |
| 47 | "list-active-foreground": |
| 48 | "var(--vscode-quickInputList-focusForeground, var(--vscode-editor-foreground))", |
| 49 | badge: "var(--vscode-badge-background, #1bbe84)", |
| 50 | }, |
| 51 | }, |
| 52 | }, |
| 53 | plugins: [], |
| 54 | corePlugins: { |
| 55 | preflight: false, |
| 56 | }, |
| 57 | }; |