@loidolt/theme-tokens 0.3.0 → 0.5.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 +16 -0
- package/dist/dark-auto.css +2 -0
- package/dist/dark.css +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +3 -0
- package/dist/tokens.css +1 -0
- package/package.json +1 -4
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @loidolt/theme-tokens
|
|
2
|
+
|
|
3
|
+
Typed design tokens and generated CSS custom properties for the Loidolt design system.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install @loidolt/theme-tokens
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { colors, semantic, spacing, tokens } from '@loidolt/theme-tokens';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```css
|
|
14
|
+
@import '@loidolt/theme-tokens/css';
|
|
15
|
+
@import '@loidolt/theme-tokens/css/dark';
|
|
16
|
+
```
|
package/dist/dark-auto.css
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
--loidolt-surface: #1e211c;
|
|
6
6
|
--loidolt-surface-alt: #24271f;
|
|
7
7
|
--loidolt-surface-sunken: #101210;
|
|
8
|
+
--loidolt-surface-paper: #ffffff;
|
|
8
9
|
--loidolt-surface-inverse: #ebe7dc;
|
|
9
10
|
--loidolt-surface-input: #24271f;
|
|
10
11
|
--loidolt-text: #ebe7dc;
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
--loidolt-surface: #1e211c;
|
|
45
46
|
--loidolt-surface-alt: #24271f;
|
|
46
47
|
--loidolt-surface-sunken: #101210;
|
|
48
|
+
--loidolt-surface-paper: #ffffff;
|
|
47
49
|
--loidolt-surface-inverse: #ebe7dc;
|
|
48
50
|
--loidolt-surface-input: #24271f;
|
|
49
51
|
--loidolt-text: #ebe7dc;
|
package/dist/dark.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -129,6 +129,8 @@ declare const semanticDefs: {
|
|
|
129
129
|
readonly surface: TokenRef;
|
|
130
130
|
readonly surfaceAlt: TokenRef;
|
|
131
131
|
readonly surfaceSunken: TokenRef;
|
|
132
|
+
/** Artwork-on-paper backing: stays white in every theme so previews read true. */
|
|
133
|
+
readonly surfacePaper: TokenRef;
|
|
132
134
|
readonly surfaceInverse: TokenRef;
|
|
133
135
|
readonly surfaceInput: TokenRef;
|
|
134
136
|
readonly text: TokenRef;
|
|
@@ -182,6 +184,7 @@ declare const darkSemantic: {
|
|
|
182
184
|
readonly surface: "#1e211c";
|
|
183
185
|
readonly surfaceAlt: "#24271f";
|
|
184
186
|
readonly surfaceSunken: "#101210";
|
|
187
|
+
readonly surfacePaper: "#ffffff";
|
|
185
188
|
readonly surfaceInverse: "#ebe7dc";
|
|
186
189
|
readonly surfaceInput: "#24271f";
|
|
187
190
|
readonly text: "#ebe7dc";
|
|
@@ -324,6 +327,7 @@ declare const tokens: {
|
|
|
324
327
|
readonly surface: string;
|
|
325
328
|
readonly surfaceAlt: string;
|
|
326
329
|
readonly surfaceSunken: string;
|
|
330
|
+
readonly surfacePaper: string;
|
|
327
331
|
readonly surfaceInverse: string;
|
|
328
332
|
readonly surfaceInput: string;
|
|
329
333
|
readonly text: string;
|
|
@@ -360,6 +364,7 @@ declare const tokens: {
|
|
|
360
364
|
readonly surface: "#1e211c";
|
|
361
365
|
readonly surfaceAlt: "#24271f";
|
|
362
366
|
readonly surfaceSunken: "#101210";
|
|
367
|
+
readonly surfacePaper: "#ffffff";
|
|
363
368
|
readonly surfaceInverse: "#ebe7dc";
|
|
364
369
|
readonly surfaceInput: "#24271f";
|
|
365
370
|
readonly text: "#ebe7dc";
|
package/dist/index.js
CHANGED
|
@@ -93,6 +93,8 @@ var semanticDefs = {
|
|
|
93
93
|
surface: ref("color-panel"),
|
|
94
94
|
surfaceAlt: ref("color-panel-alt"),
|
|
95
95
|
surfaceSunken: ref("color-canvas"),
|
|
96
|
+
/** Artwork-on-paper backing: stays white in every theme so previews read true. */
|
|
97
|
+
surfacePaper: ref("color-white"),
|
|
96
98
|
surfaceInverse: ref("color-deep"),
|
|
97
99
|
surfaceInput: ref("color-white"),
|
|
98
100
|
text: ref("color-deep"),
|
|
@@ -179,6 +181,7 @@ var darkSemantic = {
|
|
|
179
181
|
surface: "#1e211c",
|
|
180
182
|
surfaceAlt: "#24271f",
|
|
181
183
|
surfaceSunken: "#101210",
|
|
184
|
+
surfacePaper: "#ffffff",
|
|
182
185
|
surfaceInverse: "#ebe7dc",
|
|
183
186
|
surfaceInput: "#24271f",
|
|
184
187
|
text: "#ebe7dc",
|
package/dist/tokens.css
CHANGED
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
--loidolt-surface: var(--loidolt-color-panel);
|
|
76
76
|
--loidolt-surface-alt: var(--loidolt-color-panel-alt);
|
|
77
77
|
--loidolt-surface-sunken: var(--loidolt-color-canvas);
|
|
78
|
+
--loidolt-surface-paper: var(--loidolt-color-white);
|
|
78
79
|
--loidolt-surface-inverse: var(--loidolt-color-deep);
|
|
79
80
|
--loidolt-surface-input: var(--loidolt-color-white);
|
|
80
81
|
--loidolt-text: var(--loidolt-color-deep);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loidolt/theme-tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Typed design tokens for Loidolt applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -23,9 +23,6 @@
|
|
|
23
23
|
"sideEffects": [
|
|
24
24
|
"**/*.css"
|
|
25
25
|
],
|
|
26
|
-
"engines": {
|
|
27
|
-
"node": ">=22"
|
|
28
|
-
},
|
|
29
26
|
"scripts": {
|
|
30
27
|
"build": "tsup src/index.ts --format esm --dts --clean && node scripts/generate-css.mjs",
|
|
31
28
|
"prepack": "npm run build",
|