@timebraid/tokens 1.12.0 → 1.14.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
@@ -8,7 +8,7 @@ import '@timebraid/tokens/styles.css'
8
8
 
9
9
  `styles.css` is the v2 theme. `styles-v1.css` keeps the 1.2 theme for one release and is removed in 1.4.0.
10
10
 
11
- That one import gives you every `--*` variable, the element baseline (`body`, headings, links, focus rings), the `.num` helper, and the webfonts.
11
+ That one import gives you every `--*` variable, the element baseline (`body`, headings, links, focus rings), the `.num`, `.clamp-2` and `.ellipsis` helpers, and the webfonts.
12
12
 
13
13
  Light is `:root`; dark is `[data-theme="dark"]` on the root element, set by `watchTheme` from `@timebraid/vue`.
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timebraid/tokens",
3
- "version": "1.12.0",
3
+ "version": "1.14.0",
4
4
  "description": "Timebraid design tokens: CSS custom properties, base styles, fonts and brand assets.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/tokens/base.css CHANGED
@@ -8,6 +8,8 @@ input,select,textarea{font:inherit;color:inherit}
8
8
  a{color:var(--accent);text-decoration:none}a:hover{color:var(--accent-hover)}
9
9
  a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
10
10
  .num{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
11
+ .clamp-2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;line-height:1.3;min-width:0}
12
+ .ellipsis{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
11
13
  ::selection{background:var(--accent-soft-2)}
12
14
  @keyframes t-pulse{0%,100%{opacity:1}50%{opacity:.35}}
13
15
  @keyframes t-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}