@tantuui/tokens 0.0.1-rc1
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/dist/base.css +94 -0
- package/dist/index.d.mts +1306 -0
- package/dist/index.d.ts +1306 -0
- package/dist/index.js +778 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +754 -0
- package/dist/index.mjs.map +1 -0
- package/dist/runtime.d.mts +46 -0
- package/dist/runtime.d.ts +46 -0
- package/dist/runtime.js +119 -0
- package/dist/runtime.js.map +1 -0
- package/dist/runtime.mjs +115 -0
- package/dist/runtime.mjs.map +1 -0
- package/dist/tailwind-preset.js +588 -0
- package/dist/tokens.css +771 -0
- package/dist/utilities.css +2474 -0
- package/package.json +35 -0
package/dist/base.css
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TantuUI Base Styles
|
|
3
|
+
* Minimal CSS reset that uses --tui-* variables.
|
|
4
|
+
* @import "@tantu/tokens/css/base"
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@import "./tokens.css";
|
|
8
|
+
|
|
9
|
+
*,
|
|
10
|
+
*::before,
|
|
11
|
+
*::after {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
html {
|
|
18
|
+
font-size: 100%; /* 16px base */
|
|
19
|
+
-webkit-text-size-adjust: 100%;
|
|
20
|
+
tab-size: 4;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
font-family: var(--tui-font-family-sans, system-ui, sans-serif);
|
|
25
|
+
font-size: var(--tui-font-size-md);
|
|
26
|
+
font-weight: var(--tui-font-weight-normal);
|
|
27
|
+
line-height: var(--tui-leading-normal);
|
|
28
|
+
color: var(--tui-color-text-primary);
|
|
29
|
+
background-color: var(--tui-color-bg-base);
|
|
30
|
+
-webkit-font-smoothing: antialiased;
|
|
31
|
+
-moz-osx-font-smoothing: grayscale;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Focus visible ring */
|
|
35
|
+
:focus-visible {
|
|
36
|
+
outline: 2px solid var(--tui-color-border-focus);
|
|
37
|
+
outline-offset: 2px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Remove default list styles */
|
|
41
|
+
ol, ul {
|
|
42
|
+
list-style: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Images */
|
|
46
|
+
img, svg, video, canvas, audio, iframe, embed, object {
|
|
47
|
+
display: block;
|
|
48
|
+
max-width: 100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Form elements inherit font */
|
|
52
|
+
button, input, optgroup, select, textarea {
|
|
53
|
+
font-family: inherit;
|
|
54
|
+
font-size: 100%;
|
|
55
|
+
line-height: inherit;
|
|
56
|
+
color: inherit;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Button reset */
|
|
60
|
+
button {
|
|
61
|
+
background: transparent;
|
|
62
|
+
border: 0;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
padding: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Anchor */
|
|
68
|
+
a {
|
|
69
|
+
color: var(--tui-color-text-link);
|
|
70
|
+
text-decoration: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
a:hover {
|
|
74
|
+
color: var(--tui-color-text-link-hover);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Headings */
|
|
78
|
+
h1, h2, h3, h4, h5, h6 {
|
|
79
|
+
font-weight: var(--tui-font-weight-semibold);
|
|
80
|
+
line-height: var(--tui-leading-tight);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
h1 { font-size: var(--tui-font-size-4xl); }
|
|
84
|
+
h2 { font-size: var(--tui-font-size-3xl); }
|
|
85
|
+
h3 { font-size: var(--tui-font-size-2xl); }
|
|
86
|
+
h4 { font-size: var(--tui-font-size-xl); }
|
|
87
|
+
h5 { font-size: var(--tui-font-size-lg); }
|
|
88
|
+
h6 { font-size: var(--tui-font-size-md); }
|
|
89
|
+
|
|
90
|
+
/* Code */
|
|
91
|
+
code, kbd, pre, samp {
|
|
92
|
+
font-family: var(--tui-font-family-mono);
|
|
93
|
+
font-size: var(--tui-font-size-sm);
|
|
94
|
+
}
|