@wirecore/wirelayer-tokens 0.7.0 → 0.8.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.
Files changed (2) hide show
  1. package/dist/theme.css +43 -0
  2. package/package.json +1 -1
package/dist/theme.css CHANGED
@@ -334,10 +334,53 @@
334
334
  -webkit-font-smoothing: antialiased;
335
335
  -moz-osx-font-smoothing: grayscale;
336
336
  }
337
+ /* A mode or theme forced on a part of the page: body sets the text colour once and it is inherited as a fixed
338
+ value, so the part takes the text colour of its own mode/theme again. No background – the part may stay
339
+ transparent (set bg-bg or bg-card where it needs one). In the base layer, so text-* utilities still win */
340
+ [data-mode],
341
+ [data-theme] {
342
+ color: var(--wc-fg);
343
+ }
337
344
  /* Popups positioned by Ark (Select, Menu, Popover …): Ark copies the z-index of the content to the positioner as
338
345
  an inline style – Vue removes it again when it patches the positioner's style, which drops a list behind a
339
346
  dialog. In the base layer, so a z-index utility on a positioner still wins */
340
347
  [data-scope][data-part='positioner'] {
341
348
  z-index: var(--z-index);
342
349
  }
350
+ /* Scrollbars of the page and of every scrolling area in the look of ScrollPanel: thin, the thumb in line-strong
351
+ (3:1 against the surfaces, checked with the contrast of the input borders), the track transparent. Colours per
352
+ element, so a part with its own mode/theme follows it. Change them with --wc-scrollbar-thumb / -thumb-hover /
353
+ -track / -width; <html data-scrollbars="native"> keeps the browser's own. In the base layer, so utilities such
354
+ as [scrollbar-width:none] still win */
355
+ :where(:root:not([data-scrollbars='native'])),
356
+ :where(:root:not([data-scrollbars='native'])) * {
357
+ scrollbar-width: var(--wc-scrollbar-width, thin);
358
+ scrollbar-color: var(--wc-scrollbar-thumb, var(--wc-line-strong)) var(--wc-scrollbar-track, transparent);
359
+ }
360
+ /* Browsers without scrollbar-color (Safari): the same look through the WebKit scrollbar */
361
+ @supports not (scrollbar-color: auto) {
362
+ :where(:root:not([data-scrollbars='native'])) ::-webkit-scrollbar {
363
+ width: 10px;
364
+ height: 10px;
365
+ background: var(--wc-scrollbar-track, transparent);
366
+ }
367
+ :where(:root:not([data-scrollbars='native'])) ::-webkit-scrollbar-thumb {
368
+ border: 2px solid transparent;
369
+ border-radius: 9999px;
370
+ background: var(--wc-scrollbar-thumb, var(--wc-line-strong)) padding-box;
371
+ }
372
+ :where(:root:not([data-scrollbars='native'])) ::-webkit-scrollbar-thumb:hover {
373
+ background-color: var(--wc-scrollbar-thumb-hover, var(--wc-muted));
374
+ }
375
+ :where(:root:not([data-scrollbars='native'])) ::-webkit-scrollbar-corner {
376
+ background: transparent;
377
+ }
378
+ }
379
+ /* Forced colours (Windows contrast themes): the system scrollbars */
380
+ @media (forced-colors: active) {
381
+ :where(:root),
382
+ :where(:root) * {
383
+ scrollbar-color: auto;
384
+ }
385
+ }
343
386
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecore/wirelayer-tokens",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "WireLayer design tokens and Tailwind v4 theme",
5
5
  "license": "MIT",
6
6
  "repository": {