@canopycanopycanopy/b-ber-theme-serif 3.0.8-nav.0 → 3.0.8-next.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md ADDED
@@ -0,0 +1,53 @@
1
+ # AGENTS.md — b-ber-theme-serif
2
+
3
+ ## What This Is
4
+
5
+ A serif-first SCSS theme for b-ber publications. The build pipeline compiles `application.scss` into a stylesheet embedded in EPUB, web, reader, and mobi output. The theme uses `b-ber-theme-mixins` for shared mixins and `modularscale-sass` for typographic scale. All settings variables use `!default` so project-level stylesheets can override them. The `$build` variable gates conditional rules per output format.
6
+
7
+ ## Key Files
8
+
9
+ | File/Directory | Purpose |
10
+ | ----------------------------- | -------------------------------------------------------------- |
11
+ | `application.scss` | Entry point; imports settings, mixins, typography, layout |
12
+ | `_settings.scss` | SCSS variables for colors, fonts, spacing, and layout defaults |
13
+ | `typography/_fonts.scss` | Font-face declarations |
14
+ | `typography/_reset.scss` | Base element reset |
15
+ | `layout/_container.scss` | Page/column container rules |
16
+ | `layout/_figure.scss` | Figure and image layout |
17
+ | `layout/_text.scss` | Paragraph, heading, inline text styles |
18
+ | `layout/_list.scss` | List element styles |
19
+ | `layout/_table.scss` | Table styles |
20
+ | `layout/_media-controls.scss` | Audio/video player controls |
21
+ | `layout/_epub.scss` | EPUB-specific conditional styles |
22
+ | `layout/_web.scss` | Web-specific conditional styles |
23
+ | `layout/_reader.scss` | Reader-specific conditional styles |
24
+ | `layout/_print.scss` | Print/PDF styles |
25
+ | `layout/_helpers.scss` | Utility classes |
26
+ | `fonts/` | Theme font files (empty placeholder in repo) |
27
+ | `images/` | Theme image assets (empty placeholder in repo) |
28
+ | `index.js` | Node entry point for build tooling |
29
+
30
+ ## Dev Commands
31
+
32
+ No test suite. The `test` script exits with an error by default.
33
+
34
+ ```bash
35
+ npm run build:sass # compile application.scss to application.css
36
+ npm run watch:sass # watch and recompile on change
37
+ ```
38
+
39
+ ## Code Standards
40
+
41
+ This package follows the monorepo-wide standards in the root AGENTS.md.
42
+ Additional standards for this package:
43
+
44
+ - SCSS follows BEM-adjacent naming conventions established in `b-ber-theme-mixins`
45
+ - All variable declarations must use `!default` to remain overridable
46
+ - Build-target conditional logic must use the `$build` variable (`epub`, `reader`, `mobi`, `web`)
47
+ - Do not add compiled CSS files (`application.css`) to version control
48
+
49
+ ## Task System
50
+
51
+ Tasks for this package are tracked in tasks/ using the same PRD format as the
52
+ root AGENTS.md. No tasks are currently open. To add a task, create
53
+ tasks/TASK-NNN.open.md following the format in the root AGENTS.md.
package/CLAUDE.md ADDED
@@ -0,0 +1 @@
1
+ @AGENTS.md
package/README.md CHANGED
@@ -1,9 +1,26 @@
1
- # `@canopycanopycanopy/b-ber-theme-serif`
1
+ # b-ber-theme-serif
2
2
 
3
- The `b-ber-theme-serif` package contains a theme written in SCSS for styling projects. The styles maintain consistency in layout across each of b-ber's output formats. More information about b-ber themes can be found in the [Themes](https://github.com/triplecanopy/b-ber/wiki/Themes) page in the b-ber [Wiki](https://github.com/triplecanopy/b-ber/wiki).
3
+ A serif-first SCSS theme for b-ber publications. During a build, b-ber compiles `application.scss` into the stylesheet that is embedded in generated EPUB, web, reader, and mobi output. The theme imports `b-ber-theme-mixins` for shared mixins and `modularscale-sass` for typographic scale calculations. Settings are controlled by SCSS variables in `_settings.scss`; all variables use `!default` so they can be overridden by project-level stylesheets. The `$build` variable gates conditional rules for `epub`, `reader`, `mobi`, and `web` targets.
4
4
 
5
- ## Install
5
+ ## Contents
6
6
 
7
- ```
8
- $ npm i -g @canopycanopycanopy/b-ber-theme-serif
7
+ | Path | Purpose |
8
+ | ------------------ | ----------------------------------------------------------------------------------------------------------------------- |
9
+ | `application.scss` | Entry point; imports settings, mixins, typography, and layout |
10
+ | `_settings.scss` | SCSS variables for colors, fonts, spacing, and layout defaults |
11
+ | `typography/` | `_fonts.scss` (font-face rules), `_reset.scss` (base reset) |
12
+ | `layout/` | Partials for container, figure, text, list, table, media controls, epub/web/reader/print variants, and helper utilities |
13
+ | `fonts/` | Directory for theme font files (empty placeholder in repo) |
14
+ | `images/` | Directory for theme image assets (empty placeholder in repo) |
15
+ | `index.js` | Node entry point (exposes package path for build tooling) |
16
+
17
+ ## Dev
18
+
19
+ No test suite. The `test` script exits with an error by default.
20
+
21
+ To compile the stylesheet locally:
22
+
23
+ ```bash
24
+ npm run build:sass # outputs application.css
25
+ npm run watch:sass # watch mode
9
26
  ```
package/index.js CHANGED
@@ -8,10 +8,10 @@ module.exports = {
8
8
  fonts: (() =>
9
9
  fs
10
10
  .readdirSync(path.join(__dirname, 'fonts'))
11
- .filter(file => /\.(otf|ttf|woff2?|eot)/i.test(path.extname(file))))(),
11
+ .filter((file) => /\.(otf|ttf|woff2?|eot)/i.test(path.extname(file))))(),
12
12
  images: (() =>
13
13
  fs
14
14
  .readdirSync(path.join(__dirname, 'images'))
15
- .filter(file => /\.(jpe?g|png|gif)/i.test(path.extname(file))))(),
15
+ .filter((file) => /\.(jpe?g|png|gif)/i.test(path.extname(file))))(),
16
16
  npmPackage,
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canopycanopycanopy/b-ber-theme-serif",
3
- "version": "3.0.8-nav.0+24db1e6b",
3
+ "version": "3.0.8-next.96+7446845b",
4
4
  "description": "A serif theme for b-ber projects",
5
5
  "main": "index.js",
6
6
  "author": "Triple Canopy <b-ber@canopycanopycanopy.com> (https://triplecanopy.github.io/)",
@@ -29,5 +29,5 @@
29
29
  "devDependencies": {
30
30
  "sass": "^1.49.8"
31
31
  },
32
- "gitHead": "24db1e6bb491faae0d52c6dadc09d974a5a31cf5"
32
+ "gitHead": "7446845bcda4337bfbc9f75b55a1e0ca805023eb"
33
33
  }
package/.eslintrc.js DELETED
@@ -1 +0,0 @@
1
- module.exports = { extends: '../../.eslintrc.js' }