@nevadale/tokens 0.0.0-stage → 0.0.2
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/dist/index.cjs +87 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +85 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -0
- package/dist/theme.css +118 -0
- package/package.json +55 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Blombô
|
|
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/dist/index.cjs
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/colors.ts
|
|
4
|
+
var lightColors = {
|
|
5
|
+
background: "oklch(1 0 0)",
|
|
6
|
+
foreground: "oklch(0.141 0.005 285.823)",
|
|
7
|
+
card: "oklch(1 0 0)",
|
|
8
|
+
"card-foreground": "oklch(0.141 0.005 285.823)",
|
|
9
|
+
popover: "oklch(1 0 0)",
|
|
10
|
+
"popover-foreground": "oklch(0.141 0.005 285.823)",
|
|
11
|
+
primary: "oklch(0.21 0.006 285.885)",
|
|
12
|
+
"primary-foreground": "oklch(0.985 0 0)",
|
|
13
|
+
secondary: "oklch(0.967 0.001 286.375)",
|
|
14
|
+
"secondary-foreground": "oklch(0.21 0.006 285.885)",
|
|
15
|
+
muted: "oklch(0.967 0.001 286.375)",
|
|
16
|
+
"muted-foreground": "oklch(0.552 0.016 285.938)",
|
|
17
|
+
accent: "oklch(0.967 0.001 286.375)",
|
|
18
|
+
"accent-foreground": "oklch(0.21 0.006 285.885)",
|
|
19
|
+
destructive: "oklch(0.577 0.245 27.325)",
|
|
20
|
+
border: "oklch(0.92 0.004 286.32)",
|
|
21
|
+
input: "oklch(0.92 0.004 286.32)",
|
|
22
|
+
ring: "oklch(0.705 0.015 286.067)",
|
|
23
|
+
"chart-1": "oklch(0.871 0.006 286.286)",
|
|
24
|
+
"chart-2": "oklch(0.552 0.016 285.938)",
|
|
25
|
+
"chart-3": "oklch(0.442 0.017 285.786)",
|
|
26
|
+
"chart-4": "oklch(0.37 0.013 285.805)",
|
|
27
|
+
"chart-5": "oklch(0.274 0.006 286.033)",
|
|
28
|
+
sidebar: "oklch(0.985 0 0)",
|
|
29
|
+
"sidebar-foreground": "oklch(0.141 0.005 285.823)",
|
|
30
|
+
"sidebar-primary": "oklch(0.21 0.006 285.885)",
|
|
31
|
+
"sidebar-primary-foreground": "oklch(0.985 0 0)",
|
|
32
|
+
"sidebar-accent": "oklch(0.967 0.001 286.375)",
|
|
33
|
+
"sidebar-accent-foreground": "oklch(0.21 0.006 285.885)",
|
|
34
|
+
"sidebar-border": "oklch(0.92 0.004 286.32)",
|
|
35
|
+
"sidebar-ring": "oklch(0.705 0.015 286.067)"
|
|
36
|
+
};
|
|
37
|
+
var darkColors = {
|
|
38
|
+
background: "oklch(0.141 0.005 285.823)",
|
|
39
|
+
foreground: "oklch(0.985 0 0)",
|
|
40
|
+
card: "oklch(0.21 0.006 285.885)",
|
|
41
|
+
"card-foreground": "oklch(0.985 0 0)",
|
|
42
|
+
popover: "oklch(0.21 0.006 285.885)",
|
|
43
|
+
"popover-foreground": "oklch(0.985 0 0)",
|
|
44
|
+
primary: "oklch(0.92 0.004 286.32)",
|
|
45
|
+
"primary-foreground": "oklch(0.21 0.006 285.885)",
|
|
46
|
+
secondary: "oklch(0.274 0.006 286.033)",
|
|
47
|
+
"secondary-foreground": "oklch(0.985 0 0)",
|
|
48
|
+
muted: "oklch(0.274 0.006 286.033)",
|
|
49
|
+
"muted-foreground": "oklch(0.705 0.015 286.067)",
|
|
50
|
+
accent: "oklch(0.274 0.006 286.033)",
|
|
51
|
+
"accent-foreground": "oklch(0.985 0 0)",
|
|
52
|
+
destructive: "oklch(0.704 0.191 22.216)",
|
|
53
|
+
border: "oklch(1 0 0 / 10%)",
|
|
54
|
+
input: "oklch(1 0 0 / 15%)",
|
|
55
|
+
ring: "oklch(0.552 0.016 285.938)",
|
|
56
|
+
"chart-1": "oklch(0.871 0.006 286.286)",
|
|
57
|
+
"chart-2": "oklch(0.552 0.016 285.938)",
|
|
58
|
+
"chart-3": "oklch(0.442 0.017 285.786)",
|
|
59
|
+
"chart-4": "oklch(0.37 0.013 285.805)",
|
|
60
|
+
"chart-5": "oklch(0.274 0.006 286.033)",
|
|
61
|
+
sidebar: "oklch(0.21 0.006 285.885)",
|
|
62
|
+
"sidebar-foreground": "oklch(0.985 0 0)",
|
|
63
|
+
"sidebar-primary": "oklch(0.488 0.243 264.376)",
|
|
64
|
+
"sidebar-primary-foreground": "oklch(0.985 0 0)",
|
|
65
|
+
"sidebar-accent": "oklch(0.274 0.006 286.033)",
|
|
66
|
+
"sidebar-accent-foreground": "oklch(0.985 0 0)",
|
|
67
|
+
"sidebar-border": "oklch(1 0 0 / 10%)",
|
|
68
|
+
"sidebar-ring": "oklch(0.552 0.016 285.938)"
|
|
69
|
+
};
|
|
70
|
+
var colorTokens = Object.keys(lightColors);
|
|
71
|
+
|
|
72
|
+
// src/radius.ts
|
|
73
|
+
var baseRadius = "0.625rem";
|
|
74
|
+
var radius = {
|
|
75
|
+
sm: "calc(var(--radius) - 4px)",
|
|
76
|
+
md: "calc(var(--radius) - 2px)",
|
|
77
|
+
lg: "var(--radius)",
|
|
78
|
+
xl: "calc(var(--radius) + 4px)"
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
exports.baseRadius = baseRadius;
|
|
82
|
+
exports.colorTokens = colorTokens;
|
|
83
|
+
exports.darkColors = darkColors;
|
|
84
|
+
exports.lightColors = lightColors;
|
|
85
|
+
exports.radius = radius;
|
|
86
|
+
//# sourceMappingURL=index.cjs.map
|
|
87
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/colors.ts","../src/radius.ts"],"names":[],"mappings":";;;AAIO,IAAM,WAAA,GAAc;AAAA,EACzB,UAAA,EAAY,cAAA;AAAA,EACZ,UAAA,EAAY,4BAAA;AAAA,EACZ,IAAA,EAAM,cAAA;AAAA,EACN,iBAAA,EAAmB,4BAAA;AAAA,EACnB,OAAA,EAAS,cAAA;AAAA,EACT,oBAAA,EAAsB,4BAAA;AAAA,EACtB,OAAA,EAAS,2BAAA;AAAA,EACT,oBAAA,EAAsB,kBAAA;AAAA,EACtB,SAAA,EAAW,4BAAA;AAAA,EACX,sBAAA,EAAwB,2BAAA;AAAA,EACxB,KAAA,EAAO,4BAAA;AAAA,EACP,kBAAA,EAAoB,4BAAA;AAAA,EACpB,MAAA,EAAQ,4BAAA;AAAA,EACR,mBAAA,EAAqB,2BAAA;AAAA,EACrB,WAAA,EAAa,2BAAA;AAAA,EACb,MAAA,EAAQ,0BAAA;AAAA,EACR,KAAA,EAAO,0BAAA;AAAA,EACP,IAAA,EAAM,4BAAA;AAAA,EACN,SAAA,EAAW,4BAAA;AAAA,EACX,SAAA,EAAW,4BAAA;AAAA,EACX,SAAA,EAAW,4BAAA;AAAA,EACX,SAAA,EAAW,2BAAA;AAAA,EACX,SAAA,EAAW,4BAAA;AAAA,EACX,OAAA,EAAS,kBAAA;AAAA,EACT,oBAAA,EAAsB,4BAAA;AAAA,EACtB,iBAAA,EAAmB,2BAAA;AAAA,EACnB,4BAAA,EAA8B,kBAAA;AAAA,EAC9B,gBAAA,EAAkB,4BAAA;AAAA,EAClB,2BAAA,EAA6B,2BAAA;AAAA,EAC7B,gBAAA,EAAkB,0BAAA;AAAA,EAClB,cAAA,EAAgB;AAClB;AAEO,IAAM,UAAA,GAAa;AAAA,EACxB,UAAA,EAAY,4BAAA;AAAA,EACZ,UAAA,EAAY,kBAAA;AAAA,EACZ,IAAA,EAAM,2BAAA;AAAA,EACN,iBAAA,EAAmB,kBAAA;AAAA,EACnB,OAAA,EAAS,2BAAA;AAAA,EACT,oBAAA,EAAsB,kBAAA;AAAA,EACtB,OAAA,EAAS,0BAAA;AAAA,EACT,oBAAA,EAAsB,2BAAA;AAAA,EACtB,SAAA,EAAW,4BAAA;AAAA,EACX,sBAAA,EAAwB,kBAAA;AAAA,EACxB,KAAA,EAAO,4BAAA;AAAA,EACP,kBAAA,EAAoB,4BAAA;AAAA,EACpB,MAAA,EAAQ,4BAAA;AAAA,EACR,mBAAA,EAAqB,kBAAA;AAAA,EACrB,WAAA,EAAa,2BAAA;AAAA,EACb,MAAA,EAAQ,oBAAA;AAAA,EACR,KAAA,EAAO,oBAAA;AAAA,EACP,IAAA,EAAM,4BAAA;AAAA,EACN,SAAA,EAAW,4BAAA;AAAA,EACX,SAAA,EAAW,4BAAA;AAAA,EACX,SAAA,EAAW,4BAAA;AAAA,EACX,SAAA,EAAW,2BAAA;AAAA,EACX,SAAA,EAAW,4BAAA;AAAA,EACX,OAAA,EAAS,2BAAA;AAAA,EACT,oBAAA,EAAsB,kBAAA;AAAA,EACtB,iBAAA,EAAmB,4BAAA;AAAA,EACnB,4BAAA,EAA8B,kBAAA;AAAA,EAC9B,gBAAA,EAAkB,4BAAA;AAAA,EAClB,2BAAA,EAA6B,kBAAA;AAAA,EAC7B,gBAAA,EAAkB,oBAAA;AAAA,EAClB,cAAA,EAAgB;AAClB;AAKO,IAAM,WAAA,GAAc,MAAA,CAAO,IAAA,CAAK,WAAW;;;AC1E3C,IAAM,UAAA,GAAa;AAEnB,IAAM,MAAA,GAAS;AAAA,EACpB,EAAA,EAAI,2BAAA;AAAA,EACJ,EAAA,EAAI,2BAAA;AAAA,EACJ,EAAA,EAAI,eAAA;AAAA,EACJ,EAAA,EAAI;AACN","file":"index.cjs","sourcesContent":["/**\n * Paleta semântica do Neva. Fonte única das cores: o CSS (theme.css) é gerado a partir daqui.\n * Valores atuais = shadcn/ui (base zinc, Tailwind v4, OKLCH).\n */\nexport const lightColors = {\n background: \"oklch(1 0 0)\",\n foreground: \"oklch(0.141 0.005 285.823)\",\n card: \"oklch(1 0 0)\",\n \"card-foreground\": \"oklch(0.141 0.005 285.823)\",\n popover: \"oklch(1 0 0)\",\n \"popover-foreground\": \"oklch(0.141 0.005 285.823)\",\n primary: \"oklch(0.21 0.006 285.885)\",\n \"primary-foreground\": \"oklch(0.985 0 0)\",\n secondary: \"oklch(0.967 0.001 286.375)\",\n \"secondary-foreground\": \"oklch(0.21 0.006 285.885)\",\n muted: \"oklch(0.967 0.001 286.375)\",\n \"muted-foreground\": \"oklch(0.552 0.016 285.938)\",\n accent: \"oklch(0.967 0.001 286.375)\",\n \"accent-foreground\": \"oklch(0.21 0.006 285.885)\",\n destructive: \"oklch(0.577 0.245 27.325)\",\n border: \"oklch(0.92 0.004 286.32)\",\n input: \"oklch(0.92 0.004 286.32)\",\n ring: \"oklch(0.705 0.015 286.067)\",\n \"chart-1\": \"oklch(0.871 0.006 286.286)\",\n \"chart-2\": \"oklch(0.552 0.016 285.938)\",\n \"chart-3\": \"oklch(0.442 0.017 285.786)\",\n \"chart-4\": \"oklch(0.37 0.013 285.805)\",\n \"chart-5\": \"oklch(0.274 0.006 286.033)\",\n sidebar: \"oklch(0.985 0 0)\",\n \"sidebar-foreground\": \"oklch(0.141 0.005 285.823)\",\n \"sidebar-primary\": \"oklch(0.21 0.006 285.885)\",\n \"sidebar-primary-foreground\": \"oklch(0.985 0 0)\",\n \"sidebar-accent\": \"oklch(0.967 0.001 286.375)\",\n \"sidebar-accent-foreground\": \"oklch(0.21 0.006 285.885)\",\n \"sidebar-border\": \"oklch(0.92 0.004 286.32)\",\n \"sidebar-ring\": \"oklch(0.705 0.015 286.067)\",\n} as const\n\nexport const darkColors = {\n background: \"oklch(0.141 0.005 285.823)\",\n foreground: \"oklch(0.985 0 0)\",\n card: \"oklch(0.21 0.006 285.885)\",\n \"card-foreground\": \"oklch(0.985 0 0)\",\n popover: \"oklch(0.21 0.006 285.885)\",\n \"popover-foreground\": \"oklch(0.985 0 0)\",\n primary: \"oklch(0.92 0.004 286.32)\",\n \"primary-foreground\": \"oklch(0.21 0.006 285.885)\",\n secondary: \"oklch(0.274 0.006 286.033)\",\n \"secondary-foreground\": \"oklch(0.985 0 0)\",\n muted: \"oklch(0.274 0.006 286.033)\",\n \"muted-foreground\": \"oklch(0.705 0.015 286.067)\",\n accent: \"oklch(0.274 0.006 286.033)\",\n \"accent-foreground\": \"oklch(0.985 0 0)\",\n destructive: \"oklch(0.704 0.191 22.216)\",\n border: \"oklch(1 0 0 / 10%)\",\n input: \"oklch(1 0 0 / 15%)\",\n ring: \"oklch(0.552 0.016 285.938)\",\n \"chart-1\": \"oklch(0.871 0.006 286.286)\",\n \"chart-2\": \"oklch(0.552 0.016 285.938)\",\n \"chart-3\": \"oklch(0.442 0.017 285.786)\",\n \"chart-4\": \"oklch(0.37 0.013 285.805)\",\n \"chart-5\": \"oklch(0.274 0.006 286.033)\",\n sidebar: \"oklch(0.21 0.006 285.885)\",\n \"sidebar-foreground\": \"oklch(0.985 0 0)\",\n \"sidebar-primary\": \"oklch(0.488 0.243 264.376)\",\n \"sidebar-primary-foreground\": \"oklch(0.985 0 0)\",\n \"sidebar-accent\": \"oklch(0.274 0.006 286.033)\",\n \"sidebar-accent-foreground\": \"oklch(0.985 0 0)\",\n \"sidebar-border\": \"oklch(1 0 0 / 10%)\",\n \"sidebar-ring\": \"oklch(0.552 0.016 285.938)\",\n} as const satisfies Record<ColorToken, string>\n\n/** Nome de cada token de cor semântica (ex.: \"primary\", \"muted-foreground\"). */\nexport type ColorToken = keyof typeof lightColors\n\nexport const colorTokens = Object.keys(lightColors) as ColorToken[]\n","/** Raio base. Os demais tamanhos derivam dele, como no shadcn/ui. */\nexport const baseRadius = \"0.625rem\"\n\nexport const radius = {\n sm: \"calc(var(--radius) - 4px)\",\n md: \"calc(var(--radius) - 2px)\",\n lg: \"var(--radius)\",\n xl: \"calc(var(--radius) + 4px)\",\n} as const\n\nexport type RadiusToken = keyof typeof radius\n"]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paleta semântica do Neva. Fonte única das cores: o CSS (theme.css) é gerado a partir daqui.
|
|
3
|
+
* Valores atuais = shadcn/ui (base zinc, Tailwind v4, OKLCH).
|
|
4
|
+
*/
|
|
5
|
+
declare const lightColors: {
|
|
6
|
+
readonly background: "oklch(1 0 0)";
|
|
7
|
+
readonly foreground: "oklch(0.141 0.005 285.823)";
|
|
8
|
+
readonly card: "oklch(1 0 0)";
|
|
9
|
+
readonly "card-foreground": "oklch(0.141 0.005 285.823)";
|
|
10
|
+
readonly popover: "oklch(1 0 0)";
|
|
11
|
+
readonly "popover-foreground": "oklch(0.141 0.005 285.823)";
|
|
12
|
+
readonly primary: "oklch(0.21 0.006 285.885)";
|
|
13
|
+
readonly "primary-foreground": "oklch(0.985 0 0)";
|
|
14
|
+
readonly secondary: "oklch(0.967 0.001 286.375)";
|
|
15
|
+
readonly "secondary-foreground": "oklch(0.21 0.006 285.885)";
|
|
16
|
+
readonly muted: "oklch(0.967 0.001 286.375)";
|
|
17
|
+
readonly "muted-foreground": "oklch(0.552 0.016 285.938)";
|
|
18
|
+
readonly accent: "oklch(0.967 0.001 286.375)";
|
|
19
|
+
readonly "accent-foreground": "oklch(0.21 0.006 285.885)";
|
|
20
|
+
readonly destructive: "oklch(0.577 0.245 27.325)";
|
|
21
|
+
readonly border: "oklch(0.92 0.004 286.32)";
|
|
22
|
+
readonly input: "oklch(0.92 0.004 286.32)";
|
|
23
|
+
readonly ring: "oklch(0.705 0.015 286.067)";
|
|
24
|
+
readonly "chart-1": "oklch(0.871 0.006 286.286)";
|
|
25
|
+
readonly "chart-2": "oklch(0.552 0.016 285.938)";
|
|
26
|
+
readonly "chart-3": "oklch(0.442 0.017 285.786)";
|
|
27
|
+
readonly "chart-4": "oklch(0.37 0.013 285.805)";
|
|
28
|
+
readonly "chart-5": "oklch(0.274 0.006 286.033)";
|
|
29
|
+
readonly sidebar: "oklch(0.985 0 0)";
|
|
30
|
+
readonly "sidebar-foreground": "oklch(0.141 0.005 285.823)";
|
|
31
|
+
readonly "sidebar-primary": "oklch(0.21 0.006 285.885)";
|
|
32
|
+
readonly "sidebar-primary-foreground": "oklch(0.985 0 0)";
|
|
33
|
+
readonly "sidebar-accent": "oklch(0.967 0.001 286.375)";
|
|
34
|
+
readonly "sidebar-accent-foreground": "oklch(0.21 0.006 285.885)";
|
|
35
|
+
readonly "sidebar-border": "oklch(0.92 0.004 286.32)";
|
|
36
|
+
readonly "sidebar-ring": "oklch(0.705 0.015 286.067)";
|
|
37
|
+
};
|
|
38
|
+
declare const darkColors: {
|
|
39
|
+
readonly background: "oklch(0.141 0.005 285.823)";
|
|
40
|
+
readonly foreground: "oklch(0.985 0 0)";
|
|
41
|
+
readonly card: "oklch(0.21 0.006 285.885)";
|
|
42
|
+
readonly "card-foreground": "oklch(0.985 0 0)";
|
|
43
|
+
readonly popover: "oklch(0.21 0.006 285.885)";
|
|
44
|
+
readonly "popover-foreground": "oklch(0.985 0 0)";
|
|
45
|
+
readonly primary: "oklch(0.92 0.004 286.32)";
|
|
46
|
+
readonly "primary-foreground": "oklch(0.21 0.006 285.885)";
|
|
47
|
+
readonly secondary: "oklch(0.274 0.006 286.033)";
|
|
48
|
+
readonly "secondary-foreground": "oklch(0.985 0 0)";
|
|
49
|
+
readonly muted: "oklch(0.274 0.006 286.033)";
|
|
50
|
+
readonly "muted-foreground": "oklch(0.705 0.015 286.067)";
|
|
51
|
+
readonly accent: "oklch(0.274 0.006 286.033)";
|
|
52
|
+
readonly "accent-foreground": "oklch(0.985 0 0)";
|
|
53
|
+
readonly destructive: "oklch(0.704 0.191 22.216)";
|
|
54
|
+
readonly border: "oklch(1 0 0 / 10%)";
|
|
55
|
+
readonly input: "oklch(1 0 0 / 15%)";
|
|
56
|
+
readonly ring: "oklch(0.552 0.016 285.938)";
|
|
57
|
+
readonly "chart-1": "oklch(0.871 0.006 286.286)";
|
|
58
|
+
readonly "chart-2": "oklch(0.552 0.016 285.938)";
|
|
59
|
+
readonly "chart-3": "oklch(0.442 0.017 285.786)";
|
|
60
|
+
readonly "chart-4": "oklch(0.37 0.013 285.805)";
|
|
61
|
+
readonly "chart-5": "oklch(0.274 0.006 286.033)";
|
|
62
|
+
readonly sidebar: "oklch(0.21 0.006 285.885)";
|
|
63
|
+
readonly "sidebar-foreground": "oklch(0.985 0 0)";
|
|
64
|
+
readonly "sidebar-primary": "oklch(0.488 0.243 264.376)";
|
|
65
|
+
readonly "sidebar-primary-foreground": "oklch(0.985 0 0)";
|
|
66
|
+
readonly "sidebar-accent": "oklch(0.274 0.006 286.033)";
|
|
67
|
+
readonly "sidebar-accent-foreground": "oklch(0.985 0 0)";
|
|
68
|
+
readonly "sidebar-border": "oklch(1 0 0 / 10%)";
|
|
69
|
+
readonly "sidebar-ring": "oklch(0.552 0.016 285.938)";
|
|
70
|
+
};
|
|
71
|
+
/** Nome de cada token de cor semântica (ex.: "primary", "muted-foreground"). */
|
|
72
|
+
type ColorToken = keyof typeof lightColors;
|
|
73
|
+
declare const colorTokens: ColorToken[];
|
|
74
|
+
|
|
75
|
+
/** Raio base. Os demais tamanhos derivam dele, como no shadcn/ui. */
|
|
76
|
+
declare const baseRadius = "0.625rem";
|
|
77
|
+
declare const radius: {
|
|
78
|
+
readonly sm: "calc(var(--radius) - 4px)";
|
|
79
|
+
readonly md: "calc(var(--radius) - 2px)";
|
|
80
|
+
readonly lg: "var(--radius)";
|
|
81
|
+
readonly xl: "calc(var(--radius) + 4px)";
|
|
82
|
+
};
|
|
83
|
+
type RadiusToken = keyof typeof radius;
|
|
84
|
+
|
|
85
|
+
export { type ColorToken, type RadiusToken, baseRadius, colorTokens, darkColors, lightColors, radius };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paleta semântica do Neva. Fonte única das cores: o CSS (theme.css) é gerado a partir daqui.
|
|
3
|
+
* Valores atuais = shadcn/ui (base zinc, Tailwind v4, OKLCH).
|
|
4
|
+
*/
|
|
5
|
+
declare const lightColors: {
|
|
6
|
+
readonly background: "oklch(1 0 0)";
|
|
7
|
+
readonly foreground: "oklch(0.141 0.005 285.823)";
|
|
8
|
+
readonly card: "oklch(1 0 0)";
|
|
9
|
+
readonly "card-foreground": "oklch(0.141 0.005 285.823)";
|
|
10
|
+
readonly popover: "oklch(1 0 0)";
|
|
11
|
+
readonly "popover-foreground": "oklch(0.141 0.005 285.823)";
|
|
12
|
+
readonly primary: "oklch(0.21 0.006 285.885)";
|
|
13
|
+
readonly "primary-foreground": "oklch(0.985 0 0)";
|
|
14
|
+
readonly secondary: "oklch(0.967 0.001 286.375)";
|
|
15
|
+
readonly "secondary-foreground": "oklch(0.21 0.006 285.885)";
|
|
16
|
+
readonly muted: "oklch(0.967 0.001 286.375)";
|
|
17
|
+
readonly "muted-foreground": "oklch(0.552 0.016 285.938)";
|
|
18
|
+
readonly accent: "oklch(0.967 0.001 286.375)";
|
|
19
|
+
readonly "accent-foreground": "oklch(0.21 0.006 285.885)";
|
|
20
|
+
readonly destructive: "oklch(0.577 0.245 27.325)";
|
|
21
|
+
readonly border: "oklch(0.92 0.004 286.32)";
|
|
22
|
+
readonly input: "oklch(0.92 0.004 286.32)";
|
|
23
|
+
readonly ring: "oklch(0.705 0.015 286.067)";
|
|
24
|
+
readonly "chart-1": "oklch(0.871 0.006 286.286)";
|
|
25
|
+
readonly "chart-2": "oklch(0.552 0.016 285.938)";
|
|
26
|
+
readonly "chart-3": "oklch(0.442 0.017 285.786)";
|
|
27
|
+
readonly "chart-4": "oklch(0.37 0.013 285.805)";
|
|
28
|
+
readonly "chart-5": "oklch(0.274 0.006 286.033)";
|
|
29
|
+
readonly sidebar: "oklch(0.985 0 0)";
|
|
30
|
+
readonly "sidebar-foreground": "oklch(0.141 0.005 285.823)";
|
|
31
|
+
readonly "sidebar-primary": "oklch(0.21 0.006 285.885)";
|
|
32
|
+
readonly "sidebar-primary-foreground": "oklch(0.985 0 0)";
|
|
33
|
+
readonly "sidebar-accent": "oklch(0.967 0.001 286.375)";
|
|
34
|
+
readonly "sidebar-accent-foreground": "oklch(0.21 0.006 285.885)";
|
|
35
|
+
readonly "sidebar-border": "oklch(0.92 0.004 286.32)";
|
|
36
|
+
readonly "sidebar-ring": "oklch(0.705 0.015 286.067)";
|
|
37
|
+
};
|
|
38
|
+
declare const darkColors: {
|
|
39
|
+
readonly background: "oklch(0.141 0.005 285.823)";
|
|
40
|
+
readonly foreground: "oklch(0.985 0 0)";
|
|
41
|
+
readonly card: "oklch(0.21 0.006 285.885)";
|
|
42
|
+
readonly "card-foreground": "oklch(0.985 0 0)";
|
|
43
|
+
readonly popover: "oklch(0.21 0.006 285.885)";
|
|
44
|
+
readonly "popover-foreground": "oklch(0.985 0 0)";
|
|
45
|
+
readonly primary: "oklch(0.92 0.004 286.32)";
|
|
46
|
+
readonly "primary-foreground": "oklch(0.21 0.006 285.885)";
|
|
47
|
+
readonly secondary: "oklch(0.274 0.006 286.033)";
|
|
48
|
+
readonly "secondary-foreground": "oklch(0.985 0 0)";
|
|
49
|
+
readonly muted: "oklch(0.274 0.006 286.033)";
|
|
50
|
+
readonly "muted-foreground": "oklch(0.705 0.015 286.067)";
|
|
51
|
+
readonly accent: "oklch(0.274 0.006 286.033)";
|
|
52
|
+
readonly "accent-foreground": "oklch(0.985 0 0)";
|
|
53
|
+
readonly destructive: "oklch(0.704 0.191 22.216)";
|
|
54
|
+
readonly border: "oklch(1 0 0 / 10%)";
|
|
55
|
+
readonly input: "oklch(1 0 0 / 15%)";
|
|
56
|
+
readonly ring: "oklch(0.552 0.016 285.938)";
|
|
57
|
+
readonly "chart-1": "oklch(0.871 0.006 286.286)";
|
|
58
|
+
readonly "chart-2": "oklch(0.552 0.016 285.938)";
|
|
59
|
+
readonly "chart-3": "oklch(0.442 0.017 285.786)";
|
|
60
|
+
readonly "chart-4": "oklch(0.37 0.013 285.805)";
|
|
61
|
+
readonly "chart-5": "oklch(0.274 0.006 286.033)";
|
|
62
|
+
readonly sidebar: "oklch(0.21 0.006 285.885)";
|
|
63
|
+
readonly "sidebar-foreground": "oklch(0.985 0 0)";
|
|
64
|
+
readonly "sidebar-primary": "oklch(0.488 0.243 264.376)";
|
|
65
|
+
readonly "sidebar-primary-foreground": "oklch(0.985 0 0)";
|
|
66
|
+
readonly "sidebar-accent": "oklch(0.274 0.006 286.033)";
|
|
67
|
+
readonly "sidebar-accent-foreground": "oklch(0.985 0 0)";
|
|
68
|
+
readonly "sidebar-border": "oklch(1 0 0 / 10%)";
|
|
69
|
+
readonly "sidebar-ring": "oklch(0.552 0.016 285.938)";
|
|
70
|
+
};
|
|
71
|
+
/** Nome de cada token de cor semântica (ex.: "primary", "muted-foreground"). */
|
|
72
|
+
type ColorToken = keyof typeof lightColors;
|
|
73
|
+
declare const colorTokens: ColorToken[];
|
|
74
|
+
|
|
75
|
+
/** Raio base. Os demais tamanhos derivam dele, como no shadcn/ui. */
|
|
76
|
+
declare const baseRadius = "0.625rem";
|
|
77
|
+
declare const radius: {
|
|
78
|
+
readonly sm: "calc(var(--radius) - 4px)";
|
|
79
|
+
readonly md: "calc(var(--radius) - 2px)";
|
|
80
|
+
readonly lg: "var(--radius)";
|
|
81
|
+
readonly xl: "calc(var(--radius) + 4px)";
|
|
82
|
+
};
|
|
83
|
+
type RadiusToken = keyof typeof radius;
|
|
84
|
+
|
|
85
|
+
export { type ColorToken, type RadiusToken, baseRadius, colorTokens, darkColors, lightColors, radius };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// src/colors.ts
|
|
2
|
+
var lightColors = {
|
|
3
|
+
background: "oklch(1 0 0)",
|
|
4
|
+
foreground: "oklch(0.141 0.005 285.823)",
|
|
5
|
+
card: "oklch(1 0 0)",
|
|
6
|
+
"card-foreground": "oklch(0.141 0.005 285.823)",
|
|
7
|
+
popover: "oklch(1 0 0)",
|
|
8
|
+
"popover-foreground": "oklch(0.141 0.005 285.823)",
|
|
9
|
+
primary: "oklch(0.21 0.006 285.885)",
|
|
10
|
+
"primary-foreground": "oklch(0.985 0 0)",
|
|
11
|
+
secondary: "oklch(0.967 0.001 286.375)",
|
|
12
|
+
"secondary-foreground": "oklch(0.21 0.006 285.885)",
|
|
13
|
+
muted: "oklch(0.967 0.001 286.375)",
|
|
14
|
+
"muted-foreground": "oklch(0.552 0.016 285.938)",
|
|
15
|
+
accent: "oklch(0.967 0.001 286.375)",
|
|
16
|
+
"accent-foreground": "oklch(0.21 0.006 285.885)",
|
|
17
|
+
destructive: "oklch(0.577 0.245 27.325)",
|
|
18
|
+
border: "oklch(0.92 0.004 286.32)",
|
|
19
|
+
input: "oklch(0.92 0.004 286.32)",
|
|
20
|
+
ring: "oklch(0.705 0.015 286.067)",
|
|
21
|
+
"chart-1": "oklch(0.871 0.006 286.286)",
|
|
22
|
+
"chart-2": "oklch(0.552 0.016 285.938)",
|
|
23
|
+
"chart-3": "oklch(0.442 0.017 285.786)",
|
|
24
|
+
"chart-4": "oklch(0.37 0.013 285.805)",
|
|
25
|
+
"chart-5": "oklch(0.274 0.006 286.033)",
|
|
26
|
+
sidebar: "oklch(0.985 0 0)",
|
|
27
|
+
"sidebar-foreground": "oklch(0.141 0.005 285.823)",
|
|
28
|
+
"sidebar-primary": "oklch(0.21 0.006 285.885)",
|
|
29
|
+
"sidebar-primary-foreground": "oklch(0.985 0 0)",
|
|
30
|
+
"sidebar-accent": "oklch(0.967 0.001 286.375)",
|
|
31
|
+
"sidebar-accent-foreground": "oklch(0.21 0.006 285.885)",
|
|
32
|
+
"sidebar-border": "oklch(0.92 0.004 286.32)",
|
|
33
|
+
"sidebar-ring": "oklch(0.705 0.015 286.067)"
|
|
34
|
+
};
|
|
35
|
+
var darkColors = {
|
|
36
|
+
background: "oklch(0.141 0.005 285.823)",
|
|
37
|
+
foreground: "oklch(0.985 0 0)",
|
|
38
|
+
card: "oklch(0.21 0.006 285.885)",
|
|
39
|
+
"card-foreground": "oklch(0.985 0 0)",
|
|
40
|
+
popover: "oklch(0.21 0.006 285.885)",
|
|
41
|
+
"popover-foreground": "oklch(0.985 0 0)",
|
|
42
|
+
primary: "oklch(0.92 0.004 286.32)",
|
|
43
|
+
"primary-foreground": "oklch(0.21 0.006 285.885)",
|
|
44
|
+
secondary: "oklch(0.274 0.006 286.033)",
|
|
45
|
+
"secondary-foreground": "oklch(0.985 0 0)",
|
|
46
|
+
muted: "oklch(0.274 0.006 286.033)",
|
|
47
|
+
"muted-foreground": "oklch(0.705 0.015 286.067)",
|
|
48
|
+
accent: "oklch(0.274 0.006 286.033)",
|
|
49
|
+
"accent-foreground": "oklch(0.985 0 0)",
|
|
50
|
+
destructive: "oklch(0.704 0.191 22.216)",
|
|
51
|
+
border: "oklch(1 0 0 / 10%)",
|
|
52
|
+
input: "oklch(1 0 0 / 15%)",
|
|
53
|
+
ring: "oklch(0.552 0.016 285.938)",
|
|
54
|
+
"chart-1": "oklch(0.871 0.006 286.286)",
|
|
55
|
+
"chart-2": "oklch(0.552 0.016 285.938)",
|
|
56
|
+
"chart-3": "oklch(0.442 0.017 285.786)",
|
|
57
|
+
"chart-4": "oklch(0.37 0.013 285.805)",
|
|
58
|
+
"chart-5": "oklch(0.274 0.006 286.033)",
|
|
59
|
+
sidebar: "oklch(0.21 0.006 285.885)",
|
|
60
|
+
"sidebar-foreground": "oklch(0.985 0 0)",
|
|
61
|
+
"sidebar-primary": "oklch(0.488 0.243 264.376)",
|
|
62
|
+
"sidebar-primary-foreground": "oklch(0.985 0 0)",
|
|
63
|
+
"sidebar-accent": "oklch(0.274 0.006 286.033)",
|
|
64
|
+
"sidebar-accent-foreground": "oklch(0.985 0 0)",
|
|
65
|
+
"sidebar-border": "oklch(1 0 0 / 10%)",
|
|
66
|
+
"sidebar-ring": "oklch(0.552 0.016 285.938)"
|
|
67
|
+
};
|
|
68
|
+
var colorTokens = Object.keys(lightColors);
|
|
69
|
+
|
|
70
|
+
// src/radius.ts
|
|
71
|
+
var baseRadius = "0.625rem";
|
|
72
|
+
var radius = {
|
|
73
|
+
sm: "calc(var(--radius) - 4px)",
|
|
74
|
+
md: "calc(var(--radius) - 2px)",
|
|
75
|
+
lg: "var(--radius)",
|
|
76
|
+
xl: "calc(var(--radius) + 4px)"
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export { baseRadius, colorTokens, darkColors, lightColors, radius };
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
81
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/colors.ts","../src/radius.ts"],"names":[],"mappings":";AAIO,IAAM,WAAA,GAAc;AAAA,EACzB,UAAA,EAAY,cAAA;AAAA,EACZ,UAAA,EAAY,4BAAA;AAAA,EACZ,IAAA,EAAM,cAAA;AAAA,EACN,iBAAA,EAAmB,4BAAA;AAAA,EACnB,OAAA,EAAS,cAAA;AAAA,EACT,oBAAA,EAAsB,4BAAA;AAAA,EACtB,OAAA,EAAS,2BAAA;AAAA,EACT,oBAAA,EAAsB,kBAAA;AAAA,EACtB,SAAA,EAAW,4BAAA;AAAA,EACX,sBAAA,EAAwB,2BAAA;AAAA,EACxB,KAAA,EAAO,4BAAA;AAAA,EACP,kBAAA,EAAoB,4BAAA;AAAA,EACpB,MAAA,EAAQ,4BAAA;AAAA,EACR,mBAAA,EAAqB,2BAAA;AAAA,EACrB,WAAA,EAAa,2BAAA;AAAA,EACb,MAAA,EAAQ,0BAAA;AAAA,EACR,KAAA,EAAO,0BAAA;AAAA,EACP,IAAA,EAAM,4BAAA;AAAA,EACN,SAAA,EAAW,4BAAA;AAAA,EACX,SAAA,EAAW,4BAAA;AAAA,EACX,SAAA,EAAW,4BAAA;AAAA,EACX,SAAA,EAAW,2BAAA;AAAA,EACX,SAAA,EAAW,4BAAA;AAAA,EACX,OAAA,EAAS,kBAAA;AAAA,EACT,oBAAA,EAAsB,4BAAA;AAAA,EACtB,iBAAA,EAAmB,2BAAA;AAAA,EACnB,4BAAA,EAA8B,kBAAA;AAAA,EAC9B,gBAAA,EAAkB,4BAAA;AAAA,EAClB,2BAAA,EAA6B,2BAAA;AAAA,EAC7B,gBAAA,EAAkB,0BAAA;AAAA,EAClB,cAAA,EAAgB;AAClB;AAEO,IAAM,UAAA,GAAa;AAAA,EACxB,UAAA,EAAY,4BAAA;AAAA,EACZ,UAAA,EAAY,kBAAA;AAAA,EACZ,IAAA,EAAM,2BAAA;AAAA,EACN,iBAAA,EAAmB,kBAAA;AAAA,EACnB,OAAA,EAAS,2BAAA;AAAA,EACT,oBAAA,EAAsB,kBAAA;AAAA,EACtB,OAAA,EAAS,0BAAA;AAAA,EACT,oBAAA,EAAsB,2BAAA;AAAA,EACtB,SAAA,EAAW,4BAAA;AAAA,EACX,sBAAA,EAAwB,kBAAA;AAAA,EACxB,KAAA,EAAO,4BAAA;AAAA,EACP,kBAAA,EAAoB,4BAAA;AAAA,EACpB,MAAA,EAAQ,4BAAA;AAAA,EACR,mBAAA,EAAqB,kBAAA;AAAA,EACrB,WAAA,EAAa,2BAAA;AAAA,EACb,MAAA,EAAQ,oBAAA;AAAA,EACR,KAAA,EAAO,oBAAA;AAAA,EACP,IAAA,EAAM,4BAAA;AAAA,EACN,SAAA,EAAW,4BAAA;AAAA,EACX,SAAA,EAAW,4BAAA;AAAA,EACX,SAAA,EAAW,4BAAA;AAAA,EACX,SAAA,EAAW,2BAAA;AAAA,EACX,SAAA,EAAW,4BAAA;AAAA,EACX,OAAA,EAAS,2BAAA;AAAA,EACT,oBAAA,EAAsB,kBAAA;AAAA,EACtB,iBAAA,EAAmB,4BAAA;AAAA,EACnB,4BAAA,EAA8B,kBAAA;AAAA,EAC9B,gBAAA,EAAkB,4BAAA;AAAA,EAClB,2BAAA,EAA6B,kBAAA;AAAA,EAC7B,gBAAA,EAAkB,oBAAA;AAAA,EAClB,cAAA,EAAgB;AAClB;AAKO,IAAM,WAAA,GAAc,MAAA,CAAO,IAAA,CAAK,WAAW;;;AC1E3C,IAAM,UAAA,GAAa;AAEnB,IAAM,MAAA,GAAS;AAAA,EACpB,EAAA,EAAI,2BAAA;AAAA,EACJ,EAAA,EAAI,2BAAA;AAAA,EACJ,EAAA,EAAI,eAAA;AAAA,EACJ,EAAA,EAAI;AACN","file":"index.js","sourcesContent":["/**\n * Paleta semântica do Neva. Fonte única das cores: o CSS (theme.css) é gerado a partir daqui.\n * Valores atuais = shadcn/ui (base zinc, Tailwind v4, OKLCH).\n */\nexport const lightColors = {\n background: \"oklch(1 0 0)\",\n foreground: \"oklch(0.141 0.005 285.823)\",\n card: \"oklch(1 0 0)\",\n \"card-foreground\": \"oklch(0.141 0.005 285.823)\",\n popover: \"oklch(1 0 0)\",\n \"popover-foreground\": \"oklch(0.141 0.005 285.823)\",\n primary: \"oklch(0.21 0.006 285.885)\",\n \"primary-foreground\": \"oklch(0.985 0 0)\",\n secondary: \"oklch(0.967 0.001 286.375)\",\n \"secondary-foreground\": \"oklch(0.21 0.006 285.885)\",\n muted: \"oklch(0.967 0.001 286.375)\",\n \"muted-foreground\": \"oklch(0.552 0.016 285.938)\",\n accent: \"oklch(0.967 0.001 286.375)\",\n \"accent-foreground\": \"oklch(0.21 0.006 285.885)\",\n destructive: \"oklch(0.577 0.245 27.325)\",\n border: \"oklch(0.92 0.004 286.32)\",\n input: \"oklch(0.92 0.004 286.32)\",\n ring: \"oklch(0.705 0.015 286.067)\",\n \"chart-1\": \"oklch(0.871 0.006 286.286)\",\n \"chart-2\": \"oklch(0.552 0.016 285.938)\",\n \"chart-3\": \"oklch(0.442 0.017 285.786)\",\n \"chart-4\": \"oklch(0.37 0.013 285.805)\",\n \"chart-5\": \"oklch(0.274 0.006 286.033)\",\n sidebar: \"oklch(0.985 0 0)\",\n \"sidebar-foreground\": \"oklch(0.141 0.005 285.823)\",\n \"sidebar-primary\": \"oklch(0.21 0.006 285.885)\",\n \"sidebar-primary-foreground\": \"oklch(0.985 0 0)\",\n \"sidebar-accent\": \"oklch(0.967 0.001 286.375)\",\n \"sidebar-accent-foreground\": \"oklch(0.21 0.006 285.885)\",\n \"sidebar-border\": \"oklch(0.92 0.004 286.32)\",\n \"sidebar-ring\": \"oklch(0.705 0.015 286.067)\",\n} as const\n\nexport const darkColors = {\n background: \"oklch(0.141 0.005 285.823)\",\n foreground: \"oklch(0.985 0 0)\",\n card: \"oklch(0.21 0.006 285.885)\",\n \"card-foreground\": \"oklch(0.985 0 0)\",\n popover: \"oklch(0.21 0.006 285.885)\",\n \"popover-foreground\": \"oklch(0.985 0 0)\",\n primary: \"oklch(0.92 0.004 286.32)\",\n \"primary-foreground\": \"oklch(0.21 0.006 285.885)\",\n secondary: \"oklch(0.274 0.006 286.033)\",\n \"secondary-foreground\": \"oklch(0.985 0 0)\",\n muted: \"oklch(0.274 0.006 286.033)\",\n \"muted-foreground\": \"oklch(0.705 0.015 286.067)\",\n accent: \"oklch(0.274 0.006 286.033)\",\n \"accent-foreground\": \"oklch(0.985 0 0)\",\n destructive: \"oklch(0.704 0.191 22.216)\",\n border: \"oklch(1 0 0 / 10%)\",\n input: \"oklch(1 0 0 / 15%)\",\n ring: \"oklch(0.552 0.016 285.938)\",\n \"chart-1\": \"oklch(0.871 0.006 286.286)\",\n \"chart-2\": \"oklch(0.552 0.016 285.938)\",\n \"chart-3\": \"oklch(0.442 0.017 285.786)\",\n \"chart-4\": \"oklch(0.37 0.013 285.805)\",\n \"chart-5\": \"oklch(0.274 0.006 286.033)\",\n sidebar: \"oklch(0.21 0.006 285.885)\",\n \"sidebar-foreground\": \"oklch(0.985 0 0)\",\n \"sidebar-primary\": \"oklch(0.488 0.243 264.376)\",\n \"sidebar-primary-foreground\": \"oklch(0.985 0 0)\",\n \"sidebar-accent\": \"oklch(0.274 0.006 286.033)\",\n \"sidebar-accent-foreground\": \"oklch(0.985 0 0)\",\n \"sidebar-border\": \"oklch(1 0 0 / 10%)\",\n \"sidebar-ring\": \"oklch(0.552 0.016 285.938)\",\n} as const satisfies Record<ColorToken, string>\n\n/** Nome de cada token de cor semântica (ex.: \"primary\", \"muted-foreground\"). */\nexport type ColorToken = keyof typeof lightColors\n\nexport const colorTokens = Object.keys(lightColors) as ColorToken[]\n","/** Raio base. Os demais tamanhos derivam dele, como no shadcn/ui. */\nexport const baseRadius = \"0.625rem\"\n\nexport const radius = {\n sm: \"calc(var(--radius) - 4px)\",\n md: \"calc(var(--radius) - 2px)\",\n lg: \"var(--radius)\",\n xl: \"calc(var(--radius) + 4px)\",\n} as const\n\nexport type RadiusToken = keyof typeof radius\n"]}
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/* Gerado por @nevadale/tokens. Não edite: altere src/colors.ts e src/radius.ts. */
|
|
2
|
+
@custom-variant dark (&:is(.dark *));
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--radius: 0.625rem;
|
|
6
|
+
--background: oklch(1 0 0);
|
|
7
|
+
--foreground: oklch(0.141 0.005 285.823);
|
|
8
|
+
--card: oklch(1 0 0);
|
|
9
|
+
--card-foreground: oklch(0.141 0.005 285.823);
|
|
10
|
+
--popover: oklch(1 0 0);
|
|
11
|
+
--popover-foreground: oklch(0.141 0.005 285.823);
|
|
12
|
+
--primary: oklch(0.21 0.006 285.885);
|
|
13
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
14
|
+
--secondary: oklch(0.967 0.001 286.375);
|
|
15
|
+
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
16
|
+
--muted: oklch(0.967 0.001 286.375);
|
|
17
|
+
--muted-foreground: oklch(0.552 0.016 285.938);
|
|
18
|
+
--accent: oklch(0.967 0.001 286.375);
|
|
19
|
+
--accent-foreground: oklch(0.21 0.006 285.885);
|
|
20
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
21
|
+
--border: oklch(0.92 0.004 286.32);
|
|
22
|
+
--input: oklch(0.92 0.004 286.32);
|
|
23
|
+
--ring: oklch(0.705 0.015 286.067);
|
|
24
|
+
--chart-1: oklch(0.871 0.006 286.286);
|
|
25
|
+
--chart-2: oklch(0.552 0.016 285.938);
|
|
26
|
+
--chart-3: oklch(0.442 0.017 285.786);
|
|
27
|
+
--chart-4: oklch(0.37 0.013 285.805);
|
|
28
|
+
--chart-5: oklch(0.274 0.006 286.033);
|
|
29
|
+
--sidebar: oklch(0.985 0 0);
|
|
30
|
+
--sidebar-foreground: oklch(0.141 0.005 285.823);
|
|
31
|
+
--sidebar-primary: oklch(0.21 0.006 285.885);
|
|
32
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
33
|
+
--sidebar-accent: oklch(0.967 0.001 286.375);
|
|
34
|
+
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
|
|
35
|
+
--sidebar-border: oklch(0.92 0.004 286.32);
|
|
36
|
+
--sidebar-ring: oklch(0.705 0.015 286.067);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dark {
|
|
40
|
+
--background: oklch(0.141 0.005 285.823);
|
|
41
|
+
--foreground: oklch(0.985 0 0);
|
|
42
|
+
--card: oklch(0.21 0.006 285.885);
|
|
43
|
+
--card-foreground: oklch(0.985 0 0);
|
|
44
|
+
--popover: oklch(0.21 0.006 285.885);
|
|
45
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
46
|
+
--primary: oklch(0.92 0.004 286.32);
|
|
47
|
+
--primary-foreground: oklch(0.21 0.006 285.885);
|
|
48
|
+
--secondary: oklch(0.274 0.006 286.033);
|
|
49
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
50
|
+
--muted: oklch(0.274 0.006 286.033);
|
|
51
|
+
--muted-foreground: oklch(0.705 0.015 286.067);
|
|
52
|
+
--accent: oklch(0.274 0.006 286.033);
|
|
53
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
54
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
55
|
+
--border: oklch(1 0 0 / 10%);
|
|
56
|
+
--input: oklch(1 0 0 / 15%);
|
|
57
|
+
--ring: oklch(0.552 0.016 285.938);
|
|
58
|
+
--chart-1: oklch(0.871 0.006 286.286);
|
|
59
|
+
--chart-2: oklch(0.552 0.016 285.938);
|
|
60
|
+
--chart-3: oklch(0.442 0.017 285.786);
|
|
61
|
+
--chart-4: oklch(0.37 0.013 285.805);
|
|
62
|
+
--chart-5: oklch(0.274 0.006 286.033);
|
|
63
|
+
--sidebar: oklch(0.21 0.006 285.885);
|
|
64
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
65
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
66
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
67
|
+
--sidebar-accent: oklch(0.274 0.006 286.033);
|
|
68
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
69
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
70
|
+
--sidebar-ring: oklch(0.552 0.016 285.938);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@theme inline {
|
|
74
|
+
--color-background: var(--background);
|
|
75
|
+
--color-foreground: var(--foreground);
|
|
76
|
+
--color-card: var(--card);
|
|
77
|
+
--color-card-foreground: var(--card-foreground);
|
|
78
|
+
--color-popover: var(--popover);
|
|
79
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
80
|
+
--color-primary: var(--primary);
|
|
81
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
82
|
+
--color-secondary: var(--secondary);
|
|
83
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
84
|
+
--color-muted: var(--muted);
|
|
85
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
86
|
+
--color-accent: var(--accent);
|
|
87
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
88
|
+
--color-destructive: var(--destructive);
|
|
89
|
+
--color-border: var(--border);
|
|
90
|
+
--color-input: var(--input);
|
|
91
|
+
--color-ring: var(--ring);
|
|
92
|
+
--color-chart-1: var(--chart-1);
|
|
93
|
+
--color-chart-2: var(--chart-2);
|
|
94
|
+
--color-chart-3: var(--chart-3);
|
|
95
|
+
--color-chart-4: var(--chart-4);
|
|
96
|
+
--color-chart-5: var(--chart-5);
|
|
97
|
+
--color-sidebar: var(--sidebar);
|
|
98
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
99
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
100
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
101
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
102
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
103
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
104
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
105
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
106
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
107
|
+
--radius-lg: var(--radius);
|
|
108
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@layer base {
|
|
112
|
+
* {
|
|
113
|
+
@apply border-border outline-ring/50;
|
|
114
|
+
}
|
|
115
|
+
body {
|
|
116
|
+
@apply bg-background text-foreground;
|
|
117
|
+
}
|
|
118
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nevadale/tokens",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Design tokens do Neva Design System (CSS variables + tokens tipados)",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/blombotech/neva-ds.git",
|
|
9
|
+
"directory": "packages/tokens"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"**/*.css"
|
|
14
|
+
],
|
|
15
|
+
"main": "./dist/index.cjs",
|
|
16
|
+
"module": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"require": {
|
|
25
|
+
"types": "./dist/index.d.cts",
|
|
26
|
+
"default": "./dist/index.cjs"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"./theme.css": "./dist/theme.css",
|
|
30
|
+
"./package.json": "./package.json"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public",
|
|
37
|
+
"provenance": true
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/jest": "^30.0.0",
|
|
41
|
+
"eslint": "^9.39.5",
|
|
42
|
+
"jest": "^30.5.2",
|
|
43
|
+
"tsup": "^8.5.1",
|
|
44
|
+
"typescript": "~5.9.3",
|
|
45
|
+
"@types/node": "^22.18.0",
|
|
46
|
+
"@nevadale/jest-config": "0.0.0",
|
|
47
|
+
"@nevadale/tsconfig": "0.0.0",
|
|
48
|
+
"@nevadale/eslint-config": "0.0.0"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "tsup",
|
|
52
|
+
"dev": "tsup --watch",
|
|
53
|
+
"lint": "eslint .",
|
|
54
|
+
"typecheck": "tsc --noEmit",
|
|
55
|
+
"test": "jest",
|
|
56
|
+
"check-exports": "publint && attw --pack . --profile node16 --exclude-entrypoints ./theme.css"
|
|
57
|
+
}
|
|
6
58
|
}
|
package/README.md
DELETED