Files
goose/STYLING_FIXED.md
spencrmartin 0223f4cd61 fix(lint): remove unused variables and imports
- Remove unused setIsGoosehintsModalOpen parameter in AppLayout
- Add eslint-disable comments for insights and error in SessionsInsights
- Remove unused TabsList and TabsTrigger imports in SettingsView
2025-11-06 12:59:50 -05:00

4.2 KiB

🎨 Code Editor Styling Fixed!

What I Just Fixed:

1. SimpleCodeInput Styling

Updated to match RichChatInput's code block style:

  • Same background: bg-[#1E1E1E]/30 (semi-transparent dark)
  • Same border: border-gray-700/50 (subtle gray)
  • Same text color: text-gray-200 (#e5e7eb)
  • Same font: Monaco, Menlo, etc.
  • Same font size: 0.875rem (14px)
  • Same line height: 1.5
  • Matching language badge with icon

2. Monaco Editor Styling

Updated CSS to ensure Monaco matches:

  • Transparent background (shows through to container)
  • Text color: #e5e7eb (light gray, easy to read)
  • Scrollbar styling matches app theme
  • Better contrast for dark theme
  • Smooth scrolling enabled

3. Consistent Visual Design

Both editors now look like the existing code blocks in RichChatInput:

  • Same container styling
  • Same language badge design
  • Same color scheme
  • Same typography

🎨 Visual Comparison:

Before (Hard to Read):

┌─────────────────────────────────┐
│ python (Simple editor...)       │ ← Different style
├─────────────────────────────────┤
│ def hello():                    │ ← Dark text on dark bg
│     print("Hi")                 │ ← Hard to see!
└─────────────────────────────────┘

After (Easy to Read):

┌─────────────────────────────────┐
│ <> python                       │ ← Matching badge
├─────────────────────────────────┤
│ def hello():                    │ ← Light gray text
│     print("Hi")                 │ ← Easy to read!
└─────────────────────────────────┘

🎯 What Changed:

SimpleCodeInput.tsx:

  • Removed old header bar
  • Added language badge matching RichChatInput
  • Updated container to match code block styling
  • Changed text color to #e5e7eb (light gray)
  • Made background transparent
  • Added proper placeholder text

main.css:

  • Updated .monaco-code-input-wrapper background
  • Added Monaco-specific text color overrides
  • Styled Monaco scrollbars to match app
  • Ensured transparent background for Monaco editor

MonacoCodeInput.tsx:

  • Added better theme options
  • Enabled smooth scrolling
  • Improved contrast settings

📊 Color Reference:

Element Color Hex Purpose
Background bg-[#1E1E1E]/30 rgba(30,30,30,0.3) Semi-transparent dark
Border border-gray-700/50 rgba(55,65,81,0.5) Subtle outline
Text text-gray-200 #e5e7eb Light, readable
Badge BG bg-gray-800 #1f2937 Language badge
Badge Text text-gray-300 #d1d5db Badge label

🚀 Try It Now:

  1. Restart the app
  2. Type: #python
  3. See: Much better styling!
    • Light gray text (easy to read)
    • Matching design with rest of app
    • Professional look

Both Editors Now Match:

SimpleCodeInput (Fallback):

  • Same background color
  • Same text color
  • Same border style
  • Same font and size
  • Matching language badge

Monaco Editor (Full IDE):

  • Same container styling
  • Readable text colors
  • Syntax highlighting (bonus!)
  • Matching scrollbars
  • Matching language badge

🎨 Design Consistency:

The code editor now looks like a natural part of your chat input, matching:

  • The existing code block styling in messages
  • The app's dark theme
  • The typography choices (Cash Sans Mono)
  • The color palette (grays and subtle borders)

💡 What You'll Notice:

  1. Better Readability: Light gray text on semi-transparent dark background
  2. Consistent Design: Looks like it belongs in the app
  3. Professional Look: Matches the polish of the rest of the UI
  4. Clear Hierarchy: Language badge clearly shows what you're editing

Ready to see the improvement? Restart and try #python again! 🎨

The text should be much easier to read now!