@esuiss/tailwind 0.5.3 → 0.5.4

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 CHANGED
@@ -1,10 +1,10 @@
1
1
  # @esuiss/tailwind
2
2
 
3
- Tailwind CSS variants, animations, utilities, and base styles used by esuiss-ui components. Installed by `npx @esuiss/ui@latest init`.
3
+ The type scale, Tailwind CSS variants, animations, utilities, and base styles used by esuiss-ui components. Installed by `npx @esuiss/ui@latest init`.
4
4
 
5
5
  ```css
6
6
  @import "tailwindcss";
7
7
  @import "@esuiss/tailwind";
8
8
  ```
9
9
 
10
- Your theme stays in your own stylesheet: colors under `:root` and `.dark`, and the `@theme inline` block that maps them to Tailwind classes. Requires Tailwind CSS 4.2 or later.
10
+ Your theme stays in your own stylesheet: colors under `:root` and `.dark`, and the `@theme inline` block that maps them to Tailwind classes. The type scale (`text-3xs` to `text-3xl`) comes from this package; to change a size, redefine it in your own `@theme` block, for example `--text-base: 1rem;`. Requires Tailwind CSS 4.2 or later.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esuiss/tailwind",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Tailwind CSS variants, animations, utilities, and base styles for esuiss-ui components.",
5
5
  "keywords": [
6
6
  "tailwindcss",
package/tailwind.css CHANGED
@@ -2,6 +2,39 @@
2
2
 
3
3
  @custom-variant dark (&:is(.dark *));
4
4
 
5
+ @theme {
6
+ --text-3xs: 0.6875rem;
7
+ --text-3xs--line-height: 0.8125rem;
8
+ --text-3xs--letter-spacing: 0.006em;
9
+ --text-2xs: 0.75rem;
10
+ --text-2xs--line-height: 1rem;
11
+ --text-2xs--letter-spacing: 0em;
12
+ --text-xs: 0.8125rem;
13
+ --text-xs--line-height: 1.125rem;
14
+ --text-xs--letter-spacing: -0.006em;
15
+ --text-sm: 0.9375rem;
16
+ --text-sm--line-height: 1.25rem;
17
+ --text-sm--letter-spacing: -0.016em;
18
+ --text-md: 1rem;
19
+ --text-md--line-height: 1.3125rem;
20
+ --text-md--letter-spacing: -0.02em;
21
+ --text-base: 1.0625rem;
22
+ --text-base--line-height: 1.375rem;
23
+ --text-base--letter-spacing: -0.026em;
24
+ --text-lg: 1.25rem;
25
+ --text-lg--line-height: 1.5625rem;
26
+ --text-lg--letter-spacing: -0.023em;
27
+ --text-xl: 1.375rem;
28
+ --text-xl--line-height: 1.75rem;
29
+ --text-xl--letter-spacing: -0.012em;
30
+ --text-2xl: 1.75rem;
31
+ --text-2xl--line-height: 2.125rem;
32
+ --text-2xl--letter-spacing: 0.014em;
33
+ --text-3xl: 2.125rem;
34
+ --text-3xl--line-height: 2.5625rem;
35
+ --text-3xl--letter-spacing: 0.012em;
36
+ }
37
+
5
38
  @theme inline {
6
39
  @keyframes accordion-down {
7
40
  from {