@neuralytics/alpine-ds 0.6.0 → 0.7.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.
@@ -1,4 +1,4 @@
1
- const c = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), o = {
1
+ const o = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), c = {
2
2
  50: "oklch(98.5% 0 0)",
3
3
  100: "oklch(97% 0 0)",
4
4
  200: "oklch(92.2% 0 0)",
@@ -20,7 +20,7 @@ const c = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), o = {
20
20
  700: "oklch(50.5% 0.213 27.518)",
21
21
  800: "oklch(44.4% 0.177 26.899)",
22
22
  900: "oklch(39.6% 0.141 25.723)"
23
- }, h = {
23
+ }, e = {
24
24
  50: "oklch(98.7% 0.022 95.277)",
25
25
  100: "oklch(96.2% 0.059 95.617)",
26
26
  200: "oklch(92.4% 0.12 95.746)",
@@ -31,7 +31,7 @@ const c = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), o = {
31
31
  700: "oklch(55.5% 0.163 48.998)",
32
32
  800: "oklch(47.3% 0.137 46.201)",
33
33
  900: "oklch(41.4% 0.112 45.904)"
34
- }, k = {
34
+ }, r = {
35
35
  50: "oklch(98.2% 0.018 155.826)",
36
36
  100: "oklch(96.2% 0.044 156.743)",
37
37
  200: "oklch(92.5% 0.084 155.995)",
@@ -42,7 +42,7 @@ const c = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), o = {
42
42
  700: "oklch(52.7% 0.154 150.069)",
43
43
  800: "oklch(44.8% 0.119 151.328)",
44
44
  900: "oklch(39.3% 0.095 152.535)"
45
- }, t = {
45
+ }, h = {
46
46
  50: "oklch(97% 0.014 254.604)",
47
47
  100: "oklch(93.2% 0.032 255.585)",
48
48
  200: "oklch(88.2% 0.059 254.128)",
@@ -53,17 +53,34 @@ const c = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), o = {
53
53
  700: "oklch(48.8% 0.243 264.376)",
54
54
  800: "oklch(42.4% 0.199 265.638)",
55
55
  900: "oklch(37.9% 0.146 265.522)"
56
- }, r = [`${c}**/*.{js,mjs}`], a = {
56
+ }, k = [`${o}**/*.{js,mjs}`], t = {
57
+ fontFamily: {
58
+ sans: ["Lato", "ui-sans-serif", "system-ui", "sans-serif"],
59
+ mono: ["ui-monospace", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "monospace"]
60
+ },
61
+ fontSize: {
62
+ sm: ["0.6875rem", "1rem"],
63
+ base: ["0.8125rem", "1.25rem"],
64
+ lg: ["1rem", "1.5rem"],
65
+ xl: ["1.25rem", "1.75rem"],
66
+ "2xl": ["1.5rem", "2rem"],
67
+ "3xl": ["1.875rem", "2.25rem"]
68
+ },
69
+ fontWeight: {
70
+ normal: "400",
71
+ medium: "500",
72
+ bold: "700"
73
+ },
57
74
  colors: {
58
75
  transparent: "transparent",
59
76
  current: "currentColor",
60
77
  black: "#000000",
61
78
  white: "#ffffff",
62
- gray: o,
79
+ gray: c,
63
80
  red: l,
64
- yellow: h,
65
- green: k,
66
- blue: t,
81
+ yellow: e,
82
+ green: r,
83
+ blue: h,
67
84
  accent: {
68
85
  50: "var(--color-accent-50)",
69
86
  100: "var(--color-accent-100)",
@@ -78,12 +95,12 @@ const c = new URL(import.meta.url).pathname.replace(/[^/]*$/, ""), o = {
78
95
  },
79
96
  "button-text-color": "var(--button-text-color, #ffffff)"
80
97
  }
81
- }, e = {
82
- content: r,
83
- theme: a
98
+ }, a = {
99
+ content: k,
100
+ theme: t
84
101
  };
85
102
  export {
86
- r as content,
87
- e as default,
88
- a as theme
103
+ k as content,
104
+ a as default,
105
+ t as theme
89
106
  };
package/dist/theme.css CHANGED
@@ -2,8 +2,37 @@
2
2
  * Native Tailwind v4 CSS-first equivalent of `tailwind-preset.ts`.
3
3
  * `--color-*: initial` clears Tailwind's default palette because `theme.colors`
4
4
  * in the JS preset was a full replacement, not an `extend` — same behavior here.
5
+ * Same for fonts, font sizes and font weights.
5
6
  */
6
7
  @theme {
8
+ /* Lato is only loaded through the optional `fonts.css`. Consumers using another
9
+ font override `--font-sans` in their own `@theme` block. */
10
+ --font-*: initial;
11
+ --font-sans: "Lato", ui-sans-serif, system-ui, sans-serif;
12
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
13
+
14
+ /* rem equivalents of 11/13/16/20/24/30px (with a 16px root), so sizes follow
15
+ the user's browser font size setting. */
16
+ --text-*: initial;
17
+ --text-sm: 0.6875rem;
18
+ --text-sm--line-height: 1rem;
19
+ --text-base: 0.8125rem;
20
+ --text-base--line-height: 1.25rem;
21
+ --text-lg: 1rem;
22
+ --text-lg--line-height: 1.5rem;
23
+ --text-xl: 1.25rem;
24
+ --text-xl--line-height: 1.75rem;
25
+ --text-2xl: 1.5rem;
26
+ --text-2xl--line-height: 2rem;
27
+ --text-3xl: 1.875rem;
28
+ --text-3xl--line-height: 2.25rem;
29
+
30
+ /* Only the weights shipped by `fonts.css`. */
31
+ --font-weight-*: initial;
32
+ --font-weight-normal: 400;
33
+ --font-weight-medium: 500;
34
+ --font-weight-bold: 700;
35
+
7
36
  --color-*: initial;
8
37
 
9
38
  --color-transparent: transparent;
@@ -84,6 +113,25 @@
84
113
  --color-button-text-color: var(--button-text-color, #ffffff);
85
114
  }
86
115
 
116
+ /* Defaults that still apply when consumers disable Tailwind's preflight. Set on
117
+ `body`, not `html`, so `1rem` keeps following the browser's font size. Form
118
+ controls don't inherit the page font by default. */
119
+ @layer base {
120
+ body {
121
+ font-family: var(--font-sans);
122
+ font-size: var(--text-base);
123
+ line-height: var(--text-base--line-height);
124
+ }
125
+
126
+ button,
127
+ input,
128
+ select,
129
+ textarea {
130
+ font-family: inherit;
131
+ font-size: inherit;
132
+ }
133
+ }
134
+
87
135
  /* Lets consumers `@import` this file without also adding the package's own
88
136
  built output to their content globs. */
89
137
  @source "./**/*.{js,mjs}";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@neuralytics/alpine-ds",
3
3
  "type": "module",
4
- "version": "0.6.0",
4
+ "version": "0.7.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -19,7 +19,8 @@
19
19
  "types": "./dist/tailwind-preset.d.ts",
20
20
  "import": "./dist/tailwind-preset.mjs"
21
21
  },
22
- "./theme.css": "./dist/theme.css"
22
+ "./theme.css": "./dist/theme.css",
23
+ "./fonts.css": "./dist/fonts.css"
23
24
  },
24
25
  "main": "./dist/index.mjs",
25
26
  "types": "dist/index.d.ts",
@@ -54,7 +55,7 @@
54
55
  "vue-tsc": "^3.1.5"
55
56
  },
56
57
  "scripts": {
57
- "build": "vite build && cp src/theme.css dist/theme.css",
58
+ "build": "vite build && cp src/theme.css src/fonts.css dist/ && cp -R src/fonts dist/fonts",
58
59
  "test": "vitest run",
59
60
  "test:watch": "vitest",
60
61
  "typecheck": "vue-tsc -p tsconfig.app.json --noEmit"