@nattstack/ui 0.0.13 → 0.0.15
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/baseline/index.css +138 -0
- package/dist/tailwind-baseline/index.css +1 -0
- package/dist/tailwind-colors/color.css +11 -0
- package/dist/tailwind-colors/index.css +1 -0
- package/dist/tailwind-colors/root.css +17 -0
- package/dist/tailwind-tokenless/10/index.css +0 -4
- package/dist/tailwind-tokenless/16/index.css +0 -1
- package/package.json +2 -3
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/* ====================================================== /
|
|
2
|
+
Baseline
|
|
3
|
+
Last updated: 2026.04.09
|
|
4
|
+
|
|
5
|
+
The goal of a reset stylesheet is to reduce browser
|
|
6
|
+
inconsistencies, improve the user experience, and
|
|
7
|
+
improve the CSS authoring experience. Assumes
|
|
8
|
+
the use of Tailwind CSS Preflight.
|
|
9
|
+
|
|
10
|
+
Reference:
|
|
11
|
+
- https://www.joshwcomeau.com/css/custom-css-reset
|
|
12
|
+
- https://piccalil.li/blog/a-more-modern-css-reset/
|
|
13
|
+
// ===================================================== */
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
Adapt to color schemes (scrollbar color)
|
|
17
|
+
*/
|
|
18
|
+
:root {
|
|
19
|
+
color-scheme: light dark;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
(Mobile) Disable automatic text size increase
|
|
24
|
+
(Mobile) Disables additional non-standard gestures such as double-tap to zoom
|
|
25
|
+
*/
|
|
26
|
+
html {
|
|
27
|
+
-moz-text-size-adjust: none;
|
|
28
|
+
-webkit-text-size-adjust: none;
|
|
29
|
+
text-size-adjust: none;
|
|
30
|
+
touch-action: manipulation;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
Write comment here
|
|
35
|
+
*/
|
|
36
|
+
body {
|
|
37
|
+
-moz-osx-font-smoothing: grayscale;
|
|
38
|
+
-webkit-font-smoothing: antialiased;
|
|
39
|
+
-webkit-tap-highlight-color: transparent;
|
|
40
|
+
background-color: var(--color-bg-secondary);
|
|
41
|
+
color: var(--color-text-secondary);
|
|
42
|
+
font-family: var(--font-sans);
|
|
43
|
+
font-size: 16px;
|
|
44
|
+
line-height: 1.5;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (max-width: 768px) {
|
|
48
|
+
body[data-is-app="true"] {
|
|
49
|
+
background-color: var(--color-bg-primary);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/*
|
|
54
|
+
Write comment here
|
|
55
|
+
*/
|
|
56
|
+
a,
|
|
57
|
+
button {
|
|
58
|
+
outline-color: var(--color-outline);
|
|
59
|
+
outline-offset: -2px;
|
|
60
|
+
outline-style: solid;
|
|
61
|
+
outline-width: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
a:focus-visible,
|
|
65
|
+
button:focus-visible {
|
|
66
|
+
outline-width: 2px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/*
|
|
70
|
+
Write comment here
|
|
71
|
+
*/
|
|
72
|
+
h1,
|
|
73
|
+
h2,
|
|
74
|
+
h3,
|
|
75
|
+
h4,
|
|
76
|
+
h5,
|
|
77
|
+
h6 {
|
|
78
|
+
color: var(--color-text-primary);
|
|
79
|
+
font-family: var(--font-display);
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
text-wrap: balance;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/*
|
|
85
|
+
Write comment here
|
|
86
|
+
*/
|
|
87
|
+
p {
|
|
88
|
+
text-wrap: pretty;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/*
|
|
92
|
+
(Safari mobile) Remove top inner shadow
|
|
93
|
+
*/
|
|
94
|
+
input,
|
|
95
|
+
textarea {
|
|
96
|
+
-webkit-appearance: none;
|
|
97
|
+
appearance: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/*
|
|
101
|
+
Remove input arrows
|
|
102
|
+
Chrome, Safari, Edge, Opera
|
|
103
|
+
*/
|
|
104
|
+
input::-webkit-outer-spin-button,
|
|
105
|
+
input::-webkit-inner-spin-button {
|
|
106
|
+
margin: 0;
|
|
107
|
+
-webkit-appearance: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/*
|
|
111
|
+
Remove input number arrows
|
|
112
|
+
*/
|
|
113
|
+
input[type="number"] {
|
|
114
|
+
-moz-appearance: textfield;
|
|
115
|
+
appearance: textfield;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/*
|
|
119
|
+
Respecting motion preferences
|
|
120
|
+
Reference: https://web.dev/articles/prefers-reduced-motion#bonus_forcing_reduced_motion_on_all_websites
|
|
121
|
+
*/
|
|
122
|
+
@media (prefers-reduced-motion: reduce) {
|
|
123
|
+
*,
|
|
124
|
+
::before,
|
|
125
|
+
::after {
|
|
126
|
+
animation-delay: -1ms !important;
|
|
127
|
+
animation-duration: 1ms !important;
|
|
128
|
+
animation-iteration-count: 1 !important;
|
|
129
|
+
background-attachment: initial !important;
|
|
130
|
+
scroll-behavior: auto !important;
|
|
131
|
+
transition-delay: -1ms !important;
|
|
132
|
+
transition-duration: 1ms !important;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.d {
|
|
137
|
+
border: 1px dashed red;
|
|
138
|
+
}
|
|
@@ -83,4 +83,15 @@
|
|
|
83
83
|
--color-primary-dark-10: var(--color-primary-dark-10);
|
|
84
84
|
--color-primary-dark-11: var(--color-primary-dark-11);
|
|
85
85
|
--color-primary-dark-12: var(--color-primary-dark-12);
|
|
86
|
+
|
|
87
|
+
/* Semantic ========================================== */
|
|
88
|
+
--color-primary: var(--color-primary-9);
|
|
89
|
+
|
|
90
|
+
--color-bg-primary: var(--color-bg-primary);
|
|
91
|
+
--color-bg-secondary: var(--color-bg-secondary);
|
|
92
|
+
|
|
93
|
+
--color-border: var(--color-border);
|
|
94
|
+
|
|
95
|
+
--color-text-primary: var(--color-text-primary);
|
|
96
|
+
--color-text-secondary: var(--color-text-secondary);
|
|
86
97
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-primary: var(--color-primary-9);
|
|
3
|
+
|
|
4
|
+
--color-bg-primary: var(--color-gray-1);
|
|
5
|
+
--color-bg-secondary: var(--color-gray-2);
|
|
6
|
+
|
|
7
|
+
--color-border: var(--color-gray-4);
|
|
8
|
+
--color-outline: var(--color-primary-9);
|
|
9
|
+
|
|
10
|
+
--color-text-primary: var(--color-gray-12);
|
|
11
|
+
--color-text-secondary: var(--color-gray-11);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.dark {
|
|
15
|
+
--color-bg-primary: var(--color-gray-2);
|
|
16
|
+
--color-bg-secondary: var(--color-gray-1);
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nattstack/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"description": "A collection of reusable React components built with Base UI, TypeScript, and CSS Modules",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"base-ui",
|
|
@@ -31,9 +31,8 @@
|
|
|
31
31
|
"types": "./dist/components/index.d.ts",
|
|
32
32
|
"import": "./dist/components/index.js"
|
|
33
33
|
},
|
|
34
|
+
"./baseline": "./dist/baseline/index.css",
|
|
34
35
|
"./colors": "./dist/colors/index.css",
|
|
35
|
-
"./tailwind-baseline": "./dist/tailwind-baseline/index.css",
|
|
36
|
-
"./tailwind-colors-semantic": "./dist/tailwind-colors-semantic/index.css",
|
|
37
36
|
"./tailwind-colors": "./dist/tailwind-colors/index.css",
|
|
38
37
|
"./tailwind-tokenless-10": "./dist/tailwind-tokenless/10/index.css",
|
|
39
38
|
"./tailwind-tokenless-16": "./dist/tailwind-tokenless/16/index.css"
|