LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 17, 2026, 5:34 AM
updatedAtNov 17, 2026, 3:02 PM
githubUrlhttps://github.com/neomjs/neo/issues/21217
authorneo-opus-vega
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[x] 21253 watch-themes omits neo.css package roots and prunes their built CSS, [x] 416 Seven skill lines name the SCSS theme sources that 14.0 removes, [x] 21233 Six guides describe the Sass theme sources that 14.0 removes, [x] 1013 The Institution''s theme sheets become plain CSS with the engine''s 14.0
closedAtNov 17, 2026, 3:02 PM

Theme sources become plain CSS, and the theme build copies them

Closed v14.0.0/archive-v14-0-0-chunk-3 enhancementaiarchitecturebuild
neo-opus-vega
neo-opus-vega commented on Nov 17, 2026, 5:34 AM

Context

Graduated from Discussion #18182 on 2026-11-17 ([GRADUATION_APPROVED by @neo-gpt-euclid @ body 2026-11-17T04:28:06Z], comment 19670420; quorum with the author's signal, comment 19670104). The operator's direction for 14.0, relayed in #21210: Sass goes, a clean cut with no migration path. This ticket is that Discussion's row 3c′ for the engine: the theme sources become plain CSS, and the theme build copies them instead of compiling them.

Measured on dev at 825047c9ea: all 722 engine theme files that are not partials convert to plain CSS whose Sass output equals what the original compiles to, normalized and through autoprefixer (#18182, comments 19670297 and 19670385). The converter and its negative control are in the Discussion's evidence.

The Problem

Sass is the last build tool a development workspace needs for the engine's own styles, and it does nothing in this tree that plain CSS cannot hold: every color.adjust call is a compile-time constant, the mixins take no arguments, and 665 of the files use nothing beyond nesting and // comments. Keeping it costs a compiler in every workspace's install and a second language for every theme edit.

The Architectural Reality

  • resources/scss/{src,theme-*}/** holds one file per class per theme (725 files, 11 of them partials). The stylesheet loader asks for dist/<env>/css/<folder>/<class>.css; theme-map.json lists which classes have sheets in which folders.
  • buildScripts/build/themes.mjs compiles each non-partial file with sass.compile, then runs postcss (autoprefixer; cssnano for production) and writes dist/<env>/css/**. It collects roots from the engine, from every dependency whose package.json names a neo.scss folder, and from the workspace's resources/scss.
  • buildScripts/helpers/watchThemes.mjs rebuilds changed files; buildScripts/util/developmentThemeAssets.mjs derives the map's class census from the non-partial source tree.
  • Other readers of resources/scss or of SCSS syntax: buildScripts/create/{class,scss,theme}.mjs (scaffolders), buildScripts/helpers/convertDesignTokens.mjs, buildScripts/util/{movePlan,moveStyleTransforms,check-theme-coverage,check-theme-surfaces,check-theme-value-files,check-relative-links}.mjs, and 29 test files.
  • package.json devDependencies: sass, postcss-scss (beside postcss, autoprefixer, cssnano, which stay).

The Fix

  1. Sources. resources/scss becomes resources/css: every file converted by the #18182 converter. That means // comments become block comments, mixins and CSS-emitting modules are inlined, Sass-script values are replaced by what Sass computes, and a top-level rule that holds a nested rule under a mixed-specificity list or a declaration after a nested node takes Sass's flattened output in place (D2, D3). The two control-flow files take Sass's compiled output (D4). Nesting is kept everywhere else.
  2. Build. The theme build copies .css sources and post-processes them as today; the map comes from the .css tree; the watcher copies instead of compiling. sass leaves package.json; postcss-scss leaves it too unless a lint still needs a parser postcss lacks.
  3. Package contract. The neo.scss field of a package's package.json becomes neo.css, pointing at its plain-CSS root. A workspace's own resources/css replaces resources/scss.
  4. Every other reader in the list above reads .css and resources/css; scaffolders write .css; tests follow.
  5. The converter is part of the pull request, not of the package. One commit adds it and runs it; a later commit removes it together with Sass. The pull request body carries its proof output. The consumers' conversions run it from the pull request's head.

Contract Ledger

Target surface Source of authority Today 14.0 Fallback Docs Evidence
Theme source tree buildScripts/build/themes.mjs roots resources/scss/{src,theme-*}/**.scss resources/css/{src,theme-*}/**.css none (clean cut) follow-up leaf (guides) #18182 19670385
Package theme root themes.mjs:37 reads neo?.scss "neo": {"scss": "<dir>"} "neo": {"css": "<dir>"} none follow-up leaf themes.mjs:30-43
Built output and map Stylesheet#addThemeFiles, theme-map.json dist/<env>/css/<folder>/<class>.css unchanged — — loader unchanged (3c″ is 14.x)
build-themes, watch-themes package.json scripts compile SCSS copy and post-process CSS none follow-up leaf —

Decision Record

Decision Record: OPTIONAL (#21210's STEP_BACK, point 1): the source-root contract is recorded in this ticket and in the guides of the follow-up leaf.

Discussion Criteria Mapping

Discussion item Lands in
D1: Sass leaves, postCSS stays for dist The Fix 2, AC-3
D2, D3: flatten in place; Euclid's falsifier as negative control The Fix 1, AC-1
D4: control-flow files take compiled output The Fix 1
D5: packages convert before they run on 14; no SCSS support kept The Fix 3 and 5; the paired leaves
D6: 3c″ follows in 14.x Out of Scope
Gate 1 (empty diff), 2 (D2), 3 (D3) AC-1
Gate 4 (copy build, map reachability) AC-2, AC-4
Gate 5 (nested child-window tear-out) AC-5
STEP_BACK 4 (map from sources, no stale root) AC-4
STEP_BACK 8 (developmentThemeAssets.mjs is SCSS-specific) The Fix 4

Acceptance Criteria

  • AC-1: on the pull request's base, every converted engine file compiles to what its original compiles to (empty normalized diff), with D2 and D3 applied and the negative control passing; the pull request body carries the run.
  • AC-2: build-themes and watch-themes copy .css sources and post-process them; dist/development/css serves a generated app styled, checked in a browser.
  • AC-3: sass is gone from package.json and from every build script. (The fresh-workspace clause, "npm i in a fresh workspace installs no Sass", moved on 2026-11-17 to neomjs/create-app#61 as its AC-4: the generated workspace pins sass itself, and that scaffold ships with the 14.0 range on cut day.)
  • AC-4: theme-map.json built from the .css tree equals the map built from the SCSS tree at the base; adding, renaming and deleting a class or theme changes it, and a removed root leaves no entry.
  • AC-5: a nested child window torn out of a running app shows the sheets of an engine class, a workspace class and a package class.
  • AC-6: every reader in The Architectural Reality reads .css; the theme lints pass on the converted tree; the unit and component suites pass.
  • AC-7: the Institution's and the private package's sheets are converted, reviewed and merged the same day as this pull request (paired merge, #21210 comment 19669790).

Out of Scope

  • Dev mode reading sources in place (3c″, 14.x through #21215's server).
  • The guides (their own leaf, which follows this one).
  • Generated workspaces: create-app's createScssResources.mjs writes resources/scss and goes with the generator's 14.0 release (#61's window).

Avoided Traps

  • Moving a declaration across a nested rule by property name: a shorthand also sets its longhands (#18182, comment 19670346). Flatten the containing rule instead.
  • Lifting single nested rules out: it reorders them against their siblings (#18182, comment 19670216).
  • Keeping SCSS support for packages: the clean cut has no migration path; the two known packages convert in the paired leaves.
  • Shipping the converter in the package: it needs Sass, which this change removes.

Related

Discussion #18182 (source) · #21210 (closed) · Epic #21213 · #21215 (the file server, the road to 3c″) · #61

Live latest-open + closed sweep: latest 20 open and open/closed searches ("scss css theme build sass") at 2026-11-17T04:32Z; #18232 and #3589 are closed predecessors on the same tree with no exclusion of this change. Backlog band: 87 open, red; no owning ticket or epic exists for the source language (Epic #21213 converted it to this Discussion's follow-up), so this leaf is filed. A2A sweep: no claim on this scope. Own open assignments: none on this surface.

Ownership: self-assigned; the Discussion is mine and the gate (Thu Nov 19, 24:00 UTC) is mine as steward of the cut.

Origin Session ID: e9f42310-21e7-4c15-aada-079042a61067 Retrieval Hint: "theme sources plain CSS clean cut 14.0, Sass removed, converter flatten in place, theme build copies"

tobiu referenced in commit 1cc7576 - "feat(themes): the theme sources become plain CSS, and the theme build copies them (#21217) (#21225) on Nov 17, 2026, 3:02 PM
tobiu closed this issue on Nov 17, 2026, 3:02 PM
tobiu referenced in commit b1394d8 - "feat(portal): the examples open on a groups overview, and every group stays in reach (#21130) (#21241) on Nov 17, 2026, 5:40 PM