@code-sherpas/pharos-tokens 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/LICENSE +21 -0
- package/README.md +100 -0
- package/RULES.md +50 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +151 -0
- package/dist/styles.css +108 -0
- package/dist/tokens.d.ts +187 -0
- package/dist/tokens.js +112 -0
- package/dist/tokens.json +143 -0
- package/package.json +59 -0
- package/src/color.tokens.json +195 -0
- package/src/radius.tokens.json +28 -0
- package/src/shadow.tokens.json +53 -0
- package/src/spacing.tokens.json +45 -0
- package/src/typography.tokens.json +81 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"font": {
|
|
3
|
+
"family": {
|
|
4
|
+
"sans": {
|
|
5
|
+
"$value": "\"Inter\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
|
6
|
+
"$type": "fontFamily",
|
|
7
|
+
"$description": "Default sans-serif stack. Inter can be replaced at the consumer layer via CSS var override."
|
|
8
|
+
},
|
|
9
|
+
"mono": {
|
|
10
|
+
"$value": "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace",
|
|
11
|
+
"$type": "fontFamily",
|
|
12
|
+
"$description": "Default monospace stack for code."
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"weight": {
|
|
16
|
+
"regular": { "$value": "400", "$type": "fontWeight" },
|
|
17
|
+
"medium": { "$value": "500", "$type": "fontWeight" },
|
|
18
|
+
"semibold": { "$value": "600", "$type": "fontWeight" },
|
|
19
|
+
"bold": { "$value": "700", "$type": "fontWeight" }
|
|
20
|
+
},
|
|
21
|
+
"size": {
|
|
22
|
+
"xs": {
|
|
23
|
+
"$value": "0.75rem",
|
|
24
|
+
"$type": "dimension",
|
|
25
|
+
"$description": "12px. Helper text, captions."
|
|
26
|
+
},
|
|
27
|
+
"sm": {
|
|
28
|
+
"$value": "0.875rem",
|
|
29
|
+
"$type": "dimension",
|
|
30
|
+
"$description": "14px. Body default in Pharos (Decision D3: formalizes Alexandria's dominant body size)."
|
|
31
|
+
},
|
|
32
|
+
"base": {
|
|
33
|
+
"$value": "1rem",
|
|
34
|
+
"$type": "dimension",
|
|
35
|
+
"$description": "16px. Reserved for increased-legibility contexts."
|
|
36
|
+
},
|
|
37
|
+
"lg": {
|
|
38
|
+
"$value": "1.125rem",
|
|
39
|
+
"$type": "dimension",
|
|
40
|
+
"$description": "18px."
|
|
41
|
+
},
|
|
42
|
+
"xl": {
|
|
43
|
+
"$value": "1.25rem",
|
|
44
|
+
"$type": "dimension",
|
|
45
|
+
"$description": "20px."
|
|
46
|
+
},
|
|
47
|
+
"2xl": {
|
|
48
|
+
"$value": "1.5rem",
|
|
49
|
+
"$type": "dimension",
|
|
50
|
+
"$description": "24px. Heading level 3 / large titles."
|
|
51
|
+
},
|
|
52
|
+
"3xl": {
|
|
53
|
+
"$value": "1.875rem",
|
|
54
|
+
"$type": "dimension",
|
|
55
|
+
"$description": "30px. Heading level 2."
|
|
56
|
+
},
|
|
57
|
+
"4xl": {
|
|
58
|
+
"$value": "2.25rem",
|
|
59
|
+
"$type": "dimension",
|
|
60
|
+
"$description": "36px. Heading level 1."
|
|
61
|
+
},
|
|
62
|
+
"5xl": {
|
|
63
|
+
"$value": "3rem",
|
|
64
|
+
"$type": "dimension",
|
|
65
|
+
"$description": "48px. Display."
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"lineHeight": {
|
|
69
|
+
"tight": { "$value": "1.25", "$type": "number" },
|
|
70
|
+
"snug": { "$value": "1.375", "$type": "number" },
|
|
71
|
+
"normal": { "$value": "1.5", "$type": "number", "$description": "Default body line-height." },
|
|
72
|
+
"relaxed": { "$value": "1.625", "$type": "number" },
|
|
73
|
+
"loose": { "$value": "2", "$type": "number" }
|
|
74
|
+
},
|
|
75
|
+
"letterSpacing": {
|
|
76
|
+
"tight": { "$value": "-0.025em", "$type": "dimension" },
|
|
77
|
+
"normal": { "$value": "0", "$type": "dimension" },
|
|
78
|
+
"wide": { "$value": "0.025em", "$type": "dimension" }
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|