@uncinq/component-tokens 0.1.3 → 0.2.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/README.md CHANGED
@@ -152,6 +152,7 @@ tokens/
152
152
  card.css ← card (alias → item tokens)
153
153
  container.css ← layout container + grid columns
154
154
  details.css ← <details> / accordion
155
+ drawer.css ← off-canvas panel / drawer
155
156
  dropdown.css ← dropdown menu
156
157
  embed.css ← video / iframe embed wrapper
157
158
  figure.css ← <figure> + <figcaption>
@@ -165,7 +166,6 @@ tokens/
165
166
  map.css ← embedded map
166
167
  media.css ← media object (image + text)
167
168
  nav.css ← navigation bar
168
- offcanvas.css ← off-canvas panel / drawer
169
169
  pagination.css ← pagination control
170
170
  surtitle.css ← small label above a heading
171
171
  table.css ← data table
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinq/component-tokens",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "description": "Framework-agnostic CSS design tokens — component layers.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -0,0 +1,31 @@
1
+ /* tokens/component/drawer.css */
2
+ @layer config {
3
+ :root {
4
+ /* Colors */
5
+ --drawer-color-bg: var(--color-bg-surface);
6
+ --drawer-color-text: var(--color-text-on-surface);
7
+ --drawer-color-border: var(--color-border);
8
+
9
+ /* Backdrop */
10
+ --drawer-backdrop-blur: var(--blur-backdrop);
11
+ --drawer-backdrop-color: var(--color-backdrop);
12
+
13
+ /* Position */
14
+ --drawer-bottom: 0;
15
+ --drawer-end: 0;
16
+ --drawer-start: auto;
17
+ --drawer-top: 0;
18
+ --drawer-translate: translateX(100%);
19
+
20
+ /* Layout */
21
+ --drawer-width: 320px;
22
+ --drawer-height: 50vh;
23
+ --drawer-padding: var(--spacing-surface);
24
+ --drawer-shadow: var(--shadow-surface);
25
+ --drawer-z-index: var(--z-index-drawer);
26
+
27
+ /* Transition — read by JS via getComputedStyle */
28
+ --drawer-transition-duration: var(--duration-slow);
29
+ --drawer-transition-easing: var(--easing-out-expo);
30
+ }
31
+ }
package/tokens/index.css CHANGED
@@ -6,6 +6,7 @@
6
6
  @import 'component/card.css';
7
7
  @import 'component/container.css';
8
8
  @import 'component/details.css';
9
+ @import 'component/drawer.css';
9
10
  @import 'component/dropdown.css';
10
11
  @import 'component/embed.css';
11
12
  @import 'component/figure.css';
@@ -18,8 +19,8 @@
18
19
  @import 'component/logo.css';
19
20
  @import 'component/map.css';
20
21
  @import 'component/media.css';
22
+ @import 'component/modal.css';
21
23
  @import 'component/nav.css';
22
- @import 'component/offcanvas.css';
23
24
  @import 'component/pagination.css';
24
25
  @import 'component/surtitle.css';
25
26
  @import 'component/table.css';
@@ -1,31 +0,0 @@
1
- /* tokens/component/offcanvas.css */
2
- @layer config {
3
- :root {
4
- /* Colors */
5
- --offcanvas-color-bg: var(--color-bg-surface);
6
- --offcanvas-color-text: var(--color-text-on-surface);
7
- --offcanvas-color-border: var(--color-border);
8
-
9
- /* Backdrop */
10
- --offcanvas-backdrop-blur: var(--blur-backdrop);
11
- --offcanvas-backdrop-color: var(--color-backdrop);
12
-
13
- /* Position */
14
- --offcanvas-bottom: 0;
15
- --offcanvas-end: 0;
16
- --offcanvas-start: auto;
17
- --offcanvas-top: 0;
18
- --offcanvas-translate: translateX(100%);
19
-
20
- /* Layout */
21
- --offcanvas-width: 320px;
22
- --offcanvas-height: 50vh;
23
- --offcanvas-padding: var(--spacing-surface);
24
- --offcanvas-shadow: var(--shadow-surface);
25
- --offcanvas-z-index: var(--z-index-offcanvas);
26
-
27
- /* Transition — read by JS via getComputedStyle */
28
- --offcanvas-transition-duration: var(--duration-slow);
29
- --offcanvas-transition-easing: var(--easing-out-expo);
30
- }
31
- }