@classic-homes/theme-styles 0.5.0 → 0.5.1

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.
Files changed (2) hide show
  1. package/package.json +8 -2
  2. package/src/index.css +6 -3
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@classic-homes/theme-styles",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Base styles and utilities for the Classic Theme design system",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "build": "echo 'No build needed for styles package'"
7
+ "build": "echo 'No build needed for styles package'",
8
+ "test": "vitest run"
8
9
  },
9
10
  "exports": {
10
11
  ".": "./src/index.css",
@@ -38,5 +39,10 @@
38
39
  "peerDependencies": {
39
40
  "@classic-homes/theme-tokens": "*",
40
41
  "tailwindcss": ">=3.0.0"
42
+ },
43
+ "devDependencies": {
44
+ "postcss": "^8.4.0",
45
+ "postcss-import": "^16.1.1",
46
+ "vitest": "^4.0.0"
41
47
  }
42
48
  }
package/src/index.css CHANGED
@@ -10,12 +10,15 @@
10
10
  * @tailwind utilities;
11
11
  */
12
12
 
13
+ /* Define CSS layer order - lowest to highest specificity. Must come before
14
+ every @import: postcss-import (Vite, PostCSS builds) drops any @import that
15
+ follows a non-import statement, and an @layer statement between imports
16
+ counts as one - that silently removed the tokens and base styles. */
17
+ @layer classic-theme.tokens, classic-theme.base, classic-theme.components, classic-theme.utilities;
18
+
13
19
  /* Brand fonts. Must precede every rule except @layer statements; ./core omits it. */
14
20
  @import './fonts.css';
15
21
 
16
- /* Define CSS layer order - lowest to highest specificity */
17
- @layer classic-theme.tokens, classic-theme.base, classic-theme.components, classic-theme.utilities;
18
-
19
22
  /* Import design tokens (CSS custom properties) */
20
23
  @import '@classic-homes/theme-tokens/css';
21
24