@fezchat/tailwind-preset 0.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/dist/index.d.ts +3 -0
- package/dist/index.js +27 -0
- package/package.json +27 -0
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every fez-* color utility resolves to a live theme token, so a class
|
|
3
|
+
* name written by an extension follows the user's theme with no plumbing:
|
|
4
|
+
* `bg-fez-surface` is `background-color: var(--bg1)`, and when the themes
|
|
5
|
+
* system rewrites --bg1 on :root the utility repaints. This is why the
|
|
6
|
+
* frozen-gruvbox class of bug is structurally impossible.
|
|
7
|
+
*/
|
|
8
|
+
const fez = {
|
|
9
|
+
fg: "var(--fg)",
|
|
10
|
+
dim: "var(--fg-dim)",
|
|
11
|
+
surface: "var(--bg1)",
|
|
12
|
+
elevated: "var(--bg2)",
|
|
13
|
+
base: "var(--bg0)",
|
|
14
|
+
mine: "var(--bg-mine)",
|
|
15
|
+
rail: "var(--bg-rail)",
|
|
16
|
+
accent: "var(--accent)",
|
|
17
|
+
brand: "var(--brand)",
|
|
18
|
+
green: "var(--green)",
|
|
19
|
+
red: "var(--red)",
|
|
20
|
+
yellow: "var(--yellow)",
|
|
21
|
+
hairline: "var(--hairline)",
|
|
22
|
+
field: "var(--field)",
|
|
23
|
+
};
|
|
24
|
+
const preset = {
|
|
25
|
+
theme: { extend: { colors: { fez } } },
|
|
26
|
+
};
|
|
27
|
+
export default preset;
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fezchat/tailwind-preset",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A Tailwind preset whose fez-* color utilities resolve to the live fez theme tokens. Dev-only for extension authors: IntelliSense + typo-checking against the utilities the fez host ships at runtime.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc -p tsconfig.json"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"tailwindcss": "^3"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"tailwindcss": "^3",
|
|
25
|
+
"typescript": "^5"
|
|
26
|
+
}
|
|
27
|
+
}
|