css-is-awesome 1.1.0
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 +343 -0
- package/CHANGELOG.md +1036 -0
- package/CLAUDE.md +9 -0
- package/CONTRACT.md +580 -0
- package/GEMINI.md +9 -0
- package/LICENSE +21 -0
- package/LICENSE-third-party +88 -0
- package/MIGRATION.md +312 -0
- package/README.md +380 -0
- package/ROADMAP.md +714 -0
- package/THEMING.md +290 -0
- package/THREE-TIERS.md +158 -0
- package/VERSIONING.md +200 -0
- package/_index.scss +34 -0
- package/api.scss +16 -0
- package/bin/README.md +57 -0
- package/bin/cia.cjs +114 -0
- package/bin/migrate-bootstrap.cjs +427 -0
- package/bin/migrate-tailwind.cjs +832 -0
- package/css-is-awesome.instructions.md +533 -0
- package/dist/css-is-awesome.core.css +598 -0
- package/dist/css-is-awesome.core.min.css +1 -0
- package/dist/css-is-awesome.css +3733 -0
- package/dist/css-is-awesome.min.css +1 -0
- package/dist/css-is-awesome.utilities.css +2445 -0
- package/dist/css-is-awesome.utilities.min.css +1 -0
- package/dist/tokens.css +508 -0
- package/dist/tokens.d.ts +266 -0
- package/dist/tokens.min.css +1 -0
- package/figma-tokens/README.md +57 -0
- package/figma-tokens/primitives-brand.scss +121 -0
- package/figma-tokens/semantic-dark.scss +61 -0
- package/figma-tokens/semantic-light.scss +61 -0
- package/figma-tokens/tokens.json +144 -0
- package/llm.txt +183 -0
- package/mcp/server.cjs +1495 -0
- package/package.json +199 -0
- package/public/icons/README.md +278 -0
- package/public/icons/arrow-right.svg +4 -0
- package/public/icons/check.svg +4 -0
- package/public/icons/chevron-down.svg +4 -0
- package/public/icons/close.svg +4 -0
- package/public/icons/core/arrow-down.svg +13 -0
- package/public/icons/core/arrow-left.svg +13 -0
- package/public/icons/core/arrow-right.svg +13 -0
- package/public/icons/core/arrow-up.svg +13 -0
- package/public/icons/core/bell.svg +13 -0
- package/public/icons/core/calendar.svg +15 -0
- package/public/icons/core/check.svg +12 -0
- package/public/icons/core/chevron-down.svg +12 -0
- package/public/icons/core/chevron-left.svg +12 -0
- package/public/icons/core/chevron-right.svg +12 -0
- package/public/icons/core/chevron-up.svg +12 -0
- package/public/icons/core/clock.svg +13 -0
- package/public/icons/core/close.svg +13 -0
- package/public/icons/core/copy.svg +13 -0
- package/public/icons/core/download.svg +14 -0
- package/public/icons/core/edit.svg +13 -0
- package/public/icons/core/error.svg +14 -0
- package/public/icons/core/external-link.svg +14 -0
- package/public/icons/core/eye-off.svg +15 -0
- package/public/icons/core/eye.svg +13 -0
- package/public/icons/core/filter.svg +12 -0
- package/public/icons/core/heart.svg +12 -0
- package/public/icons/core/help.svg +14 -0
- package/public/icons/core/home.svg +13 -0
- package/public/icons/core/info.svg +14 -0
- package/public/icons/core/loading.svg +12 -0
- package/public/icons/core/lock.svg +13 -0
- package/public/icons/core/mail.svg +13 -0
- package/public/icons/core/menu.svg +14 -0
- package/public/icons/core/message.svg +12 -0
- package/public/icons/core/minus.svg +12 -0
- package/public/icons/core/more-horizontal.svg +14 -0
- package/public/icons/core/pause.svg +13 -0
- package/public/icons/core/play.svg +12 -0
- package/public/icons/core/plus.svg +13 -0
- package/public/icons/core/refresh.svg +15 -0
- package/public/icons/core/save.svg +14 -0
- package/public/icons/core/search.svg +13 -0
- package/public/icons/core/settings.svg +13 -0
- package/public/icons/core/share.svg +14 -0
- package/public/icons/core/sort.svg +15 -0
- package/public/icons/core/star.svg +12 -0
- package/public/icons/core/success.svg +13 -0
- package/public/icons/core/trash.svg +16 -0
- package/public/icons/core/unlock.svg +13 -0
- package/public/icons/core/upload.svg +14 -0
- package/public/icons/core/user.svg +13 -0
- package/public/icons/core/users.svg +15 -0
- package/public/icons/core/warning.svg +14 -0
- package/public/icons/download.svg +4 -0
- package/public/icons/edit.svg +4 -0
- package/public/icons/menu.svg +4 -0
- package/public/icons/search.svg +4 -0
- package/public/theme.css +4179 -0
- package/public/themes/README.md +102 -0
- package/public/themes/boilerplate/theme.css +154 -0
- package/public/themes/boilerplate-dark/theme.css +171 -0
- package/public/themes/boilerplate-light/theme.css +171 -0
- package/public/themes/cupertino/theme.css +165 -0
- package/public/themes/cupertino-dark/theme.css +200 -0
- package/public/themes/cupertino-light/theme.css +227 -0
- package/public/themes/glass/theme.css +190 -0
- package/public/themes/glass-dark/theme.css +201 -0
- package/public/themes/glass-light/theme.css +229 -0
- package/public/themes/graphite/theme.css +155 -0
- package/public/themes/graphite-dark/theme.css +223 -0
- package/public/themes/graphite-light/theme.css +191 -0
- package/public/themes/press/theme.css +189 -0
- package/public/themes/press-dark/theme.css +199 -0
- package/public/themes/press-light/theme.css +235 -0
- package/public/themes/prism/theme.css +159 -0
- package/public/themes/prism-dark/theme.css +185 -0
- package/public/themes/prism-light/theme.css +188 -0
- package/public/themes/sketchbook/theme.css +152 -0
- package/public/themes/sketchbook-dark/theme.css +194 -0
- package/public/themes/sketchbook-light/theme.css +188 -0
- package/public/themes/terminal/theme.css +159 -0
- package/public/themes/terminal-dark/theme.css +229 -0
- package/public/themes/terminal-light/theme.css +152 -0
- package/scripts/README.md +70 -0
- package/scripts/icon-contract.json +67 -0
- package/scripts/icon-validator.js +205 -0
- package/scripts/prepare-dist.mjs +65 -0
- package/scripts/theme-a11y.js +415 -0
- package/scripts/theme-contract.json +171 -0
- package/scripts/theme-validator.js +674 -0
- package/scss/README.md +55 -0
- package/scss/_animations-utilities.scss +107 -0
- package/scss/_animations.scss +248 -0
- package/scss/_app-styles.scss +15 -0
- package/scss/_generator.scss +174 -0
- package/scss/_icons.scss +475 -0
- package/scss/_index.scss +17 -0
- package/scss/_layout.scss +597 -0
- package/scss/_mixins.scss +1036 -0
- package/scss/_system.scss +291 -0
- package/scss/_utilities.scss +377 -0
- package/scss/api.scss +61 -0
- package/scss/components/_accordion.scss +72 -0
- package/scss/components/_buttons.scss +171 -0
- package/scss/components/_copy-button.scss +69 -0
- package/scss/components/_data.scss +190 -0
- package/scss/components/_feedback.scss +197 -0
- package/scss/components/_forms.scss +272 -0
- package/scss/components/_index.scss +17 -0
- package/scss/components/_navigation.scss +186 -0
- package/scss/components/_overlay.scss +259 -0
- package/scss/components/_stepper.scss +159 -0
- package/scss/components/_tabs.scss +72 -0
- package/scss/core.scss +54 -0
- package/scss/examples/_theming.scss +107 -0
- package/scss/examples/_usage.scss +317 -0
- package/scss/main.scss +64 -0
- package/scss/recipes/README.md +110 -0
- package/scss/recipes/_bare-tags.scss +232 -0
- package/scss/recipes/_recipe-template.md +119 -0
- package/scss/recipes/combobox.md +509 -0
- package/scss/recipes/dialog.md +265 -0
- package/scss/recipes/print-to-pdf.md +263 -0
- package/scss/theme/README.md +67 -0
- package/scss/theme/_brand.scss +18 -0
- package/scss/theme/_colors-dark.scss +68 -0
- package/scss/theme/_colors-light.scss +70 -0
- package/scss/theme/_components.scss +94 -0
- package/scss/theme/_icons.scss +104 -0
- package/scss/theme/_index.scss +62 -0
- package/scss/theme/_shadows.scss +65 -0
- package/scss/theme/_shape.scss +13 -0
- package/scss/theme/_typography.scss +9 -0
- package/scss/theme/registry.json +447 -0
- package/scss/themes/boilerplate-dark.scss +212 -0
- package/scss/themes/boilerplate-light.scss +209 -0
- package/scss/themes/boilerplate.scss +181 -0
- package/scss/themes/cupertino-dark.scss +238 -0
- package/scss/themes/cupertino-light.scss +266 -0
- package/scss/themes/cupertino.scss +194 -0
- package/scss/themes/glass-dark.scss +238 -0
- package/scss/themes/glass-light.scss +266 -0
- package/scss/themes/glass.scss +220 -0
- package/scss/themes/graphite-dark.scss +260 -0
- package/scss/themes/graphite-light.scss +228 -0
- package/scss/themes/graphite.scss +182 -0
- package/scss/themes/press-dark.scss +237 -0
- package/scss/themes/press-light.scss +273 -0
- package/scss/themes/press.scss +241 -0
- package/scss/themes/prism-dark.scss +217 -0
- package/scss/themes/prism-light.scss +220 -0
- package/scss/themes/prism.scss +190 -0
- package/scss/themes/sketchbook-dark.scss +231 -0
- package/scss/themes/sketchbook-light.scss +231 -0
- package/scss/themes/sketchbook.scss +178 -0
- package/scss/themes/terminal-dark.scss +267 -0
- package/scss/themes/terminal-light.scss +175 -0
- package/scss/themes/terminal.scss +185 -0
- package/scss/tokens.scss +23 -0
- package/scss/utilities-only.scss +4 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Third-Party Licenses
|
|
2
|
+
====================
|
|
3
|
+
|
|
4
|
+
This project bundles or references third-party assets. Each entry below
|
|
5
|
+
identifies the asset, where it lives in the repo, the upstream source,
|
|
6
|
+
and the original license. css-is-awesome itself is MIT (see LICENSE).
|
|
7
|
+
|
|
8
|
+
----------------------------------------------------------------------
|
|
9
|
+
Lucide — default `core` icon pack
|
|
10
|
+
----------------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
Vendored at: public/icons/core/
|
|
13
|
+
|
|
14
|
+
Upstream: https://lucide.dev
|
|
15
|
+
https://github.com/lucide-icons/lucide
|
|
16
|
+
npm: lucide-static
|
|
17
|
+
|
|
18
|
+
The Lucide project is dual-licensed. The bulk of the icon set is
|
|
19
|
+
distributed under the ISC License. A subset of icons is derived from
|
|
20
|
+
the Feather project and is distributed under the MIT License.
|
|
21
|
+
|
|
22
|
+
Both notices, reproduced verbatim from `node_modules/lucide-static/LICENSE`,
|
|
23
|
+
follow.
|
|
24
|
+
|
|
25
|
+
ISC License
|
|
26
|
+
-----------
|
|
27
|
+
|
|
28
|
+
Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022
|
|
29
|
+
as part of Feather (MIT). All other copyright (c) for Lucide are held
|
|
30
|
+
by Lucide Contributors 2022.
|
|
31
|
+
|
|
32
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
33
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
34
|
+
copyright notice and this permission notice appear in all copies.
|
|
35
|
+
|
|
36
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
37
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
38
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
39
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
40
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
41
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
42
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
43
|
+
|
|
44
|
+
MIT License (Feather-derived icons)
|
|
45
|
+
-----------------------------------
|
|
46
|
+
|
|
47
|
+
The following Lucide icons are derived from the Feather project and
|
|
48
|
+
distributed under the MIT License:
|
|
49
|
+
|
|
50
|
+
airplay, alert-circle, alert-octagon, alert-triangle, aperture,
|
|
51
|
+
arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down,
|
|
52
|
+
arrow-left-circle, arrow-left, arrow-right-circle, arrow-right,
|
|
53
|
+
arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign,
|
|
54
|
+
calendar, cast, check, chevron-down, chevron-left, chevron-right,
|
|
55
|
+
chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up,
|
|
56
|
+
circle, clipboard, clock, code, columns, command, compass,
|
|
57
|
+
corner-down-left, corner-down-right, corner-left-down, corner-left-up,
|
|
58
|
+
corner-right-down, corner-right-up, corner-up-left, corner-up-right,
|
|
59
|
+
crosshair, database, divide-circle, divide-square, dollar-sign,
|
|
60
|
+
download, external-link, feather, frown, hash, headphones,
|
|
61
|
+
help-circle, info, italic, key, layout, life-buoy, link-2, link,
|
|
62
|
+
loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2,
|
|
63
|
+
minus-circle, minus-square, minus, monitor, moon, more-horizontal,
|
|
64
|
+
more-vertical, move, music, navigation-2, navigation, octagon,
|
|
65
|
+
pause-circle, percent, plus-circle, plus-square, plus, power, radio,
|
|
66
|
+
rss, search, server, share, shopping-bag, sidebar, smartphone, smile,
|
|
67
|
+
square, table-2, tablet, target, terminal, trash-2, trash, triangle,
|
|
68
|
+
tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
|
|
69
|
+
|
|
70
|
+
Copyright (c) 2013-present Cole Bemis
|
|
71
|
+
|
|
72
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
73
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
74
|
+
in the Software without restriction, including without limitation the rights
|
|
75
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
76
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
77
|
+
furnished to do so, subject to the following conditions:
|
|
78
|
+
|
|
79
|
+
The above copyright notice and this permission notice shall be included in all
|
|
80
|
+
copies or substantial portions of the Software.
|
|
81
|
+
|
|
82
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
83
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
84
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
85
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
86
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
87
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
88
|
+
SOFTWARE.
|
package/MIGRATION.md
ADDED
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
# Migration Guide
|
|
2
|
+
|
|
3
|
+
Breaking changes between css-is-awesome versions, and how to migrate.
|
|
4
|
+
|
|
5
|
+
## v0.8.1 — animations split + small renames
|
|
6
|
+
|
|
7
|
+
Patch release with one real fix (animations CSS Modules bug) and two small
|
|
8
|
+
renames. No structural changes.
|
|
9
|
+
|
|
10
|
+
### What changed at a glance
|
|
11
|
+
|
|
12
|
+
| Area | v0.8.0 | v0.8.1 |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| `_animations.scss` shape | Mixed mixins + top-level CSS rules in one file | **Split** — mixins in `_animations.scss`, rules + keyframes in `_animations-utilities.scss` |
|
|
15
|
+
| `progress-track` / `progress-fill` mixin names | Without `-base` suffix | **`-base` suffix added** to signal "compose me" |
|
|
16
|
+
| `badge-base` / `badge` location | In `_feedback.scss` | **Moved to `_data.scss`** (next to `card-base` / `table-base`) |
|
|
17
|
+
|
|
18
|
+
### 1. CSS Modules consumers — animations split
|
|
19
|
+
|
|
20
|
+
If you previously imported animations from a `.module.scss` and hit
|
|
21
|
+
`Selector "*, *::before, *::after" is not pure`, that's now fixed:
|
|
22
|
+
|
|
23
|
+
```scss
|
|
24
|
+
// component.module.scss — works now in v0.8.1
|
|
25
|
+
@use 'css-is-awesome/scss/animations' as anim;
|
|
26
|
+
.my-spinner { @include anim.animate(spin, $iteration: infinite, $timing: linear); }
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**But the keyframes need to be loaded globally once.** Easiest path: keep
|
|
30
|
+
the `@use 'css-is-awesome/scss/main';` line in your global SCSS — it
|
|
31
|
+
already loads both halves. Or load the new utilities file directly:
|
|
32
|
+
|
|
33
|
+
```scss
|
|
34
|
+
// globals.scss (loaded once at app root)
|
|
35
|
+
@use 'css-is-awesome/scss/animations-utilities';
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 2. Rename `progress-track` → `progress-track-base`
|
|
39
|
+
|
|
40
|
+
```scss
|
|
41
|
+
// v0.8.0
|
|
42
|
+
.my-track { @include cia.progress-track; }
|
|
43
|
+
.my-fill { @include cia.progress-fill; }
|
|
44
|
+
|
|
45
|
+
// v0.8.1
|
|
46
|
+
.my-track { @include cia.progress-track-base; }
|
|
47
|
+
.my-fill { @include cia.progress-fill-base; }
|
|
48
|
+
|
|
49
|
+
// OR use the new composer:
|
|
50
|
+
.my-progress { @include cia.progress; }
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The new `cia.progress` composer reads `[data-slot="fill"]` markup — see the
|
|
54
|
+
mixin docstring for the recipe.
|
|
55
|
+
|
|
56
|
+
### 3. `badge-base` / `badge` moved to `_data.scss`
|
|
57
|
+
|
|
58
|
+
If you had a path-specific import:
|
|
59
|
+
|
|
60
|
+
```scss
|
|
61
|
+
// v0.8.0
|
|
62
|
+
@use 'css-is-awesome/scss/components/feedback' as f;
|
|
63
|
+
.my-badge { @include f.badge-base; }
|
|
64
|
+
|
|
65
|
+
// v0.8.1 — option A: use the cia barrel (recommended)
|
|
66
|
+
@use 'css-is-awesome/api' as cia;
|
|
67
|
+
.my-badge { @include cia.badge-base; }
|
|
68
|
+
|
|
69
|
+
// v0.8.1 — option B: import from data
|
|
70
|
+
@use 'css-is-awesome/scss/components/data' as d;
|
|
71
|
+
.my-badge { @include d.badge-base; }
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The cia barrel re-exports all components, so the recommended Option A
|
|
75
|
+
unsubscribes you from future location changes.
|
|
76
|
+
|
|
77
|
+
### New mixins (additive, no migration needed)
|
|
78
|
+
|
|
79
|
+
- `cia.wizard-shell` — 3-row layout with shared horizontal rhythm (stepper + body + controls)
|
|
80
|
+
- `cia.stepper`, `cia.stepper-circle`, `cia.stepper-connector` — status-driven progress indicator
|
|
81
|
+
- `cia.progress` — composed router (track + fill via `[data-slot]`)
|
|
82
|
+
- `cia.sidebar` — Every-Layout sidebar (fixed nav + flexible content, gracefully stacks)
|
|
83
|
+
- `cia.toolbar` — cluster with auto-margin `[data-slot="trailing"]`
|
|
84
|
+
|
|
85
|
+
Plus bare-tags additions for `<dialog>` and `<progress>` (opt-in via the
|
|
86
|
+
existing `bare-tags` recipe).
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## v0.8 — mixin-first reframe + theme system collapse
|
|
91
|
+
|
|
92
|
+
**Status:** breaking, no aliases. v0.8 is the pre-v1.0 lock-in pass.
|
|
93
|
+
|
|
94
|
+
### What changed at a glance
|
|
95
|
+
|
|
96
|
+
| Area | v0.7 | v0.8 |
|
|
97
|
+
|---|---|---|
|
|
98
|
+
| Primary API | utility classes + mixins | **mixin-first** (consumer picks their own selectors) |
|
|
99
|
+
| Themes | 14 files (`press-light` + `press-dark` × 7 families) | **9 single-file themes** using `light-dark()` |
|
|
100
|
+
| Theme selectors | `[data-theme="press-light"]` / `[data-theme="press-dark"]` | `[data-theme="press"]` |
|
|
101
|
+
| Responsive `:` utilities | `.cia-sm:flex`, `.cia-md:hidden` etc. | **killed** (saves 8 KB gz) |
|
|
102
|
+
| Utility classes (Sass path) | always emitted | **opt-in** via `@use ... with ($utilities: true)` |
|
|
103
|
+
| JavaScript in npm package | optional add-ons | **zero** — hard rule |
|
|
104
|
+
| Mixin names | 12 names renamed to spec vocabulary | see rename table below |
|
|
105
|
+
|
|
106
|
+
### 1. Rename `data-theme` attribute values
|
|
107
|
+
|
|
108
|
+
```html
|
|
109
|
+
<!-- v0.7 -->
|
|
110
|
+
<html data-theme="press-light">
|
|
111
|
+
<html data-theme="press-dark">
|
|
112
|
+
|
|
113
|
+
<!-- v0.8 -->
|
|
114
|
+
<html data-theme="press"> <!-- both modes inside one theme file -->
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
The single-file themes use `light-dark()` for color tokens; the browser
|
|
118
|
+
auto-swaps based on the user's OS `prefers-color-scheme`.
|
|
119
|
+
|
|
120
|
+
### 2. Rename mixin calls
|
|
121
|
+
|
|
122
|
+
| v0.7 | v0.8 |
|
|
123
|
+
|---|---|
|
|
124
|
+
| `@include cia.bp(md) { … }` | `@include cia.media(md) { … }` |
|
|
125
|
+
| `@include cia.bp-down(md) { … }` | `@include cia.media-down(md) { … }` |
|
|
126
|
+
| `@include cia.bp-between(sm, lg)` | `@include cia.media-between(sm, lg)` |
|
|
127
|
+
| `@include cia.cq(md) { … }` | `@include cia.contain(md) { … }` |
|
|
128
|
+
| `@include cia.cq-down(md)` | `@include cia.contain-down(md)` |
|
|
129
|
+
| `cia.color-raw(border-focus)` | `cia.color-static(border-focus)` |
|
|
130
|
+
| `@include cia.inset(4)` | `@include cia.pad(4)` |
|
|
131
|
+
| `@include cia.inset-x(4)` | `@include cia.pad-x(4)` |
|
|
132
|
+
| `@include cia.inset-y(2)` | `@include cia.pad-y(2)` |
|
|
133
|
+
| `@include cia.squish(2, 4)` | `@include cia.pad-asym(2, 4)` |
|
|
134
|
+
| `@include cia.font-load('Inter', '/inter.woff2')` | `@include cia.font-face('Inter', '/inter.woff2')` |
|
|
135
|
+
| `@include cia.font-load-local('Inter', '/inter.woff2')` | `@include cia.font-face-local('Inter', '/inter.woff2')` |
|
|
136
|
+
| Layout `@include cia.container` | `@include cia.wrap` |
|
|
137
|
+
|
|
138
|
+
No aliases. Use a regex search-replace on your codebase, or wait for a
|
|
139
|
+
codemod (planned for the future `@cia/codemod` package, v1.x).
|
|
140
|
+
|
|
141
|
+
### 3. Remove responsive `:` utility classes
|
|
142
|
+
|
|
143
|
+
```html
|
|
144
|
+
<!-- v0.7 -->
|
|
145
|
+
<div class="cia-sm:flex cia-md:hidden">
|
|
146
|
+
|
|
147
|
+
<!-- v0.8 -->
|
|
148
|
+
<!-- Option A: opt back in to responsive utilities -->
|
|
149
|
+
<!-- in your app.scss: -->
|
|
150
|
+
<!-- @use 'css-is-awesome' as cia with ($responsive-spacing: true); -->
|
|
151
|
+
|
|
152
|
+
<!-- Option B (recommended): use the mixin form -->
|
|
153
|
+
<div class="my-thing">
|
|
154
|
+
<!-- in your SCSS: -->
|
|
155
|
+
<!-- .my-thing {
|
|
156
|
+
@include cia.media(md) { display: flex; }
|
|
157
|
+
} -->
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
The responsive utility generator was emitting ~85 lines of cartesian-product
|
|
161
|
+
classes that most consumers never used. Killing them dropped `main.scss` from
|
|
162
|
+
16.6 KB gz to 8.2 KB gz.
|
|
163
|
+
|
|
164
|
+
### 4. Opt back in to utility classes (Sass consumers)
|
|
165
|
+
|
|
166
|
+
```scss
|
|
167
|
+
// v0.7 — all utilities always emitted
|
|
168
|
+
@use 'css-is-awesome' as cia;
|
|
169
|
+
|
|
170
|
+
// v0.8 — utilities opt-in
|
|
171
|
+
@use 'css-is-awesome' as cia with (
|
|
172
|
+
$utilities: true, // emit .cia-* utility classes
|
|
173
|
+
$responsive-spacing: true, // emit .cia-sm-p-md, etc.
|
|
174
|
+
);
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Pre-built CDN consumers are unaffected** — `dist/css-is-awesome.utilities.css`
|
|
178
|
+
still ships every utility class. The opt-in governs the Sass compile path only.
|
|
179
|
+
|
|
180
|
+
### 5. Move JS handlers out of cia-core dependencies
|
|
181
|
+
|
|
182
|
+
If you were relying on a JS shim shipped in `dist/`, it's gone. The
|
|
183
|
+
CopyButton JS handler now lives at `public/copy-button.mjs` (not in the
|
|
184
|
+
npm package). Three migration options:
|
|
185
|
+
|
|
186
|
+
1. **Copy-paste the recipe** from `/docs/recipes/copy-button`. ~700 bytes,
|
|
187
|
+
framework-free.
|
|
188
|
+
2. **Write your own handler** following the documented contract
|
|
189
|
+
(delegated click, `data-copy-target`, `data-copied` state).
|
|
190
|
+
3. **Wait for `@cia/copy-button`** add-on package (v1.x roadmap).
|
|
191
|
+
|
|
192
|
+
### 6. Embrace mixin-first authoring
|
|
193
|
+
|
|
194
|
+
The v0.8 reframe is more philosophical than mechanical: **cia ships the
|
|
195
|
+
mixin; you ship the class name**. Pre-v0.8 docs led with class examples
|
|
196
|
+
(`<button class="cia-btn-primary">`); v0.8 docs lead with mixin examples:
|
|
197
|
+
|
|
198
|
+
```scss
|
|
199
|
+
// v0.7 — class form was primary
|
|
200
|
+
<button class="cia-btn-primary">Save</button>
|
|
201
|
+
|
|
202
|
+
// v0.8 — mixin form is primary
|
|
203
|
+
<button class="save-btn">Save</button>
|
|
204
|
+
|
|
205
|
+
// in your SCSS:
|
|
206
|
+
.save-btn { @include cia.btn(primary); }
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
You can still use the `.cia-*` classes if you opt them in — they're a
|
|
210
|
+
convenience layer now, not the primary API.
|
|
211
|
+
|
|
212
|
+
### Where to read more
|
|
213
|
+
|
|
214
|
+
- [`CHANGELOG.md`](./CHANGELOG.md) — full breaking-change list with code-level detail
|
|
215
|
+
- [`AGENTS.md`](./AGENTS.md) — authoring guide updated for v0.8
|
|
216
|
+
- `/docs/install` on the docs site — the new mixin-first install path
|
|
217
|
+
- `/docs/themes/pairing` — the new `<link media>` paired-brand trick
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## v0.7 — theme names carry a `-light` / `-dark` suffix
|
|
222
|
+
|
|
223
|
+
**Status:** breaking (alias-cushioned). Approved pre-1.0.
|
|
224
|
+
|
|
225
|
+
### What changed
|
|
226
|
+
|
|
227
|
+
Every built-in theme name now carries a mode suffix so consumers can read
|
|
228
|
+
intent at a glance. The defaults shipped before v0.7 were inconsistent
|
|
229
|
+
(some had a suffix, most did not). All six original themes are renamed
|
|
230
|
+
and now ship paired light/dark modes.
|
|
231
|
+
|
|
232
|
+
| v0.6 name | v0.7 name | Notes |
|
|
233
|
+
|----------------|---------------------|------------------------------------------------|
|
|
234
|
+
| `sketchbook` | `sketchbook-light` | Default. Still wins via `:root:not([data-theme])`. |
|
|
235
|
+
| `press` | `press-light` | |
|
|
236
|
+
| `graphite` | `graphite-dark` | Graphite was always dark. |
|
|
237
|
+
| `glass` | `glass-light` | |
|
|
238
|
+
| `cupertino` | `cupertino-light` | |
|
|
239
|
+
| `terminal` | `terminal-dark` | New `terminal-light` companion shipped — daylight editor. |
|
|
240
|
+
|
|
241
|
+
### Migration steps for consumers
|
|
242
|
+
|
|
243
|
+
#### Tier 1 — drop-in CSS (HTML, no build step)
|
|
244
|
+
|
|
245
|
+
If your markup looks like this:
|
|
246
|
+
|
|
247
|
+
```html
|
|
248
|
+
<html data-theme="sketchbook">
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
…then nothing breaks today. The unsuffixed v0.6 names continue to resolve
|
|
252
|
+
through alias selectors in `public/theme.css` for the entire 0.7.x line.
|
|
253
|
+
|
|
254
|
+
Before v0.8 ships, rename to the suffixed form:
|
|
255
|
+
|
|
256
|
+
```html
|
|
257
|
+
<html data-theme="sketchbook-light">
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
If you self-host one of the per-theme files, update the path:
|
|
261
|
+
|
|
262
|
+
```html
|
|
263
|
+
<!-- v0.6 -->
|
|
264
|
+
<link rel="stylesheet" href="/themes/press/theme.css">
|
|
265
|
+
|
|
266
|
+
<!-- v0.7+ -->
|
|
267
|
+
<link rel="stylesheet" href="/themes/press-light/theme.css">
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
The five renamed folders under `public/themes/` follow the same suffix
|
|
271
|
+
convention as the data-theme names.
|
|
272
|
+
|
|
273
|
+
#### Tier 2 — React (docs theme picker / cookies)
|
|
274
|
+
|
|
275
|
+
If your app reads or writes the `cia-theme` cookie directly:
|
|
276
|
+
|
|
277
|
+
```js
|
|
278
|
+
// v0.6
|
|
279
|
+
document.cookie = "cia-theme=sketchbook; path=/";
|
|
280
|
+
|
|
281
|
+
// v0.7+
|
|
282
|
+
document.cookie = "cia-theme=sketchbook-light; path=/";
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
Both cookie values resolve to the same tokens through 0.7.x because the
|
|
286
|
+
pre-hydration script accepts both lists. Update your writes to the new
|
|
287
|
+
names so existing cookies migrate naturally.
|
|
288
|
+
|
|
289
|
+
The `<ThemePicker>` and `<ThemeTile>` components shipped in v0.7 already
|
|
290
|
+
emit the suffixed IDs.
|
|
291
|
+
|
|
292
|
+
#### Tier 3 — SCSS / mixins
|
|
293
|
+
|
|
294
|
+
No SCSS API changed — the rename only affects the `data-theme` attribute
|
|
295
|
+
values and the per-theme folder names. The mixin layer (`cia.color`,
|
|
296
|
+
`cia.btn`, etc.) is untouched.
|
|
297
|
+
|
|
298
|
+
### Removal timeline
|
|
299
|
+
|
|
300
|
+
- **v0.7.x** — both old and new names work. Aliases ship in
|
|
301
|
+
`public/theme.css`. `MIGRATION.md` and `CHANGELOG.md` document the
|
|
302
|
+
rename. `<ThemePicker>` defaults to the new names.
|
|
303
|
+
- **v0.8.0** — alias selectors removed. `<html data-theme="sketchbook">`
|
|
304
|
+
no longer resolves; consumers must use `sketchbook-light`. Per-theme
|
|
305
|
+
folder paths under the old names (`public/themes/press/`, etc.) are
|
|
306
|
+
also gone.
|
|
307
|
+
|
|
308
|
+
### Related work
|
|
309
|
+
|
|
310
|
+
- US-2.14.1 — maintainer-side rename (this PR).
|
|
311
|
+
- US-2.14.2 — consumer migration guide (this file).
|
|
312
|
+
- US-2.14.3 — alias-removal follow-up scheduled for v0.8.
|