@pritzlaff/nano-elements 0.1.0 → 0.2.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 +59 -0
- package/agent/parts.d.ts +79 -0
- package/agent/timeline.d.ts +52 -0
- package/index.d.ts +8 -0
- package/index.js +917 -12
- package/index.js.map +13 -4
- package/kit/calendar.d.ts +48 -0
- package/kit/data-table.d.ts +62 -0
- package/kit/overlays.d.ts +109 -0
- package/kit/popup.d.ts +7 -0
- package/kit/select.d.ts +88 -0
- package/kit.d.ts +2 -0
- package/package.json +2 -2
- package/styles.d.ts +1 -1
- package/tokens.d.ts +39 -0
package/tokens.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** Every token, with the value an element uses when the host sets none. */
|
|
2
|
+
export declare const NANO_TOKENS: {
|
|
3
|
+
readonly bg: '#0D0F13';
|
|
4
|
+
readonly surface: '#14171D';
|
|
5
|
+
readonly 'surface-2': '#212632';
|
|
6
|
+
readonly border: '#2A303C';
|
|
7
|
+
readonly 'border-strong': '#3A4150';
|
|
8
|
+
readonly fg: '#E7E9EE';
|
|
9
|
+
readonly 'fg-2': '#C9CED6';
|
|
10
|
+
readonly muted: '#A3AAB8';
|
|
11
|
+
readonly 'on-accent': '#0D0F13';
|
|
12
|
+
readonly accent: '#6FA8FF';
|
|
13
|
+
readonly 'accent-soft': '#1C2A44';
|
|
14
|
+
readonly focus: '#6FA8FF';
|
|
15
|
+
readonly good: '#7EE787';
|
|
16
|
+
readonly 'good-bg': '#12301C';
|
|
17
|
+
readonly bad: '#FFB4A8';
|
|
18
|
+
readonly 'bad-bg': '#3A1D1D';
|
|
19
|
+
readonly warn: '#F2CC60';
|
|
20
|
+
readonly 'warn-bg': '#3A3016';
|
|
21
|
+
readonly font: 'Inter, system-ui, sans-serif';
|
|
22
|
+
readonly 'font-display': 'Inter, system-ui, sans-serif';
|
|
23
|
+
readonly 'font-mono': "'JetBrains Mono', ui-monospace, monospace";
|
|
24
|
+
readonly radius: '8px';
|
|
25
|
+
readonly 'radius-s': '6px';
|
|
26
|
+
readonly s1: '#7EE787';
|
|
27
|
+
readonly s2: '#F5A524';
|
|
28
|
+
readonly s3: '#4CC2FF';
|
|
29
|
+
readonly s4: '#FF7AB6';
|
|
30
|
+
readonly s5: '#D2A8FF';
|
|
31
|
+
readonly s6: '#FFA657';
|
|
32
|
+
readonly s7: '#79C0FF';
|
|
33
|
+
readonly s8: '#F2CC60';
|
|
34
|
+
};
|
|
35
|
+
export type NanoToken = keyof typeof NANO_TOKENS;
|
|
36
|
+
/** A token for use in `css`: `var(--nano-<name>, <fallback>)`. */
|
|
37
|
+
export declare const t: (name: NanoToken) => import("lit").CSSResult;
|
|
38
|
+
/** The same, as a string, for inline styles and SVG attributes. */
|
|
39
|
+
export declare const tv: (name: NanoToken) => string;
|