emily-css 1.0.25 → 1.0.27

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/CHANGELOG.md CHANGED
@@ -4,236 +4,277 @@ All notable changes to `emily-css` are documented here.
4
4
 
5
5
  ---
6
6
 
7
- ## v1.0.25 — May 2026
8
-
9
- **updaed colour**
10
-
11
- ### Fixed
12
- - change colour on code
13
-
14
- ---
15
- ## v1.0.24 — May 2026
7
+ ## v1.0.27 — May 2026
16
8
 
17
9
  **colour system redesign — brand/accent tokens + semantic colours (v1.0.23)**
18
10
 
19
11
  ### Added
20
12
  - colour system redesign — brand/accent tokens + semantic colours (v1.0.23)
21
13
 
22
- ---
23
- ## v1.0.23 — May 2026
24
-
25
- **Colour system redesign: brand/accent naming + semantic colour tokens**
26
-
27
- ### Changed
28
- - Renamed `primary` colour token to `brand`, `secondary` to `accent` across config, utilities, and showcase
29
- - `btn-primary` and `btn-secondary` are now explicit separate colour tokens (no longer aliases)
30
- - Default config generated by `emily-css init` updated to reflect new naming
31
-
32
- ### Added
33
- - `semanticColours` config key: single-value colour tokens with no shade scale
34
- - `generateSemanticColourUtilities()`: generates `bg-dark`, `text-dark`, `border-dark`, `fill-dark` etc.
35
- - Semantic colour utilities automatically pick up `hover:`, `focus:`, `dark:`, and responsive variants
36
- - Default config includes `dark: "#1A1A1A"` and `light: "#FAFAFA"` as semantic colour examples
37
-
38
- ---
39
-
40
- ## v1.0.22 — May 2026
41
-
42
- **· Improve purge extraction and package robustness tests**
43
-
44
- ---
45
- ## v1.0.21 — May 2026
46
-
47
- **"Include bundled showcase template**
48
-
49
- ---
50
- ## v1.0.20 — May 2026
51
-
52
- **replace folder structure template to tempalates**
53
-
54
- ### Fixed
55
- - replace folder structure template to tempalates
56
-
57
- ---
58
- ## v1.0.19 — May 2026
59
-
60
- **Add framework-aware output paths and bundled showcase template**
61
-
62
- ---
63
- ## v1.0.18 — May 2026
64
-
65
- ****
66
-
67
- ### Changed
68
- - added more utitlies as a code block
69
-
70
- ---
71
- ## v1.0.17 — May 2026
72
-
73
- **added new utilties, and added component patterns**
74
-
75
- ### Added
76
- - added new utilties, and added component patterns
77
-
78
- ---
79
- ## v1.0.16 — May 2026
80
-
81
- **feat: add Round 2 utility set — 156/156 tests passing**
82
-
83
- ### Added
84
- - feat: add Round 2 utility set — 156/156 tests passing
85
-
86
- ---
87
- ## v1.0.15 — May 2026
88
-
89
- **updated readme**
90
-
91
- ---
92
- ## v1.0.14 — May 2026
93
-
94
- **updated readme**
95
-
96
- ### Changed
97
- - updated readme
98
-
99
- ---
100
- ## v1.0.13 — May 2026
101
-
102
- **added functionality to commit to github and then push to npm release**
103
-
104
- ### Added
105
- - added functionality to commit to github and then push to npm release
106
-
107
- ---
108
- ## v1.0.12 — May 2026
109
-
110
- ****
111
-
112
- ---
113
- ## v1.0.11 — May 2026
114
-
115
- ****
116
-
117
- ---
118
- ## v1.0.10 — May 2026
119
-
120
- **Changelog automation**
121
-
122
- ### Added
123
- - Release script (`npm run release`) — reads git log, prompts for version bump, writes CHANGELOG.md, commits and tags automatically
124
-
125
- ---
126
-
127
- ## v1.0.9 — May 2026
128
-
129
- **Showcase server + code block utilities**
130
-
131
- ### Added
132
- - Showcase server — run `npm run emily:showcase` to browse components on localhost:3456
133
- - Code block utilities (`.code-window`, `.token-*`) in generated CSS — VSCode Dark+ style syntax highlighting
134
- - `pre`/`code` base styles added to `@layer base`
135
-
136
- ---
137
-
138
- ## v1.0.8 — May 2026
139
-
140
- **Watch mode + build pipeline**
141
-
142
- ### Added
143
- - Watch mode — `npx emily-css watch` rebuilds CSS automatically on config change
144
- - Build + purge can now be chained in a single pipeline
145
- - npm scripts wired into `package.json` during `npx emily-css init`
146
-
147
14
  ### Changed
148
- - `init.js` provides a more guided setup experience with clearer prompts
149
- - `bin/emilyui.js` updated to correctly route `watch`/`build`/`purge` subcommands
150
-
151
- ---
152
-
153
- ## v1.0.7 — April 2026
154
-
155
- **Purge regex fix**
156
-
157
- ### Fixed
158
- - Purge crashed when class names contained regex metacharacters (`[`, `]`, `(`, `)`, `{`, `}`, etc). Previously only `:` and `.` were escaped — now uses full metacharacter escaping
159
-
160
- ---
161
-
162
- ## v1.0.6 — April 2026
163
-
164
- **Dist + font cleanup**
165
-
166
- ### Changed
167
- - `dist/` and `fonts/` directories removed from git tracking
168
-
169
- ### Breaking changes
170
- - If you were pulling `dist/emily.css` directly from GitHub, run `npx emily-css build` locally instead
171
-
172
- ---
173
-
174
- ## v1.0.5 — April 2026
175
-
176
- **Split font system**
177
-
178
- ### Added
179
- - Separate heading and body font config — `fontFamily.heading` and `fontFamily.body` are now independent
180
- - Google Fonts CDN integration — fonts loaded via `@import` in generated CSS
181
- - Font-specific tests added to test suite
182
-
183
- ### Changed
184
- - Bundled font files removed from the npm package
185
- - `emily.config.json` updated with split `fontFamily` structure
186
-
187
- ### Breaking changes
188
- - If your config has `fontFamily` as a single string, update it to `{ "heading": "...", "body": "..." }`
189
-
190
- ---
191
-
192
- ## v1.0.3 — April 2026
193
-
194
- **Package size reduction**
195
-
196
- ### Changed
197
- - Demo CSS removed from the published npm package
198
-
199
- ---
200
-
201
- ## v1.0.2 — April 2026
202
-
203
- **Package distribution fix**
204
-
205
- ### Added
206
- - `.npmignore` added — controls which files are included in the published package
207
- - `dist` files explicitly declared in `package.json` `files` array
208
-
209
- ### Fixed
210
- - Unnecessary files (tests, src, docs) were being included in the npm tarball
211
-
212
- ---
213
-
214
- ## v1.0.1 — April 2026
215
-
216
- **CLI rename fix**
217
-
218
- ### Fixed
219
- - Internal references to old `emily-ui` CLI name updated to `emily-css`
220
-
221
- ### Breaking changes
222
- - If you had scripts referencing `npx emily-ui`, update them to `npx emily-css`
223
-
224
- ---
225
-
226
- ## v1.0.0 — April 2026
227
-
228
- **Initial release**
229
-
230
- ### Added
231
- - 11,844 utility classes generated from `emily.config.json`
232
- - OKLCH colour scale generation — one hex in, 10-shade scale out
233
- - Responsive variants (`sm:` `md:` `lg:` `xl:` `2xl:`)
234
- - State variants (`hover:` `focus-visible:` `active:` `disabled:` `dark:`)
235
- - Purge system — strips unused classes, ~97% file size reduction
236
- - Interactive setup wizard (`npx emily-css init`)
237
- - 72 tests, all passing
15
+ - updated utilties and new showcase
238
16
 
239
17
  ---
18
+ # Changelog
19
+
20
+ All notable changes to `emily-css` are documented here.
21
+
22
+ ---
23
+
24
+ ## v1.0.26 — May 2026
25
+
26
+ **Expand utility coverage and typography scale**
27
+
28
+ ### Added
29
+ - Expand utility coverage and typography scale
30
+
31
+ ---
32
+ ## v1.0.26 — May 2026
33
+
34
+ **Colour utilities now variable-based; fix grey text on dark surfaces**
35
+
36
+ ### Fixed
37
+ - `generateColourUtilities` now emits `var(--color-*)` references instead of hardcoded hex values for all `text-*`, `bg-*`, `border-*`, and `accent-*` utilities. Consistent with how semantic colours and ring/fill/stroke utilities already worked. Enables theme-layer overrides without specificity hacks.
38
+ - Homepage "How it works" cards: `text-neutral-80` / `text-neutral-40` on `bg-dark` produced near-invisible text in light mode (contrast ~2.3:1). Fixed to `text-neutral-10` / `text-neutral-30` — matches the pattern used by the hero and CTA banner.
39
+ - Removed erroneous backslash in `h-2\.5` HTML class strings in `index.vue` (rendered fine via Vue template compilation, but confusing and inconsistent).
40
+ - Stripped null bytes from `pages/index.vue` (6) and `package.json` (339) in `emilyui-site`.
41
+
42
+ ### Changed
43
+ - `tests/test.js`: updated `accent-brand-80` assertion to expect `var(--color-brand-80)` rather than hardcoded hex, matching the new generation behaviour.
44
+
45
+ ---
46
+
47
+ ## v1.0.25 — May 2026
48
+
49
+ **updaed colour**
50
+
51
+ ### Fixed
52
+ - change colour on code
53
+
54
+ ---
55
+ ## v1.0.24 — May 2026
56
+
57
+ **colour system redesign — brand/accent tokens + semantic colours (v1.0.23)**
58
+
59
+ ### Added
60
+ - colour system redesign — brand/accent tokens + semantic colours (v1.0.23)
61
+
62
+ ---
63
+ ## v1.0.23 — May 2026
64
+
65
+ **Colour system redesign: brand/accent naming + semantic colour tokens**
66
+
67
+ ### Changed
68
+ - Renamed `primary` colour token to `brand`, `secondary` to `accent` across config, utilities, and showcase
69
+ - `btn-primary` and `btn-secondary` are now explicit separate colour tokens (no longer aliases)
70
+ - Default config generated by `emily-css init` updated to reflect new naming
71
+
72
+ ### Added
73
+ - `semanticColours` config key: single-value colour tokens with no shade scale
74
+ - `generateSemanticColourUtilities()`: generates `bg-dark`, `text-dark`, `border-dark`, `fill-dark` etc.
75
+ - Semantic colour utilities automatically pick up `hover:`, `focus:`, `dark:`, and responsive variants
76
+ - Default config includes `dark: "#1A1A1A"` and `light: "#FAFAFA"` as semantic colour examples
77
+
78
+ ---
79
+
80
+
81
+ ## v1.0.22 — May 2026
82
+
83
+ **· Improve purge extraction and package robustness tests**
84
+
85
+ ---
86
+ ## v1.0.21 — May 2026
87
+
88
+ **"Include bundled showcase template**
89
+
90
+ ---
91
+ ## v1.0.20 — May 2026
92
+
93
+ **replace folder structure template to tempalates**
94
+
95
+ ### Fixed
96
+ - replace folder structure template to tempalates
97
+
98
+ ---
99
+ ## v1.0.19 — May 2026
100
+
101
+ **Add framework-aware output paths and bundled showcase template**
102
+
103
+ ---
104
+ ## v1.0.18 — May 2026
105
+
106
+ ****
107
+
108
+ ### Changed
109
+ - added more utitlies as a code block
110
+
111
+ ---
112
+ ## v1.0.17 — May 2026
113
+
114
+ **added new utilties, and added component patterns**
115
+
116
+ ### Added
117
+ - added new utilties, and added component patterns
118
+
119
+ ---
120
+ ## v1.0.16 — May 2026
121
+
122
+ **feat: add Round 2 utility set — 156/156 tests passing**
123
+
124
+ ### Added
125
+ - feat: add Round 2 utility set — 156/156 tests passing
126
+
127
+ ---
128
+ ## v1.0.15 — May 2026
129
+
130
+ **updated readme**
131
+
132
+ ---
133
+ ## v1.0.14 — May 2026
134
+
135
+ **updated readme**
136
+
137
+ ### Changed
138
+ - updated readme
139
+
140
+ ---
141
+ ## v1.0.13 — May 2026
142
+
143
+ **added functionality to commit to github and then push to npm release**
144
+
145
+ ### Added
146
+ - added functionality to commit to github and then push to npm release
147
+
148
+ ---
149
+ ## v1.0.12 — May 2026
150
+
151
+ ****
152
+
153
+ ---
154
+ ## v1.0.11 — May 2026
155
+
156
+ ****
157
+
158
+ ---
159
+ ## v1.0.10 — May 2026
160
+
161
+ **Changelog automation**
162
+
163
+ ### Added
164
+ - Release script (`npm run release`) — reads git log, prompts for version bump, writes CHANGELOG.md, commits and tags automatically
165
+
166
+ ---
167
+
168
+ ## v1.0.9 — May 2026
169
+
170
+ **Showcase server + code block utilities**
171
+
172
+ ### Added
173
+ - Showcase server — run `npm run emily:showcase` to browse components on localhost:3456
174
+ - Code block utilities (`.code-window`, `.token-*`) in generated CSS — VSCode Dark+ style syntax highlighting
175
+ - `pre`/`code` base styles added to `@layer base`
176
+
177
+ ---
178
+
179
+ ## v1.0.8 — May 2026
180
+
181
+ **Watch mode + build pipeline**
182
+
183
+ ### Added
184
+ - Watch mode — `npx emily-css watch` rebuilds CSS automatically on config change
185
+ - Build + purge can now be chained in a single pipeline
186
+ - npm scripts wired into `package.json` during `npx emily-css init`
187
+
188
+ ### Changed
189
+ - `init.js` provides a more guided setup experience with clearer prompts
190
+ - `bin/emilyui.js` updated to correctly route `watch`/`build`/`purge` subcommands
191
+
192
+ ---
193
+
194
+ ## v1.0.7 — April 2026
195
+
196
+ **Purge regex fix**
197
+
198
+ ### Fixed
199
+ - Purge crashed when class names contained regex metacharacters (`[`, `]`, `(`, `)`, `{`, `}`, etc). Previously only `:` and `.` were escaped — now uses full metacharacter escaping
200
+
201
+ ---
202
+
203
+ ## v1.0.6 — April 2026
204
+
205
+ **Dist + font cleanup**
206
+
207
+ ### Changed
208
+ - `dist/` and `fonts/` directories removed from git tracking
209
+
210
+ ### Breaking changes
211
+ - If you were pulling `dist/emily.css` directly from GitHub, run `npx emily-css build` locally instead
212
+
213
+ ---
214
+
215
+ ## v1.0.5 — April 2026
216
+
217
+ **Split font system**
218
+
219
+ ### Added
220
+ - Separate heading and body font config — `fontFamily.heading` and `fontFamily.body` are now independent
221
+ - Google Fonts CDN integration — fonts loaded via `@import` in generated CSS
222
+ - Font-specific tests added to test suite
223
+
224
+ ### Changed
225
+ - Bundled font files removed from the npm package
226
+ - `emily.config.json` updated with split `fontFamily` structure
227
+
228
+ ### Breaking changes
229
+ - If your config has `fontFamily` as a single string, update it to `{ "heading": "...", "body": "..." }`
230
+
231
+ ---
232
+
233
+ ## v1.0.3 — April 2026
234
+
235
+ **Package size reduction**
236
+
237
+ ### Changed
238
+ - Demo CSS removed from the published npm package
239
+
240
+ ---
241
+
242
+ ## v1.0.2 — April 2026
243
+
244
+ **Package distribution fix**
245
+
246
+ ### Added
247
+ - `.npmignore` added — controls which files are included in the published package
248
+ - `dist` files explicitly declared in `package.json` `files` array
249
+
250
+ ### Fixed
251
+ - Unnecessary files (tests, src, docs) were being included in the npm tarball
252
+
253
+ ---
254
+
255
+ ## v1.0.1 — April 2026
256
+
257
+ **CLI rename fix**
258
+
259
+ ### Fixed
260
+ - Internal references to old `emily-ui` CLI name updated to `emily-css`
261
+
262
+ ### Breaking changes
263
+ - If you had scripts referencing `npx emily-ui`, update them to `npx emily-css`
264
+
265
+ ---
266
+
267
+ ## v1.0.0 — April 2026
268
+
269
+ **Initial release**
270
+
271
+ ### Added
272
+ - 11,844 utility classes generated from `emily.config.json`
273
+ - OKLCH colour scale generation — one hex in, 10-shade scale out
274
+ - Responsive variants (`sm:` `md:` `lg:` `xl:` `2xl:`)
275
+ - State variants (`hover:` `focus-visible:` `active:` `disabled:` `dark:`)
276
+ - Purge system — strips unused classes, ~97% file size reduction
277
+ - Interactive setup wizard (`npx emily-css init`)
278
+ - 72 tests, all passing
279
+
280
+ ---
package/package.json CHANGED
@@ -1,59 +1,59 @@
1
- {
2
- "name": "emily-css",
3
- "version": "1.0.25",
4
- "description": "A config-driven utility CSS framework. Define your brand once, generate the CSS.",
5
- "main": "src/index.js",
6
- "bin": {
7
- "emily-css": "bin/emilyui.js"
8
- },
9
- "files": [
10
- "bin/",
11
- "src/",
12
- "templates/",
13
- "README.md",
14
- "LICENSE",
15
- "CHANGELOG.md"
16
- ],
17
- "scripts": {
18
- "build": "node src/index.js",
19
- "dev": "nodemon src/index.js",
20
- "dev:full": "nodemon src/index.js -- --keep-full",
21
- "init": "node src/init.js",
22
- "test": "node tests/test.js",
23
- "emily:showcase": "node src/showcase.js",
24
- "commit": "node scripts/commit.js",
25
- "release": "node scripts/release.js",
26
- "ship": "node scripts/ship.js",
27
- "emily:build": "emily-css build",
28
- "emily:watch": "emily-css watch",
29
- "emily:help": "emily-css help"
30
- },
31
- "keywords": [
32
- "css",
33
- "design-system",
34
- "components",
35
- "config-driven",
36
- "utility-css",
37
- "accessibility",
38
- "drupal",
39
- "legacy",
40
- "no-build-step"
41
- ],
42
- "author": "Andy Terry",
43
- "license": "MIT",
44
- "engines": {
45
- "node": ">=16.0.0"
46
- },
47
- "devDependencies": {
48
- "nodemon": "^3.0.0"
49
- },
50
- "dependencies": {
51
- "boxen": "^5.1.2",
52
- "chalk": "^4.1.2",
53
- "chokidar": "^5.0.0",
54
- "cross-spawn": "^7.0.6",
55
- "enquirer": "^2.4.1",
56
- "fast-glob": "^3.3.3",
57
- "ora": "^5.4.1"
58
- }
59
- }
1
+ {
2
+ "name": "emily-css",
3
+ "version": "1.0.27",
4
+ "description": "A config-driven utility CSS framework. Define your brand once, generate the CSS.",
5
+ "main": "src/index.js",
6
+ "bin": {
7
+ "emily-css": "bin/emilyui.js"
8
+ },
9
+ "files": [
10
+ "bin/",
11
+ "src/",
12
+ "templates/",
13
+ "README.md",
14
+ "LICENSE",
15
+ "CHANGELOG.md"
16
+ ],
17
+ "scripts": {
18
+ "build": "node src/index.js",
19
+ "dev": "nodemon src/index.js",
20
+ "dev:full": "nodemon src/index.js -- --keep-full",
21
+ "init": "node src/init.js",
22
+ "test": "node tests/test.js",
23
+ "emily:showcase": "node src/showcase.js",
24
+ "commit": "node scripts/commit.js",
25
+ "release": "node scripts/release.js",
26
+ "ship": "node scripts/ship.js",
27
+ "emily:build": "emily-css build",
28
+ "emily:watch": "emily-css watch",
29
+ "emily:help": "emily-css help"
30
+ },
31
+ "keywords": [
32
+ "css",
33
+ "design-system",
34
+ "components",
35
+ "config-driven",
36
+ "utility-css",
37
+ "accessibility",
38
+ "drupal",
39
+ "legacy",
40
+ "no-build-step"
41
+ ],
42
+ "author": "Andy Terry",
43
+ "license": "MIT",
44
+ "engines": {
45
+ "node": ">=16.0.0"
46
+ },
47
+ "devDependencies": {
48
+ "nodemon": "^3.0.0"
49
+ },
50
+ "dependencies": {
51
+ "boxen": "^5.1.2",
52
+ "chalk": "^4.1.2",
53
+ "chokidar": "^5.0.0",
54
+ "cross-spawn": "^7.0.6",
55
+ "enquirer": "^2.4.1",
56
+ "fast-glob": "^3.3.3",
57
+ "ora": "^5.4.1"
58
+ }
59
+ }