@code-sherpas/pharos-tokens 1.0.0 → 1.0.1
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 +9 -1
- package/dist/styles.css +3 -3
- package/package.json +12 -5
- package/styles.css.d.ts +5 -0
package/README.md
CHANGED
|
@@ -29,9 +29,17 @@ pnpm add @code-sherpas/pharos-tokens
|
|
|
29
29
|
Import the CSS tokens at your app's entry point:
|
|
30
30
|
|
|
31
31
|
```css
|
|
32
|
-
@import '@code-sherpas/pharos-tokens/css';
|
|
32
|
+
@import '@code-sherpas/pharos-tokens/styles.css';
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
or, from a JS/TS entry point:
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
import '@code-sherpas/pharos-tokens/styles.css';
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Both entry points ship type declarations, so the side-effect import type-checks with `noUncheckedSideEffectImports` (on by default since TypeScript 6) without any `declare module`. `@code-sherpas/pharos-tokens/css` is the same stylesheet under its original name and keeps working.
|
|
42
|
+
|
|
35
43
|
This exposes `--pharos-*` on `:root`. Use them directly or via Tailwind arbitrary values:
|
|
36
44
|
|
|
37
45
|
```css
|
package/dist/styles.css
CHANGED
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
--pharos-z-index-popover: 1500; /** Anchored floating UI: Popover, DropdownMenu, Select and Combobox lists. Above modal so it can open from inside a Dialog or Sheet. */
|
|
72
72
|
--pharos-z-index-toast: 1700; /** Toasts and transient notifications. */
|
|
73
73
|
--pharos-z-index-tooltip: 1800; /** Tooltips: always on top. */
|
|
74
|
-
--pharos-duration-fast:
|
|
75
|
-
--pharos-duration-normal:
|
|
76
|
-
--pharos-duration-slow:
|
|
74
|
+
--pharos-duration-fast: 100ms; /** Micro interactions (hover). */
|
|
75
|
+
--pharos-duration-normal: 200ms; /** Default transitions. */
|
|
76
|
+
--pharos-duration-slow: 300ms; /** Panel slide, overlay fade. */
|
|
77
77
|
--pharos-easing-in: cubic-bezier(0.4, 0, 1, 1);
|
|
78
78
|
--pharos-easing-out: cubic-bezier(0, 0, 0.2, 1);
|
|
79
79
|
--pharos-easing-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-sherpas/pharos-tokens",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Design tokens de Code Sherpas — agnóstico de framework. DTCG + Style Dictionary + OKLCH.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -18,19 +18,26 @@
|
|
|
18
18
|
"type": "module",
|
|
19
19
|
"files": [
|
|
20
20
|
"dist",
|
|
21
|
-
"src"
|
|
21
|
+
"src",
|
|
22
|
+
"styles.css.d.ts"
|
|
22
23
|
],
|
|
23
24
|
"exports": {
|
|
24
25
|
".": {
|
|
25
26
|
"types": "./dist/index.d.ts",
|
|
26
27
|
"import": "./dist/index.js"
|
|
27
28
|
},
|
|
28
|
-
"./css":
|
|
29
|
+
"./styles.css": {
|
|
30
|
+
"types": "./styles.css.d.ts",
|
|
31
|
+
"default": "./dist/styles.css"
|
|
32
|
+
},
|
|
33
|
+
"./css": {
|
|
34
|
+
"types": "./styles.css.d.ts",
|
|
35
|
+
"default": "./dist/styles.css"
|
|
36
|
+
},
|
|
29
37
|
"./dtcg/*": "./src/*.tokens.json"
|
|
30
38
|
},
|
|
31
39
|
"engines": {
|
|
32
|
-
"node": ">=22"
|
|
33
|
-
"pnpm": "10.33.0"
|
|
40
|
+
"node": ">=22"
|
|
34
41
|
},
|
|
35
42
|
"lint-staged": {
|
|
36
43
|
"*.{ts,tsx,js,mjs,cjs,json,md,mdx,css,yml,yaml}": "prettier --write"
|
package/styles.css.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Types for the stylesheet entry points (`./styles.css`, `./css`). A stylesheet
|
|
2
|
+
// exports nothing; this file only lets TypeScript resolve its side-effect
|
|
3
|
+
// import (`import '@code-sherpas/pharos-tokens/styles.css'`), which TypeScript 6
|
|
4
|
+
// and later check by default (`noUncheckedSideEffectImports`).
|
|
5
|
+
export {};
|