@pearpages/pulp-css 0.1.2 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pearpages/pulp-css",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "pulp base styles: cascade layers, a reset, and body defaults on top of the tokens. Framework-agnostic; import once per app.",
5
5
  "license": "MIT",
6
6
  "author": "Pere Pages <hello@pearpages.com> (https://pearpages.com)",
@@ -22,12 +22,13 @@
22
22
  "./package.json": "./package.json"
23
23
  },
24
24
  "dependencies": {
25
- "@pearpages/pulp-tokens": "^0.2.0"
25
+ "@pearpages/pulp-tokens": "^0.2.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "publint": "^0.3.24"
29
29
  },
30
30
  "scripts": {
31
- "check:package": "publint"
31
+ "check:package": "publint",
32
+ "test:run": "node --test \"scripts/*.test.mjs\""
32
33
  }
33
34
  }
package/src/base.css CHANGED
@@ -1,3 +1,6 @@
1
+ /* The layer order, restated in every stylesheet pulp ships: layers rank by first appearance, and a bundler may load this file first. */
2
+ @layer reset, tokens, vendor, base, components, utilities;
3
+
1
4
  @layer base {
2
5
  body {
3
6
  background: var(--color-surface-base);
package/src/layers.css CHANGED
@@ -1,5 +1,7 @@
1
1
  /*
2
- * Cascade order for everything pulp ships, declared once and first.
2
+ * Cascade order for everything pulp ships. Layers rank by first appearance and a bundler
3
+ * decides which file loads first, so every other pulp stylesheet (reset, base, tokens.css,
4
+ * each component) restates this exact list before its own block; tests keep the copies equal.
3
5
  * `vendor` is for third-party stylesheets (`@import "…" layer(vendor)`), so they sit
4
6
  * below pulp's own components. Consumers can add their own layers after `utilities`;
5
7
  * an unlayered rule in the app always wins over any of these, which is the intended
package/src/reset.css CHANGED
@@ -1,3 +1,6 @@
1
+ /* The layer order, restated in every stylesheet pulp ships: layers rank by first appearance, and a bundler may load this file first. */
2
+ @layer reset, tokens, vendor, base, components, utilities;
3
+
1
4
  @layer reset {
2
5
  *,
3
6
  *::before,