Skip to content

refactor: remove exported color palettes, DefaultTheme, JiraTheme, and MainFrameStyle from style package#19

Merged
felipeospina21 merged 1 commit into
mainfrom
feat/18-remove-style-exports
Apr 23, 2026
Merged

refactor: remove exported color palettes, DefaultTheme, JiraTheme, and MainFrameStyle from style package#19
felipeospina21 merged 1 commit into
mainfrom
feat/18-remove-style-exports

Conversation

@felipeospina21
Copy link
Copy Markdown
Owner

Closes #18

Changes

  • Deleted style/colors.go — removed ColorShades type and all color palette variables
  • Stripped style/theme.go to only export the Theme struct
  • Removed DefaultTheme(), JiraTheme(), and MainFrameStyle()
  • Created local unexported defaultTheme() in hub/ and all example directories
  • Inlined MainFrameStyle logic where needed (shell/shell.go, layout.go)
  • Updated doc.go, README.md, docs/theming.md, docs/shell.md

Breaking Changes

Consumers that import tuishell/style for palettes or theme constructors will need to:

  1. Define their own color palettes locally
  2. Build their own style.Theme{} instance
  3. Only import tuishell/style for the Theme struct type

…ainFrameStyle

Remove all opinionated exports from the style package so it only
exports the Theme struct. Consumers define their own themes.

- Delete style/colors.go (ColorShades, Blue, Red, Green, Yellow, Violet, Orange, JiraBlue)
- Remove DefaultTheme(), JiraTheme(), MainFrameStyle() from style/theme.go
- Inline MainFrameStyle logic in shell.New() and DefaultLayoutConfig()
- Add local defaultTheme() in hub/, shell/example/, and popover/examples/
- Update doc.go, README.md, and docs/ to not reference removed exports

Closes #18
@felipeospina21 felipeospina21 merged commit 43ef16f into main Apr 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Issues] Remove exported color palettes, DefaultTheme, JiraTheme, and MainFrameStyle from style package

1 participant