WIP: Export font.scss mixin to library consumers #1

Closed
Copilot wants to merge 5 commits from copilot/fix-font-scss-mixin-access into main
Copilot commented 2026-02-12 12:56:03 +00:00 (Migrated from github.com)

The @mixin material-symbols-rounded in font.scss was not available to library consumers — it was compiled away to CSS during build and the source SCSS was never shipped.

Changes

  • tsup.config.ts: Set format to ESM-only (was ["cjs", "esm"]), added clean: true, added onSuccess to copy font.scss and font assets into dist/
  • package.json: Build script delegates entirely to tsup.config.ts ("build": "tsup"), added "./font.scss" export pointing to ./dist/font.scss

Usage

@use "@chocbite/ts-lib-base/font.scss";

.icon {
  @include font.material-symbols-rounded;
}

Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

The `@mixin material-symbols-rounded` in `font.scss` was not available to library consumers — it was compiled away to CSS during build and the source SCSS was never shipped. ### Changes - **`tsup.config.ts`**: Set format to ESM-only (was `["cjs", "esm"]`), added `clean: true`, added `onSuccess` to copy `font.scss` and font assets into `dist/` - **`package.json`**: Build script delegates entirely to `tsup.config.ts` (`"build": "tsup"`), added `"./font.scss"` export pointing to `./dist/font.scss` ### Usage ```scss @use "@chocbite/ts-lib-base/font.scss"; .icon { @include font.material-symbols-rounded; } ``` <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/chocbite/ts-lib-icons/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo.
Chocolateandmilkwin (Migrated from github.com) reviewed 2026-02-12 12:56:03 +00:00

Pull request closed

Sign in to join this conversation.
No description provided.