LearnNewsExamplesServices
Frontmatter
id8021
titleRefactor AgentOS SCSS: Split Source and Variables
stateClosed
labels
enhancementdesignairefactoring
assigneestobiu
createdAtDec 4, 2025, 4:36 AM
updatedAtDec 4, 2025, 2:20 PM
githubUrlhttps://github.com/neomjs/neo/issues/8021
authortobiu
commentsCount1
parentIssue7918
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 4, 2025, 2:20 PM

Refactor AgentOS SCSS: Split Source and Variables

Closed v11.16.0 enhancementdesignairefactoring
tobiu
tobiu commented on Dec 4, 2025, 4:36 AM

Split the monolithic Viewport.scss into separate files for variables (_variables.scss) and source styles (_src.scss). This improves maintainability and allows for easier theme customization.

tobiu added the enhancement label on Dec 4, 2025, 4:36 AM
tobiu added the design label on Dec 4, 2025, 4:36 AM
tobiu added the ai label on Dec 4, 2025, 4:36 AM
tobiu added the refactoring label on Dec 4, 2025, 4:36 AM
tobiu added parent issue #7918 on Dec 4, 2025, 4:45 AM
tobiu assigned to @tobiu on Dec 4, 2025, 2:01 PM
tobiu referenced in commit 04298e7 - "Refactor AgentOS SCSS: Split Source and Variables #8021" on Dec 4, 2025, 2:19 PM
tobiu
tobiu Dec 4, 2025, 2:20 PM

Input from Gemini 2.5 pro:

✦ I have successfully refactored the AgentOS SCSS architecture to support Neo.mjs's nested theming system.

Changes Implemented:

  1. Refactored Source Styles:

    • Modified resources/scss/src/apps/agentos/Viewport.scss to contain only the structural CSS rules, removing all hardcoded variable definitions.
  2. Created Theme-Specific Variable Files:

    • Created resources/scss/theme-dark/apps/agentos/Viewport.scss containing the original dark mode variables.
    • Created resources/scss/theme-light/apps/agentos/Viewport.scss with an inverted light color palette (GitHub Light style).
    • Created resources/scss/theme-neo-light/apps/agentos/Viewport.scss to ensure compatibility with the neo-light theme.

Correction to Ticket Scope: The original ticket description implied a simple split, but proper support required implementing the variable files for all supported themes (dark, light, neo-light) to ensure that switching themes or nesting themes works correctly without missing variables.

tobiu closed this issue on Dec 4, 2025, 2:20 PM