• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sebnitu / vrembem / 25566882870
91%
main: 100%

Build:
Build:
LAST BUILD BRANCH: next
DEFAULT BRANCH: main
Ran 08 May 2026 04:28PM UTC
Jobs 1
Files 67
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 May 2026 04:26PM UTC coverage: 90.767%. Remained the same
25566882870

push

github

web-flow
Refactor Sass modules and improve tokens API (#2807)

This PR refactors Sass plugin modules so that they are more tightly coupled to the tokens API and reduce the extra API they provided themselves. Sass plugin modules that expand the tokens module now use hooks and events to apply their features directly to the tokens module.

As part of this update, a new `breakpoints` tokens plugin has been introduced that allows setting media-query based tokens using `tokens.set` by setting a `"type": "breakpoints"` in the provided value map. To match this pattern, `themes` (previously named theme) has been refactored to also handle theme token maps using `"type": "theme"` in the provided value map. All tokens are now output and automatically wrapped with their required selector blocks when `tokens.output()` is called.

**Example usage**

Below is an example of a single `tokens.set` call being used to set normal, breakpoint, and theme tokens:

<details open>
<summary>SCSS Input</summary>

```scss
@use "@vrembem/core/tokens";
@use "@vrembem/core/breakpoints";
@use "@vrembem/core/themes";

@include tokens.set(
  "asdf",
  (
    "margin": 2rem 0,
    "padding": (
      "type": "breakpoints",
      "default": 0,
      "md": 1em,
      "lg": 2em
    ),
    "forest": (
      "type": "theme",
      "background": green,
      "foreground": lightgreen
    )
  )
);

@include tokens.output();
```

</details>

<details>
<summary>CSS Output</summary>

```css
:root {
  --vb-asdf-margin: 2rem 0;
  --vb-asdf-padding: 0;
}

@media (min-width: 760px) {
  :root {
    --vb-asdf-padding: 1em;
  }
}
@media (min-width: 990px) {
  :root {
    --vb-asdf-padding: 2em;
  }
}
.vb-theme-forest {
  --vb-asdf-background: green;
  --vb-asdf-foreground: lightgreen;
}
```

</details>

**Additional Changes**

- `core`: Renamed `theme-prefix` config option to `prefix-themes`.
- `core`: Make config options naming pattern more consistent.
- `core`: Remove breakpoints argument from `tokens.override` mi... (continued)

569 of 651 branches covered (87.4%)

Branch coverage included in aggregate %.

886 of 952 relevant lines covered (93.07%)

32.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25566882870.1 08 May 2026 04:28PM UTC 67
90.77
GitHub Action Run
Source Files on build 25566882870
  • Tree
  • List 67
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25566882870
  • 35250cc9 on github
  • Prev Build on next (#25394352166)
  • Next Build on next (#25709394900)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc