@sereno-ds/tokens 0.36.3 → 0.37.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @sereno-ds/tokens
2
2
 
3
- The token layer of the Sereno Design System — CSS custom properties (colors, typography, spacing, radii, elevation, motion) with light and `[data-theme="dark"]` values. CSS-first: the one JS export ([Breakpoints](#breakpoints), below) exists only for values a CSS custom property can't serve on its own.
3
+ The token layer of the Sereno Design System. CSS custom properties (colors, typography, spacing, radii, elevation, motion) with light and `[data-theme="dark"]` values. CSS-first: the one JS export ([Breakpoints](#breakpoints), below) exists only for values a CSS custom property can't serve on its own.
4
4
 
5
5
  Required by [`@sereno-ds/ui`](https://www.npmjs.com/package/@sereno-ds/ui); usable on its own if you want the Sereno scales without the components.
6
6
 
@@ -27,16 +27,16 @@ import '@sereno-ds/tokens/spacing.css';
27
27
 
28
28
  ## Breakpoints
29
29
 
30
- `spacing.css` defines the canonical breakpoints as `--bp-sm` / `--bp-md` / `--bp-lg` / `--bp-xl`, but a CSS `@media` query can't read a custom property — anything that has to write one (a Tailwind `@theme`, a `matchMedia` call) needs the literal pixel number. Import it instead of retyping it by hand:
30
+ `spacing.css` defines the canonical breakpoints as `--bp-sm` / `--bp-md` / `--bp-lg` / `--bp-xl`, but a CSS `@media` query can't read a custom property, anything that has to write one (a Tailwind `@theme`, a `matchMedia` call) needs the literal pixel number. Import it instead of retyping it by hand:
31
31
 
32
32
  ```ts
33
33
  import { breakpoints } from '@sereno-ds/tokens/breakpoints';
34
34
  // { sm: 560, md: 768, lg: 1024, xl: 1280 }
35
35
  ```
36
36
 
37
- A build-time check keeps this in sync with `spacing.css` — the two can never silently drift apart.
37
+ A build-time check keeps this in sync with `spacing.css`, the two can never silently drift apart.
38
38
 
39
- CSS still can't import a JS value, so a tool like Tailwind v4's `@theme` (which compiles breakpoints straight into `@media` rules) still needs the literal number written in its own config — this export just gives you something to read that number *from* instead of hand-copying it, and something a consumer-side test can assert against so a future change to `--bp-*` doesn't drift silently:
39
+ CSS still can't import a JS value, so a tool like Tailwind v4's `@theme` (which compiles breakpoints straight into `@media` rules) still needs the literal number written in its own config; this export just gives you something to read that number *from* instead of hand-copying it, and something a consumer-side test can assert against so a future change to `--bp-*` doesn't drift silently:
40
40
 
41
41
  ```ts
42
42
  // e.g. a small check in the consuming app's own test suite
@@ -46,7 +46,7 @@ expect(TAILWIND_THEME.breakpointSm).toBe(`${breakpoints.sm}px`);
46
46
 
47
47
  ## Dark mode
48
48
 
49
- `colors.css` and `elevation.css` carry `[data-theme="dark"]` overrides. Set `data-theme="dark"` (or `"light"`) on `<html>` — `@sereno-ds/ui`'s `ThemeProvider` does this, or wire your own.
49
+ `colors.css` and `elevation.css` carry `[data-theme="dark"]` overrides. Set `data-theme="dark"` (or `"light"`) on `<html>`: `@sereno-ds/ui`'s `ThemeProvider` does this, or wire your own.
50
50
 
51
51
  ## Fonts
52
52
 
package/colors.css CHANGED
@@ -3,15 +3,15 @@
3
3
  a dark page (theme islands). Token VALUES are unchanged from the DS source. */
4
4
  :root, [data-theme="light"]{
5
5
  /* ── Base ramps ─────────────────────────────────────────────── */
6
- /* Brand — calm indigo-blue. Trust without corporate coldness. */
6
+ /* Brand - calm indigo-blue. Trust without corporate coldness. */
7
7
  --brand-50:#EFF1FD;--brand-100:#DFE3FA;--brand-200:#C3CAF4;--brand-300:#A0ABEB;--brand-400:#7D8BDF;
8
8
  --brand-500:#5D6BCE;--brand-600:#4A55B4;--brand-700:#3C4593;--brand-800:#2F3672;--brand-900:#242A55;--brand-950:#171B38;
9
9
 
10
- /* Accent — vivid turquoise. Reserved for the single most important action on a view. */
10
+ /* Accent - vivid turquoise. Reserved for the single most important action on a view. */
11
11
  --accent-50:#E6F8F5;--accent-100:#C4EFE9;--accent-200:#8DE1D6;--accent-300:#52CFC1;--accent-400:#20BCAC;
12
12
  --accent-500:#0FA695;--accent-600:#0A8B7C;--accent-700:#0A6F64;--accent-800:#0B564F;--accent-900:#09423D;
13
13
 
14
- /* Neutrals — cool slate, very slightly blue so it sits under the brand hue. */
14
+ /* Neutrals - cool slate, very slightly blue so it sits under the brand hue. */
15
15
  --neutral-0:#FFFFFF;--neutral-25:#FAFBFD;--neutral-50:#F5F7FA;--neutral-100:#ECEFF4;--neutral-200:#DDE2EA;
16
16
  --neutral-300:#C5CBD6;--neutral-400:#9BA3B3;--neutral-500:#6F788A;--neutral-600:#545C6E;--neutral-700:#3E4554;
17
17
  --neutral-800:#2A303C;--neutral-900:#1B202A;--neutral-950:#12161E;
@@ -66,7 +66,7 @@
66
66
  --interactive-accent:var(--accent-500);
67
67
  --interactive-accent-hover:var(--accent-600);
68
68
  --interactive-accent-active:var(--accent-700);
69
- --interactive-accent-fg:#04231F; /* dark-on-vivid — white failed AA on accent-500 (SS-45) */
69
+ --interactive-accent-fg:#04231F; /* dark-on-vivid - white failed AA on accent-500 (SS-45) */
70
70
  /* Solid semantic action fills (Button / IconButton). Same words as the tint tones. */
71
71
  --interactive-success:var(--green-600);
72
72
  --interactive-success-hover:var(--green-700);
@@ -81,7 +81,7 @@
81
81
  --interactive-disabled-bg:#DFE4EC;
82
82
  --interactive-disabled-fg:var(--neutral-400);
83
83
 
84
- /* Status — booking lifecycle */
84
+ /* Status - booking lifecycle */
85
85
  --status-success-bg:var(--green-100);--status-success-fg:var(--green-700);--status-success-dot:var(--green-500);
86
86
  --status-warning-bg:var(--amber-100);--status-warning-fg:var(--amber-700);--status-warning-dot:var(--amber-500);
87
87
  --status-error-bg:var(--red-100);--status-error-fg:var(--red-600);--status-error-dot:var(--red-500);
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Pixel breakpoints — mirrors `--bp-sm` / `--bp-md` / `--bp-lg` / `--bp-xl` in
2
+ * Pixel breakpoints - mirrors `--bp-sm` / `--bp-md` / `--bp-lg` / `--bp-xl` in
3
3
  * `spacing.css`. A CSS `@media` query can't read a custom property, so
4
4
  * anything that has to write one (a Tailwind `@theme`, a `matchMedia` call, a
5
- * React Native `useWindowDimensions` check) needs the literal number — import
5
+ * React Native `useWindowDimensions` check) needs the literal number - import
6
6
  * this instead of retyping it by hand. Kept in sync with `spacing.css` by
7
7
  * `scripts/check-breakpoints.mjs`, which fails the build if they disagree.
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/breakpoints.ts"],"sourcesContent":["/**\n * Pixel breakpoints — mirrors `--bp-sm` / `--bp-md` / `--bp-lg` / `--bp-xl` in\n * `spacing.css`. A CSS `@media` query can't read a custom property, so\n * anything that has to write one (a Tailwind `@theme`, a `matchMedia` call, a\n * React Native `useWindowDimensions` check) needs the literal number — import\n * this instead of retyping it by hand. Kept in sync with `spacing.css` by\n * `scripts/check-breakpoints.mjs`, which fails the build if they disagree.\n */\nexport const breakpoints = {\n sm: 560,\n md: 768,\n lg: 1024,\n xl: 1280,\n} as const;\n\nexport type Breakpoint = keyof typeof breakpoints;\n"],"mappings":"AAQO,MAAM,cAAc;AAAA,EACzB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;","names":[]}
1
+ {"version":3,"sources":["../src/breakpoints.ts"],"sourcesContent":["/**\n * Pixel breakpoints - mirrors `--bp-sm` / `--bp-md` / `--bp-lg` / `--bp-xl` in\n * `spacing.css`. A CSS `@media` query can't read a custom property, so\n * anything that has to write one (a Tailwind `@theme`, a `matchMedia` call, a\n * React Native `useWindowDimensions` check) needs the literal number - import\n * this instead of retyping it by hand. Kept in sync with `spacing.css` by\n * `scripts/check-breakpoints.mjs`, which fails the build if they disagree.\n */\nexport const breakpoints = {\n sm: 560,\n md: 768,\n lg: 1024,\n xl: 1280,\n} as const;\n\nexport type Breakpoint = keyof typeof breakpoints;\n"],"mappings":"AAQO,MAAM,cAAc;AAAA,EACzB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;","names":[]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sereno-ds/tokens",
3
- "version": "0.36.3",
4
- "description": "Sereno Design System — the token layer (CSS custom properties, light × dark).",
3
+ "version": "0.37.0",
4
+ "description": "Sereno Design System: the token layer (CSS custom properties, light × dark).",
5
5
  "license": "MIT",
6
6
  "author": "Sereno",
7
7
  "repository": {
package/spacing.css CHANGED
@@ -9,12 +9,12 @@
9
9
  --container-narrow:480px;--container-content:760px;--container-app:1240px;
10
10
  --bottom-nav-height:64px;--topbar-height:60px;--sidebar-width:248px;
11
11
 
12
- /* Layout grid — no column system by design; layout is flex / CSS grid bounded by
13
- the container widths above. These are the canonical breakpoints (reference —
12
+ /* Layout grid - no column system by design; layout is flex / CSS grid bounded by
13
+ the container widths above. These are the canonical breakpoints (reference -
14
14
  CSS @media cannot read custom properties, so media queries repeat the values). */
15
15
  --bp-sm:560px;--bp-md:768px;--bp-lg:1024px;--bp-xl:1280px;
16
16
 
17
- /* Iconography — lucide-react at strokeWidth 1.75. sm/md controls use 16, lg uses
17
+ /* Iconography - lucide-react at strokeWidth 1.75. sm/md controls use 16, lg uses
18
18
  18, standalone icons 20; xs/xl for dense chrome and hero marks. */
19
19
  --icon-xs:14px;--icon-sm:16px;--icon-md:18px;--icon-lg:20px;--icon-xl:24px;
20
20
  }
package/tokens.css CHANGED
@@ -1,4 +1,4 @@
1
- /* @sereno-ds/tokens — the full token layer, in the order components expect.
1
+ /* @sereno-ds/tokens - the full token layer, in the order components expect.
2
2
  `colors` and `elevation` carry the `[data-theme="dark"]` overrides; `base` is
3
3
  the element reset. Import this once at the app root (before @sereno-ds/ui/styles.css). */
4
4
  @import url("./colors.css");
package/typography.css CHANGED
@@ -1,5 +1,5 @@
1
1
  :root{
2
- /* Font families are provided by next/font/google (self-hosted, no CDN — SS-39 decisão 3).
2
+ /* Font families are provided by next/font/google (self-hosted, no CDN - SS-39 decisão 3).
3
3
  The scale, weights and tracking below are untouched from the Design System tokens;
4
4
  only the family strings are wired to the next/font CSS variables set in app/layout.tsx. */
5
5
  --font-display:var(--font-manrope),"Segoe UI",system-ui,sans-serif;