@sereno-ds/tokens 0.24.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 +38 -0
- package/base.css +6 -0
- package/colors.css +157 -0
- package/elevation.css +22 -0
- package/motion.css +23 -0
- package/package.json +44 -0
- package/radii.css +5 -0
- package/spacing.css +20 -0
- package/tokens.css +10 -0
- package/typography.css +24 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Gabriel Gomes Barbosa
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @sereno-ds/tokens
|
|
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. No JS.
|
|
4
|
+
|
|
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
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm i @sereno-ds/tokens
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Use
|
|
14
|
+
|
|
15
|
+
Import the barrel once at the app root, **before** any component styles:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import '@sereno-ds/tokens/tokens.css';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
That pulls, in order: `colors`, `typography`, `spacing`, `radii`, `elevation`, `motion`, `base` (a light element reset). You can also import a single layer:
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import '@sereno-ds/tokens/colors.css';
|
|
25
|
+
import '@sereno-ds/tokens/spacing.css';
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Dark mode
|
|
29
|
+
|
|
30
|
+
`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.
|
|
31
|
+
|
|
32
|
+
## Fonts
|
|
33
|
+
|
|
34
|
+
`typography.css` maps `--font-display` / `--font-body` / `--font-mono` onto three variables the host provides: `--font-manrope`, `--font-inter`, `--font-jetbrains-mono` (each with a system fallback). See the `@sereno-ds/ui` README for setup.
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
MIT
|
package/base.css
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
body{margin:0;background:var(--bg-canvas);color:var(--text-primary);font-family:var(--font-body);font-size:var(--text-base);line-height:var(--leading-normal);-webkit-font-smoothing:antialiased}
|
|
2
|
+
h1,h2,h3,h4{font-family:var(--font-display);font-weight:var(--weight-bold);letter-spacing:var(--tracking-tight);margin:0;color:var(--text-primary)}
|
|
3
|
+
a{color:var(--text-link);text-decoration:none}
|
|
4
|
+
a:hover{color:var(--text-link-hover);text-decoration:underline;text-underline-offset:2px}
|
|
5
|
+
*{box-sizing:border-box}
|
|
6
|
+
::selection{background:color-mix(in srgb,var(--brand-400) 35%,transparent)}
|
package/colors.css
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/* Selector widened from `:root` to also cover an explicit `[data-theme="light"]`
|
|
2
|
+
scope, so the /design-system/tokens page can render a light panel nested inside
|
|
3
|
+
a dark page (theme islands). Token VALUES are unchanged from the DS source. */
|
|
4
|
+
:root, [data-theme="light"]{
|
|
5
|
+
/* ── Base ramps ─────────────────────────────────────────────── */
|
|
6
|
+
/* Brand — calm indigo-blue. Trust without corporate coldness. */
|
|
7
|
+
--brand-50:#EFF1FD;--brand-100:#DFE3FA;--brand-200:#C3CAF4;--brand-300:#A0ABEB;--brand-400:#7D8BDF;
|
|
8
|
+
--brand-500:#5D6BCE;--brand-600:#4A55B4;--brand-700:#3C4593;--brand-800:#2F3672;--brand-900:#242A55;--brand-950:#171B38;
|
|
9
|
+
|
|
10
|
+
/* Accent — vivid turquoise. Reserved for the single most important action on a view. */
|
|
11
|
+
--accent-50:#E6F8F5;--accent-100:#C4EFE9;--accent-200:#8DE1D6;--accent-300:#52CFC1;--accent-400:#20BCAC;
|
|
12
|
+
--accent-500:#0FA695;--accent-600:#0A8B7C;--accent-700:#0A6F64;--accent-800:#0B564F;--accent-900:#09423D;
|
|
13
|
+
|
|
14
|
+
/* Neutrals — cool slate, very slightly blue so it sits under the brand hue. */
|
|
15
|
+
--neutral-0:#FFFFFF;--neutral-25:#FAFBFD;--neutral-50:#F5F7FA;--neutral-100:#ECEFF4;--neutral-200:#DDE2EA;
|
|
16
|
+
--neutral-300:#C5CBD6;--neutral-400:#9BA3B3;--neutral-500:#6F788A;--neutral-600:#545C6E;--neutral-700:#3E4554;
|
|
17
|
+
--neutral-800:#2A303C;--neutral-900:#1B202A;--neutral-950:#12161E;
|
|
18
|
+
|
|
19
|
+
/* Semantic ramps */
|
|
20
|
+
--green-100:#D9F2E5;--green-200:#A7E1C6;--green-500:#2E9E6B;--green-600:#238055;--green-700:#1C7249;--green-900:#123A28;
|
|
21
|
+
--amber-100:#FBEDD3;--amber-200:#F4D8A2;--amber-500:#C8811F;--amber-600:#A66A16;--amber-700:#8A5410;--amber-900:#40290A;
|
|
22
|
+
--red-100:#FBE0DF;--red-200:#F3B9B7;--red-500:#D0473F;--red-600:#AE372F;--red-900:#421512;
|
|
23
|
+
--violet-100:#EEE6FB;--violet-500:#7C5AC7;--violet-900:#2C1F4A;
|
|
24
|
+
|
|
25
|
+
/* ── Semantic aliases (light theme) ───────────────────────────
|
|
26
|
+
Background scale revised 2026-08-29 (product-owner decision, supersedes the
|
|
27
|
+
original "não reescrever" note): the previous canvas (#F5F7FA) sat too close to
|
|
28
|
+
the white surface and to brand-soft, so `secondary` buttons and tinted panels
|
|
29
|
+
didn't read against the page. Canvas is now a clear cool-grey step below the
|
|
30
|
+
surface; the soft tints and low-emphasis fills moved one ramp step to keep the
|
|
31
|
+
separation. Text / brand / accent / status hues are unchanged. */
|
|
32
|
+
--bg-canvas:#E8ECF3;
|
|
33
|
+
--bg-surface:var(--neutral-0);
|
|
34
|
+
--bg-raised:var(--neutral-0);
|
|
35
|
+
--bg-subtle:#DFE4EC;
|
|
36
|
+
--bg-sunken:#D9DFE9;
|
|
37
|
+
--bg-inverse:var(--neutral-900);
|
|
38
|
+
--bg-brand-soft:var(--brand-100);
|
|
39
|
+
--bg-accent-soft:var(--accent-100);
|
|
40
|
+
--bg-overlay:rgba(27,32,42,.48);
|
|
41
|
+
|
|
42
|
+
--text-primary:var(--neutral-900);
|
|
43
|
+
--text-secondary:var(--neutral-600);
|
|
44
|
+
--text-muted:#616A7B; /* was neutral-500; darkened for AA on surface+canvas (SS-45) */
|
|
45
|
+
--text-disabled:var(--neutral-400);
|
|
46
|
+
--text-inverse:var(--neutral-0);
|
|
47
|
+
--text-brand:var(--brand-600);
|
|
48
|
+
--text-accent:var(--accent-700); /* AA on white (SS-45) */
|
|
49
|
+
--text-link:var(--brand-600);
|
|
50
|
+
--text-link-hover:var(--brand-700);
|
|
51
|
+
|
|
52
|
+
--border-subtle:var(--neutral-100);
|
|
53
|
+
--border-default:var(--neutral-200);
|
|
54
|
+
--border-strong:var(--neutral-300);
|
|
55
|
+
--border-brand:var(--brand-400);
|
|
56
|
+
--border-focus:var(--brand-500);
|
|
57
|
+
|
|
58
|
+
--interactive-primary:var(--brand-600);
|
|
59
|
+
--interactive-primary-hover:var(--brand-700);
|
|
60
|
+
--interactive-primary-active:var(--brand-800);
|
|
61
|
+
--interactive-primary-fg:var(--neutral-0);
|
|
62
|
+
--interactive-secondary:var(--neutral-0);
|
|
63
|
+
--interactive-secondary-hover:#E6EAF1;
|
|
64
|
+
--interactive-secondary-active:#DAE0EA;
|
|
65
|
+
--interactive-secondary-fg:var(--neutral-800);
|
|
66
|
+
--interactive-accent:var(--accent-500);
|
|
67
|
+
--interactive-accent-hover:var(--accent-600);
|
|
68
|
+
--interactive-accent-active:var(--accent-700);
|
|
69
|
+
--interactive-accent-fg:#04231F; /* dark-on-vivid — white failed AA on accent-500 (SS-45) */
|
|
70
|
+
/* Solid semantic action fills (Button / IconButton). Same words as the tint tones. */
|
|
71
|
+
--interactive-success:var(--green-600);
|
|
72
|
+
--interactive-success-hover:var(--green-700);
|
|
73
|
+
--interactive-success-fg:#FFFFFF;
|
|
74
|
+
--interactive-warning:#9C6414;
|
|
75
|
+
--interactive-warning-hover:#7C4E10;
|
|
76
|
+
--interactive-warning-fg:#FFFFFF;
|
|
77
|
+
--interactive-error:var(--red-500);
|
|
78
|
+
--interactive-error-hover:var(--red-600);
|
|
79
|
+
--interactive-error-fg:#FFFFFF;
|
|
80
|
+
--interactive-ghost-hover:#DFE4EC;
|
|
81
|
+
--interactive-disabled-bg:#DFE4EC;
|
|
82
|
+
--interactive-disabled-fg:var(--neutral-400);
|
|
83
|
+
|
|
84
|
+
/* Status — booking lifecycle */
|
|
85
|
+
--status-success-bg:var(--green-100);--status-success-fg:var(--green-700);--status-success-dot:var(--green-500);
|
|
86
|
+
--status-warning-bg:var(--amber-100);--status-warning-fg:var(--amber-700);--status-warning-dot:var(--amber-500);
|
|
87
|
+
--status-error-bg:var(--red-100);--status-error-fg:var(--red-600);--status-error-dot:var(--red-500);
|
|
88
|
+
--status-neutral-bg:var(--neutral-100);--status-neutral-fg:var(--neutral-600);--status-neutral-dot:var(--neutral-400);
|
|
89
|
+
--status-info-bg:var(--brand-50);--status-info-fg:var(--brand-600);--status-info-dot:var(--brand-500);
|
|
90
|
+
|
|
91
|
+
--focus-ring:0 0 0 3px color-mix(in srgb,var(--brand-500) 30%,transparent);
|
|
92
|
+
--focus-ring-accent:0 0 0 3px color-mix(in srgb,var(--accent-500) 32%,transparent);
|
|
93
|
+
color-scheme:light;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[data-theme="dark"]{
|
|
97
|
+
--bg-canvas:var(--neutral-950);
|
|
98
|
+
--bg-surface:var(--neutral-900);
|
|
99
|
+
--bg-raised:var(--neutral-800);
|
|
100
|
+
--bg-subtle:var(--neutral-800);
|
|
101
|
+
--bg-sunken:#0D1017;
|
|
102
|
+
--bg-inverse:var(--neutral-100);
|
|
103
|
+
--bg-brand-soft:color-mix(in srgb,var(--brand-500) 16%,var(--neutral-900));
|
|
104
|
+
--bg-accent-soft:color-mix(in srgb,var(--accent-500) 15%,var(--neutral-900));
|
|
105
|
+
--bg-overlay:rgba(6,9,14,.66);
|
|
106
|
+
|
|
107
|
+
--text-primary:#E9ECF3;
|
|
108
|
+
--text-secondary:#A8B0C0;
|
|
109
|
+
--text-muted:#909AAD; /* lightened for AA on bg-subtle (SS-45) */
|
|
110
|
+
--text-disabled:#5A6273;
|
|
111
|
+
--text-inverse:var(--neutral-900);
|
|
112
|
+
--text-brand:var(--brand-300);
|
|
113
|
+
--text-accent:var(--accent-300);
|
|
114
|
+
--text-link:var(--brand-300);
|
|
115
|
+
--text-link-hover:var(--brand-200);
|
|
116
|
+
|
|
117
|
+
--border-subtle:#242B37;
|
|
118
|
+
--border-default:#313949;
|
|
119
|
+
--border-strong:#414A5C;
|
|
120
|
+
--border-brand:var(--brand-500);
|
|
121
|
+
--border-focus:var(--brand-400);
|
|
122
|
+
|
|
123
|
+
--interactive-primary:var(--brand-400);
|
|
124
|
+
--interactive-primary-hover:var(--brand-300);
|
|
125
|
+
--interactive-primary-active:var(--brand-200);
|
|
126
|
+
--interactive-primary-fg:#0F1220; /* fill bumped a step so #0F1220 clears AA (SS-45) */
|
|
127
|
+
--interactive-secondary:var(--neutral-800);
|
|
128
|
+
--interactive-secondary-hover:#333B49;
|
|
129
|
+
--interactive-secondary-active:#3C4553;
|
|
130
|
+
--interactive-secondary-fg:#E9ECF3;
|
|
131
|
+
--interactive-accent:var(--accent-400);
|
|
132
|
+
--interactive-accent-hover:var(--accent-300);
|
|
133
|
+
--interactive-accent-active:var(--accent-200);
|
|
134
|
+
--interactive-accent-fg:#04231F;
|
|
135
|
+
--interactive-success:#4FC189;
|
|
136
|
+
--interactive-success-hover:#6FD3A2;
|
|
137
|
+
--interactive-success-fg:#04231A;
|
|
138
|
+
--interactive-warning:#E0A64F;
|
|
139
|
+
--interactive-warning-hover:#EBBC72;
|
|
140
|
+
--interactive-warning-fg:#3A2708;
|
|
141
|
+
--interactive-error:#E06B63;
|
|
142
|
+
--interactive-error-hover:#EA8781;
|
|
143
|
+
--interactive-error-fg:#3A100D;
|
|
144
|
+
--interactive-ghost-hover:#262E3B;
|
|
145
|
+
--interactive-disabled-bg:#242B37;
|
|
146
|
+
--interactive-disabled-fg:#5A6273;
|
|
147
|
+
|
|
148
|
+
--status-success-bg:color-mix(in srgb,var(--green-500) 20%,var(--neutral-900));--status-success-fg:#7FD9AC;--status-success-dot:#4FC189;
|
|
149
|
+
--status-warning-bg:color-mix(in srgb,var(--amber-500) 20%,var(--neutral-900));--status-warning-fg:#EFC076;--status-warning-dot:#E0A64F;
|
|
150
|
+
--status-error-bg:color-mix(in srgb,var(--red-500) 20%,var(--neutral-900));--status-error-fg:#F0A19B;--status-error-dot:#E2736B;
|
|
151
|
+
--status-neutral-bg:#262E3B;--status-neutral-fg:#A8B0C0;--status-neutral-dot:#6F788A;
|
|
152
|
+
--status-info-bg:color-mix(in srgb,var(--brand-500) 20%,var(--neutral-900));--status-info-fg:var(--brand-200);--status-info-dot:var(--brand-400);
|
|
153
|
+
|
|
154
|
+
--focus-ring:0 0 0 3px color-mix(in srgb,var(--brand-400) 40%,transparent);
|
|
155
|
+
--focus-ring-accent:0 0 0 3px color-mix(in srgb,var(--accent-400) 40%,transparent);
|
|
156
|
+
color-scheme:dark;
|
|
157
|
+
}
|
package/elevation.css
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
:root{
|
|
2
|
+
--shadow-none:none;
|
|
3
|
+
--shadow-xs:0 1px 2px rgba(27,32,42,.06);
|
|
4
|
+
--shadow-sm:0 1px 2px rgba(27,32,42,.06),0 1px 3px rgba(27,32,42,.05);
|
|
5
|
+
--shadow-md:0 2px 4px rgba(27,32,42,.05),0 6px 16px -4px rgba(27,32,42,.10);
|
|
6
|
+
--shadow-lg:0 4px 8px rgba(27,32,42,.05),0 16px 32px -8px rgba(27,32,42,.14);
|
|
7
|
+
--shadow-sheet:0 -6px 28px -6px rgba(27,32,42,.16);
|
|
8
|
+
--shadow-focus-inset:inset 0 0 0 1.5px var(--border-focus);
|
|
9
|
+
--shadow-brand:0 6px 18px -6px color-mix(in srgb,var(--brand-600) 45%,transparent);
|
|
10
|
+
--shadow-accent:0 6px 18px -6px color-mix(in srgb,var(--accent-500) 50%,transparent);
|
|
11
|
+
--scrim-top:linear-gradient(to bottom,var(--bg-surface),transparent);
|
|
12
|
+
--scrim-bottom:linear-gradient(to top,var(--bg-surface),transparent);
|
|
13
|
+
}
|
|
14
|
+
[data-theme="dark"]{
|
|
15
|
+
--shadow-xs:0 1px 2px rgba(0,0,0,.35);
|
|
16
|
+
--shadow-sm:0 1px 2px rgba(0,0,0,.4),0 1px 3px rgba(0,0,0,.3);
|
|
17
|
+
--shadow-md:0 2px 4px rgba(0,0,0,.35),0 6px 16px -4px rgba(0,0,0,.5);
|
|
18
|
+
--shadow-lg:0 4px 8px rgba(0,0,0,.4),0 16px 32px -8px rgba(0,0,0,.6);
|
|
19
|
+
--shadow-sheet:0 -6px 28px -6px rgba(0,0,0,.6);
|
|
20
|
+
--shadow-brand:0 6px 18px -6px color-mix(in srgb,var(--brand-500) 55%,transparent);
|
|
21
|
+
--shadow-accent:0 6px 18px -6px color-mix(in srgb,var(--accent-400) 45%,transparent);
|
|
22
|
+
}
|
package/motion.css
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
:root{
|
|
2
|
+
--duration-instant:80ms; /* @kind other */
|
|
3
|
+
--duration-fast:140ms; /* @kind other */
|
|
4
|
+
--duration-normal:220ms; /* @kind other */
|
|
5
|
+
--duration-slow:340ms; /* @kind other */
|
|
6
|
+
--duration-sheet:420ms; /* @kind other */
|
|
7
|
+
--ease-standard:cubic-bezier(.2,0,0,1); /* @kind other */
|
|
8
|
+
--ease-out:cubic-bezier(.16,1,.3,1); /* @kind other */
|
|
9
|
+
--ease-in:cubic-bezier(.4,0,1,1); /* @kind other */
|
|
10
|
+
--ease-gentle:cubic-bezier(.32,.72,0,1); /* @kind other */
|
|
11
|
+
--transition-control:background-color var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard),transform var(--duration-fast) var(--ease-standard); /* @kind other */
|
|
12
|
+
--press-scale:0.98; /* @kind other */
|
|
13
|
+
--hover-lift:-1px;
|
|
14
|
+
}
|
|
15
|
+
@media (prefers-reduced-motion:reduce){:root{
|
|
16
|
+
--duration-instant:0ms; /* @kind other */
|
|
17
|
+
--duration-fast:0ms; /* @kind other */
|
|
18
|
+
--duration-normal:0ms; /* @kind other */
|
|
19
|
+
--duration-slow:0ms; /* @kind other */
|
|
20
|
+
--duration-sheet:0ms; /* @kind other */
|
|
21
|
+
--press-scale:1; /* @kind other */
|
|
22
|
+
--hover-lift:0px;
|
|
23
|
+
}}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sereno-ds/tokens",
|
|
3
|
+
"version": "0.24.0",
|
|
4
|
+
"description": "Sereno Design System — the token layer (CSS custom properties, light × dark).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Sereno",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/GabrielGomesBarbosa/sereno-ds.git",
|
|
10
|
+
"directory": "packages/tokens"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/GabrielGomesBarbosa/sereno-ds/tree/main/packages/tokens#readme",
|
|
13
|
+
"bugs": "https://github.com/GabrielGomesBarbosa/sereno-ds/issues",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"design-tokens",
|
|
16
|
+
"css-variables",
|
|
17
|
+
"design-system",
|
|
18
|
+
"sereno"
|
|
19
|
+
],
|
|
20
|
+
"sideEffects": [
|
|
21
|
+
"*.css"
|
|
22
|
+
],
|
|
23
|
+
"exports": {
|
|
24
|
+
".": "./tokens.css",
|
|
25
|
+
"./tokens.css": "./tokens.css",
|
|
26
|
+
"./colors.css": "./colors.css",
|
|
27
|
+
"./typography.css": "./typography.css",
|
|
28
|
+
"./spacing.css": "./spacing.css",
|
|
29
|
+
"./radii.css": "./radii.css",
|
|
30
|
+
"./elevation.css": "./elevation.css",
|
|
31
|
+
"./motion.css": "./motion.css",
|
|
32
|
+
"./base.css": "./base.css",
|
|
33
|
+
"./package.json": "./package.json"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"*.css",
|
|
37
|
+
"README.md",
|
|
38
|
+
"LICENSE"
|
|
39
|
+
],
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public",
|
|
42
|
+
"provenance": true
|
|
43
|
+
}
|
|
44
|
+
}
|
package/radii.css
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
:root{
|
|
2
|
+
--radius-xs:4px;--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--radius-xl:20px;--radius-2xl:28px;--radius-pill:999px;
|
|
3
|
+
--radius-control:10px;--radius-card:14px;--radius-sheet:20px;--radius-avatar:999px;--radius-chip:999px;
|
|
4
|
+
--border-width-hairline:1px;--border-width-emphasis:1.5px;--border-width-focus:2px;
|
|
5
|
+
}
|
package/spacing.css
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
:root{
|
|
2
|
+
--space-0:0px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;
|
|
3
|
+
--space-6:24px;--space-7:32px;--space-8:40px;--space-9:48px;--space-10:64px;--space-11:80px;--space-12:96px;
|
|
4
|
+
|
|
5
|
+
--gutter-mobile:20px;--gutter-desktop:32px;
|
|
6
|
+
--stack-tight:8px;--stack-default:16px;--stack-loose:24px;--stack-section:40px;
|
|
7
|
+
--control-height-sm:32px;--control-height-md:40px;--control-height-lg:48px;--control-height-xl:56px;
|
|
8
|
+
--tap-target-min:44px;
|
|
9
|
+
--container-narrow:480px;--container-content:760px;--container-app:1240px;
|
|
10
|
+
--bottom-nav-height:64px;--topbar-height:60px;--sidebar-width:248px;
|
|
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 —
|
|
14
|
+
CSS @media cannot read custom properties, so media queries repeat the values). */
|
|
15
|
+
--bp-sm:560px;--bp-md:768px;--bp-lg:1024px;--bp-xl:1280px;
|
|
16
|
+
|
|
17
|
+
/* Iconography — lucide-react at strokeWidth 1.75. sm/md controls use 16, lg uses
|
|
18
|
+
18, standalone icons 20; xs/xl for dense chrome and hero marks. */
|
|
19
|
+
--icon-xs:14px;--icon-sm:16px;--icon-md:18px;--icon-lg:20px;--icon-xl:24px;
|
|
20
|
+
}
|
package/tokens.css
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* @sereno-ds/tokens — the full token layer, in the order components expect.
|
|
2
|
+
`colors` and `elevation` carry the `[data-theme="dark"]` overrides; `base` is
|
|
3
|
+
the element reset. Import this once at the app root (before @sereno-ds/ui/styles.css). */
|
|
4
|
+
@import url("./colors.css");
|
|
5
|
+
@import url("./typography.css");
|
|
6
|
+
@import url("./spacing.css");
|
|
7
|
+
@import url("./radii.css");
|
|
8
|
+
@import url("./elevation.css");
|
|
9
|
+
@import url("./motion.css");
|
|
10
|
+
@import url("./base.css");
|
package/typography.css
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
:root{
|
|
2
|
+
/* Font families are provided by next/font/google (self-hosted, no CDN — SS-39 decisão 3).
|
|
3
|
+
The scale, weights and tracking below are untouched from the Design System tokens;
|
|
4
|
+
only the family strings are wired to the next/font CSS variables set in app/layout.tsx. */
|
|
5
|
+
--font-display:var(--font-manrope),"Segoe UI",system-ui,sans-serif;
|
|
6
|
+
--font-body:var(--font-inter),"Segoe UI",system-ui,sans-serif;
|
|
7
|
+
--font-mono:var(--font-jetbrains-mono),ui-monospace,SFMono-Regular,monospace;
|
|
8
|
+
|
|
9
|
+
--text-2xs:11px;--text-xs:12px;--text-sm:13px;--text-base:15px;--text-md:16px;
|
|
10
|
+
--text-lg:18px;--text-xl:21px;--text-2xl:25px;--text-3xl:31px;--text-4xl:38px;--text-5xl:48px;
|
|
11
|
+
|
|
12
|
+
--leading-tight:1.15;--leading-snug:1.3;--leading-normal:1.5;--leading-relaxed:1.65;
|
|
13
|
+
|
|
14
|
+
--weight-regular:400;--weight-medium:500;--weight-semibold:600;--weight-bold:700;--weight-extrabold:800;
|
|
15
|
+
|
|
16
|
+
--tracking-tight:-0.02em;--tracking-snug:-0.011em;--tracking-normal:0;--tracking-wide:0.04em;--tracking-caps:0.07em;
|
|
17
|
+
|
|
18
|
+
/* Role aliases */
|
|
19
|
+
--type-display-family:var(--font-display);
|
|
20
|
+
--type-heading-family:var(--font-display);
|
|
21
|
+
--type-body-family:var(--font-body);
|
|
22
|
+
--type-ui-family:var(--font-body);
|
|
23
|
+
--type-numeric-family:var(--font-body);
|
|
24
|
+
}
|