@libretexts/davis-core 1.1.0 → 1.2.1
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 +66 -8
- package/dist/base.scoped.css +69 -66
- package/dist/base.v4.css +89 -0
- package/dist/theme.css +119 -46
- package/dist/tokens.d.ts +204 -43
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +212 -43
- package/dist/tokens.js.map +1 -1
- package/dist/variants.d.ts +469 -0
- package/dist/variants.d.ts.map +1 -1
- package/dist/variants.js +118 -15
- package/dist/variants.js.map +1 -1
- package/package.json +3 -5
- package/tailwind.preset.cjs +0 -205
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libretexts/davis-core",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Shared variant definitions and utilities for Davis UI library",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"README.md",
|
|
10
10
|
"dist",
|
|
11
|
-
"LICENSE"
|
|
12
|
-
"tailwind.preset.cjs"
|
|
11
|
+
"LICENSE"
|
|
13
12
|
],
|
|
14
13
|
"exports": {
|
|
15
14
|
".": {
|
|
@@ -17,9 +16,8 @@
|
|
|
17
16
|
"import": "./dist/index.js",
|
|
18
17
|
"default": "./dist/index.js"
|
|
19
18
|
},
|
|
20
|
-
"./tailwind.preset": "./tailwind.preset.cjs",
|
|
21
19
|
"./base.css": "./dist/base.css",
|
|
22
|
-
"./base.
|
|
20
|
+
"./base.v4.css": "./dist/base.v4.css",
|
|
23
21
|
"./theme.css": "./dist/theme.css",
|
|
24
22
|
"./package.json": "./package.json"
|
|
25
23
|
},
|
package/tailwind.preset.cjs
DELETED
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Davis Design System — Tailwind CSS Preset
|
|
3
|
-
*
|
|
4
|
-
* AUTO-GENERATED from tokens.ts — DO NOT EDIT MANUALLY
|
|
5
|
-
* Run 'npm run generate:configs' to regenerate
|
|
6
|
-
*
|
|
7
|
-
* The runtime source of truth for any app or package using the design system.
|
|
8
|
-
* Import via: presets: [require("@libretexts/davis-core/tailwind.preset")]
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/** @type {import('tailwindcss').Config} */
|
|
12
|
-
module.exports = {
|
|
13
|
-
theme: {
|
|
14
|
-
// Top-level overrides (replace Tailwind defaults)
|
|
15
|
-
fontSize: {
|
|
16
|
-
"xs": [
|
|
17
|
-
"0.640rem",
|
|
18
|
-
{
|
|
19
|
-
"lineHeight": "1rem"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"sm": [
|
|
23
|
-
"0.800rem",
|
|
24
|
-
{
|
|
25
|
-
"lineHeight": "1.25rem"
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"base": [
|
|
29
|
-
"1rem",
|
|
30
|
-
{
|
|
31
|
-
"lineHeight": "1.5rem"
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"lg": [
|
|
35
|
-
"1.250rem",
|
|
36
|
-
{
|
|
37
|
-
"lineHeight": "1.75rem"
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
"xl": [
|
|
41
|
-
"1.563rem",
|
|
42
|
-
{
|
|
43
|
-
"lineHeight": "2rem"
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"2xl": [
|
|
47
|
-
"1.953rem",
|
|
48
|
-
{
|
|
49
|
-
"lineHeight": "2.25rem"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"3xl": [
|
|
53
|
-
"2.441rem",
|
|
54
|
-
{
|
|
55
|
-
"lineHeight": "2.75rem"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"4xl": [
|
|
59
|
-
"3.052rem",
|
|
60
|
-
{
|
|
61
|
-
"lineHeight": "3.25rem"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
boxShadow: {
|
|
67
|
-
"sm": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
68
|
-
"DEFAULT": "0 1px 3px 0 rgb(0 0 0 / 0.07), 0 1px 2px -1px rgb(0 0 0 / 0.07)",
|
|
69
|
-
"md": "0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05)",
|
|
70
|
-
"lg": "0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.05)",
|
|
71
|
-
"xl": "0 20px 25px -5px rgb(0 0 0 / 0.07), 0 8px 10px -6px rgb(0 0 0 / 0.05)",
|
|
72
|
-
"2xl": "0 25px 50px -12px rgb(0 0 0 / 0.15)",
|
|
73
|
-
"inner": "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
|
|
74
|
-
"none": "none"
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
extend: {
|
|
78
|
-
colors: {
|
|
79
|
-
primary: {
|
|
80
|
-
DEFAULT: '#127BC4',
|
|
81
|
-
50: '#EFF6FC',
|
|
82
|
-
100: '#DCEEF9',
|
|
83
|
-
200: '#B3D9F2',
|
|
84
|
-
300: '#80BDE8',
|
|
85
|
-
400: '#4A9ED9',
|
|
86
|
-
500: '#127BC4',
|
|
87
|
-
600: '#0F6FA2',
|
|
88
|
-
700: '#0B4A76',
|
|
89
|
-
800: '#0A3D62',
|
|
90
|
-
900: '#083350',
|
|
91
|
-
950: '#052135',
|
|
92
|
-
},
|
|
93
|
-
secondary: {
|
|
94
|
-
DEFAULT: '#0D8483',
|
|
95
|
-
50: '#F0FDFC',
|
|
96
|
-
100: '#CCFBF6',
|
|
97
|
-
200: '#9AF5ED',
|
|
98
|
-
300: '#5FE8DD',
|
|
99
|
-
400: '#2ECFCA',
|
|
100
|
-
500: '#0D8483',
|
|
101
|
-
600: '#0A6C6B',
|
|
102
|
-
700: '#0B5756',
|
|
103
|
-
800: '#0D4545',
|
|
104
|
-
900: '#103939',
|
|
105
|
-
950: '#052222',
|
|
106
|
-
},
|
|
107
|
-
tertiary: {
|
|
108
|
-
DEFAULT: '#5F65F5',
|
|
109
|
-
50: '#EDEDFE',
|
|
110
|
-
100: '#E0E1FD',
|
|
111
|
-
200: '#C6C8FB',
|
|
112
|
-
300: '#A5A8F8',
|
|
113
|
-
400: '#8287F7',
|
|
114
|
-
500: '#5F65F5',
|
|
115
|
-
600: '#4A4FDB',
|
|
116
|
-
700: '#3B3FB8',
|
|
117
|
-
800: '#323695',
|
|
118
|
-
900: '#2C2F7A',
|
|
119
|
-
950: '#1B1D4D',
|
|
120
|
-
},
|
|
121
|
-
success: {
|
|
122
|
-
DEFAULT: '#338650',
|
|
123
|
-
50: '#EEFBF3',
|
|
124
|
-
100: '#D6F5E2',
|
|
125
|
-
200: '#B0EBC8',
|
|
126
|
-
300: '#7CD9A5',
|
|
127
|
-
400: '#4DC37E',
|
|
128
|
-
500: '#338650',
|
|
129
|
-
600: '#2A7043',
|
|
130
|
-
700: '#235A37',
|
|
131
|
-
800: '#1F482E',
|
|
132
|
-
900: '#1A3B27',
|
|
133
|
-
950: '#0D2116',
|
|
134
|
-
},
|
|
135
|
-
warning: {
|
|
136
|
-
DEFAULT: '#BB5C21',
|
|
137
|
-
50: '#FFF7ED',
|
|
138
|
-
100: '#FFEDD5',
|
|
139
|
-
200: '#FED7AA',
|
|
140
|
-
300: '#FDBA74',
|
|
141
|
-
400: '#F59542',
|
|
142
|
-
500: '#BB5C21',
|
|
143
|
-
600: '#A14D1B',
|
|
144
|
-
700: '#863E16',
|
|
145
|
-
800: '#6C3214',
|
|
146
|
-
900: '#592B14',
|
|
147
|
-
950: '#30130A',
|
|
148
|
-
},
|
|
149
|
-
danger: {
|
|
150
|
-
DEFAULT: '#DC3838',
|
|
151
|
-
50: '#FEF2F2',
|
|
152
|
-
100: '#FEE2E2',
|
|
153
|
-
200: '#FECACA',
|
|
154
|
-
300: '#FCA5A5',
|
|
155
|
-
400: '#F07272',
|
|
156
|
-
500: '#DC3838',
|
|
157
|
-
600: '#C42828',
|
|
158
|
-
700: '#A32222',
|
|
159
|
-
800: '#872222',
|
|
160
|
-
900: '#712222',
|
|
161
|
-
950: '#3E0E0E',
|
|
162
|
-
},
|
|
163
|
-
neutral: {
|
|
164
|
-
DEFAULT: '#18181B',
|
|
165
|
-
50: '#FAFAFA',
|
|
166
|
-
100: '#F4F4F5',
|
|
167
|
-
200: '#E4E4E7',
|
|
168
|
-
300: '#D4D4D8',
|
|
169
|
-
400: '#A1A1AA',
|
|
170
|
-
500: '#71717A',
|
|
171
|
-
600: '#52525B',
|
|
172
|
-
700: '#3F3F46',
|
|
173
|
-
800: '#27272A',
|
|
174
|
-
900: '#18181B',
|
|
175
|
-
950: '#09090B',
|
|
176
|
-
},
|
|
177
|
-
surface: {
|
|
178
|
-
DEFAULT: '#FFFFFF',
|
|
179
|
-
muted: '#F9FAFB',
|
|
180
|
-
subtle: '#F4F4F5',
|
|
181
|
-
},
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
fontFamily: {
|
|
185
|
-
sans: ["Atkinson Hyperlegible","ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","sans-serif"],
|
|
186
|
-
},
|
|
187
|
-
|
|
188
|
-
ringColor: {
|
|
189
|
-
DEFAULT: '#127BC4',
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
borderRadius: {
|
|
193
|
-
"none": "0",
|
|
194
|
-
"sm": "0.125rem",
|
|
195
|
-
"DEFAULT": "0.375rem",
|
|
196
|
-
"md": "0.375rem",
|
|
197
|
-
"lg": "0.5rem",
|
|
198
|
-
"xl": "0.75rem",
|
|
199
|
-
"2xl": "1rem",
|
|
200
|
-
"3xl": "1.5rem",
|
|
201
|
-
"full": "9999px"
|
|
202
|
-
},
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
};
|