@libretexts/davis-core 1.0.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/LICENSE +21 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/tokens.d.ts +284 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +237 -0
- package/dist/tokens.js.map +1 -0
- package/dist/variants.d.ts +2296 -0
- package/dist/variants.d.ts.map +1 -0
- package/dist/variants.js +576 -0
- package/dist/variants.js.map +1 -0
- package/package.json +63 -0
- package/src/base.css +104 -0
- package/src/base.scoped.css +170 -0
- package/src/theme.css +173 -0
- package/tailwind.preset.cjs +205 -0
package/src/base.css
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Davis Design System — Base Styles
|
|
3
|
+
*
|
|
4
|
+
* AUTO-GENERATED from tokens.ts — DO NOT EDIT MANUALLY
|
|
5
|
+
* Run 'npm run generate:configs' to regenerate
|
|
6
|
+
*
|
|
7
|
+
* Framework-agnostic base CSS imported by consuming packages.
|
|
8
|
+
* Contains CSS custom properties, typography defaults, heading hierarchy,
|
|
9
|
+
* and focus-visible patterns.
|
|
10
|
+
*
|
|
11
|
+
* Does NOT include @tailwind directives — each consuming package adds those
|
|
12
|
+
* to its own stylesheet.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
@layer base {
|
|
16
|
+
/* ─── CSS Custom Properties ─────────────────────────────────── */
|
|
17
|
+
|
|
18
|
+
:root {
|
|
19
|
+
/* Colors */
|
|
20
|
+
--davis-color-primary: #127BC4;
|
|
21
|
+
--davis-color-secondary: #0D8483;
|
|
22
|
+
--davis-color-tertiary: #5F65F5;
|
|
23
|
+
--davis-color-success: #338650;
|
|
24
|
+
--davis-color-warning: #BB5C21;
|
|
25
|
+
--davis-color-danger: #DC3838;
|
|
26
|
+
--davis-color-neutral: #18181B;
|
|
27
|
+
|
|
28
|
+
/* Surface */
|
|
29
|
+
--davis-surface: #FFFFFF;
|
|
30
|
+
--davis-surface-muted: #F9FAFB;
|
|
31
|
+
--davis-surface-subtle: #F4F4F5;
|
|
32
|
+
|
|
33
|
+
/* Typography */
|
|
34
|
+
--davis-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
35
|
+
|
|
36
|
+
/* Border Radius */
|
|
37
|
+
--davis-radius: 0.375rem;
|
|
38
|
+
|
|
39
|
+
/* Focus Ring */
|
|
40
|
+
--davis-ring-width: 2px;
|
|
41
|
+
--davis-ring-color: #127BC4;
|
|
42
|
+
--davis-ring-offset: 2px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* ─── Typography Defaults ───────────────────────────────────── */
|
|
46
|
+
|
|
47
|
+
html {
|
|
48
|
+
font-family: var(--davis-font-family);
|
|
49
|
+
font-size: 16px;
|
|
50
|
+
-webkit-font-smoothing: antialiased;
|
|
51
|
+
-moz-osx-font-smoothing: grayscale;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* ─── Heading Hierarchy (Major Third Scale) ─────────────────── */
|
|
55
|
+
|
|
56
|
+
h1 {
|
|
57
|
+
font-size: 3.052rem;
|
|
58
|
+
line-height: 3.25rem;
|
|
59
|
+
font-weight: 700;
|
|
60
|
+
letter-spacing: -0.025em;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
h2 {
|
|
64
|
+
font-size: 2.441rem;
|
|
65
|
+
line-height: 2.75rem;
|
|
66
|
+
font-weight: 700;
|
|
67
|
+
letter-spacing: -0.02em;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
h3 {
|
|
71
|
+
font-size: 1.953rem;
|
|
72
|
+
line-height: 2.25rem;
|
|
73
|
+
font-weight: 600;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
h4 {
|
|
77
|
+
font-size: 1.563rem;
|
|
78
|
+
line-height: 2rem;
|
|
79
|
+
font-weight: 600;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
h5 {
|
|
83
|
+
font-size: 1.250rem;
|
|
84
|
+
line-height: 1.75rem;
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
h6 {
|
|
89
|
+
font-size: 1.250rem;
|
|
90
|
+
line-height: 1.75rem;
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* ─── Focus Management ──────────────────────────────────────── */
|
|
95
|
+
|
|
96
|
+
*:focus-visible {
|
|
97
|
+
outline: var(--davis-ring-width) solid var(--davis-ring-color);
|
|
98
|
+
outline-offset: var(--davis-ring-offset);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
*:focus:not(:focus-visible) {
|
|
102
|
+
outline: none;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Davis Design System — Scoped Base Styles
|
|
3
|
+
*
|
|
4
|
+
* AUTO-GENERATED from tokens.ts — DO NOT EDIT MANUALLY
|
|
5
|
+
* Run 'npm run generate:configs' to regenerate
|
|
6
|
+
*
|
|
7
|
+
* Standalone variant of base.css where every rule is scoped under `.davis`.
|
|
8
|
+
* This prevents style leakage into host applications.
|
|
9
|
+
*
|
|
10
|
+
* Used by the standalone CSS bundle — the full-integration base.css is unchanged.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/* ─── CSS Custom Properties (scoped to .davis) ───────────────── */
|
|
14
|
+
|
|
15
|
+
.davis {
|
|
16
|
+
/* Colors */
|
|
17
|
+
--davis-color-primary: #127BC4;
|
|
18
|
+
--davis-color-secondary: #0D8483;
|
|
19
|
+
--davis-color-tertiary: #5F65F5;
|
|
20
|
+
--davis-color-success: #338650;
|
|
21
|
+
--davis-color-warning: #BB5C21;
|
|
22
|
+
--davis-color-danger: #DC3838;
|
|
23
|
+
--davis-color-neutral: #18181B;
|
|
24
|
+
|
|
25
|
+
/* Surface */
|
|
26
|
+
--davis-surface: #FFFFFF;
|
|
27
|
+
--davis-surface-muted: #F9FAFB;
|
|
28
|
+
--davis-surface-subtle: #F4F4F5;
|
|
29
|
+
|
|
30
|
+
/* Typography */
|
|
31
|
+
--davis-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
32
|
+
|
|
33
|
+
/* Border Radius */
|
|
34
|
+
--davis-radius: 0.375rem;
|
|
35
|
+
|
|
36
|
+
/* Focus Ring */
|
|
37
|
+
--davis-ring-width: 2px;
|
|
38
|
+
--davis-ring-color: #127BC4;
|
|
39
|
+
--davis-ring-offset: 2px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* ─── Scoped Preflight replacements ──────────────────────────── */
|
|
43
|
+
/* These --tw-* variables are normally set by Tailwind's Preflight on *.
|
|
44
|
+
Since we disable Preflight in standalone mode, we initialize them here
|
|
45
|
+
so ring, shadow, transform, and filter utilities work correctly. */
|
|
46
|
+
|
|
47
|
+
.davis *,
|
|
48
|
+
.davis *::before,
|
|
49
|
+
.davis *::after {
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
border-width: 0;
|
|
52
|
+
border-style: solid;
|
|
53
|
+
border-color: currentColor;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.davis *,
|
|
57
|
+
.davis ::before,
|
|
58
|
+
.davis ::after {
|
|
59
|
+
--tw-border-spacing-x: 0;
|
|
60
|
+
--tw-border-spacing-y: 0;
|
|
61
|
+
--tw-translate-x: 0;
|
|
62
|
+
--tw-translate-y: 0;
|
|
63
|
+
--tw-rotate: 0;
|
|
64
|
+
--tw-skew-x: 0;
|
|
65
|
+
--tw-skew-y: 0;
|
|
66
|
+
--tw-scale-x: 1;
|
|
67
|
+
--tw-scale-y: 1;
|
|
68
|
+
--tw-pan-x: ;
|
|
69
|
+
--tw-pan-y: ;
|
|
70
|
+
--tw-pinch-zoom: ;
|
|
71
|
+
--tw-scroll-snap-strictness: proximity;
|
|
72
|
+
--tw-gradient-from-position: ;
|
|
73
|
+
--tw-gradient-via-position: ;
|
|
74
|
+
--tw-gradient-to-position: ;
|
|
75
|
+
--tw-ordinal: ;
|
|
76
|
+
--tw-slashed-zero: ;
|
|
77
|
+
--tw-numeric-figure: ;
|
|
78
|
+
--tw-numeric-spacing: ;
|
|
79
|
+
--tw-numeric-fraction: ;
|
|
80
|
+
--tw-ring-inset: ;
|
|
81
|
+
--tw-ring-offset-width: 0px;
|
|
82
|
+
--tw-ring-offset-color: #fff;
|
|
83
|
+
--tw-ring-color: rgb(59 130 246 / 0.5);
|
|
84
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
85
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
86
|
+
--tw-shadow: 0 0 #0000;
|
|
87
|
+
--tw-shadow-colored: 0 0 #0000;
|
|
88
|
+
--tw-blur: ;
|
|
89
|
+
--tw-brightness: ;
|
|
90
|
+
--tw-contrast: ;
|
|
91
|
+
--tw-grayscale: ;
|
|
92
|
+
--tw-hue-rotate: ;
|
|
93
|
+
--tw-invert: ;
|
|
94
|
+
--tw-saturate: ;
|
|
95
|
+
--tw-sepia: ;
|
|
96
|
+
--tw-drop-shadow: ;
|
|
97
|
+
--tw-backdrop-blur: ;
|
|
98
|
+
--tw-backdrop-brightness: ;
|
|
99
|
+
--tw-backdrop-contrast: ;
|
|
100
|
+
--tw-backdrop-grayscale: ;
|
|
101
|
+
--tw-backdrop-hue-rotate: ;
|
|
102
|
+
--tw-backdrop-invert: ;
|
|
103
|
+
--tw-backdrop-opacity: ;
|
|
104
|
+
--tw-backdrop-saturate: ;
|
|
105
|
+
--tw-backdrop-sepia: ;
|
|
106
|
+
--tw-contain-size: ;
|
|
107
|
+
--tw-contain-layout: ;
|
|
108
|
+
--tw-contain-paint: ;
|
|
109
|
+
--tw-contain-style: ;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* ─── Typography Defaults (scoped) ───────────────────────────── */
|
|
113
|
+
|
|
114
|
+
.davis {
|
|
115
|
+
font-family: var(--davis-font-family);
|
|
116
|
+
font-size: 16px;
|
|
117
|
+
-webkit-font-smoothing: antialiased;
|
|
118
|
+
-moz-osx-font-smoothing: grayscale;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* ─── Heading Hierarchy (Major Third Scale, scoped) ──────────── */
|
|
122
|
+
|
|
123
|
+
.davis h1 {
|
|
124
|
+
font-size: 3.052rem;
|
|
125
|
+
line-height: 3.25rem;
|
|
126
|
+
font-weight: 700;
|
|
127
|
+
letter-spacing: -0.025em;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.davis h2 {
|
|
131
|
+
font-size: 2.441rem;
|
|
132
|
+
line-height: 2.75rem;
|
|
133
|
+
font-weight: 700;
|
|
134
|
+
letter-spacing: -0.02em;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.davis h3 {
|
|
138
|
+
font-size: 1.953rem;
|
|
139
|
+
line-height: 2.25rem;
|
|
140
|
+
font-weight: 600;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.davis h4 {
|
|
144
|
+
font-size: 1.563rem;
|
|
145
|
+
line-height: 2rem;
|
|
146
|
+
font-weight: 600;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.davis h5 {
|
|
150
|
+
font-size: 1.250rem;
|
|
151
|
+
line-height: 1.75rem;
|
|
152
|
+
font-weight: 600;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.davis h6 {
|
|
156
|
+
font-size: 1.250rem;
|
|
157
|
+
line-height: 1.75rem;
|
|
158
|
+
font-weight: 600;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* ─── Focus Management (scoped) ──────────────────────────────── */
|
|
162
|
+
|
|
163
|
+
.davis *:focus-visible {
|
|
164
|
+
outline: var(--davis-ring-width) solid var(--davis-ring-color);
|
|
165
|
+
outline-offset: var(--davis-ring-offset);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.davis *:focus:not(:focus-visible) {
|
|
169
|
+
outline: none;
|
|
170
|
+
}
|
package/src/theme.css
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Davis Design System — Tailwind CSS v4 Theme
|
|
3
|
+
*
|
|
4
|
+
* AUTO-GENERATED from tokens.ts — DO NOT EDIT MANUALLY
|
|
5
|
+
* Run 'npm run generate:configs' to regenerate
|
|
6
|
+
*
|
|
7
|
+
* Theme configuration for Tailwind CSS v4 using @theme directive.
|
|
8
|
+
* Import this file in your CSS to get all Davis design tokens.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
@theme {
|
|
12
|
+
/* ─── Typography ──────────────────────────────────────────── */
|
|
13
|
+
|
|
14
|
+
--font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
|
|
15
|
+
|
|
16
|
+
/* Major Third typographic scale (ratio 1.250, base 16px) */
|
|
17
|
+
--font-size-xs: 0.640rem;
|
|
18
|
+
--font-size-xs--line-height: 1rem;
|
|
19
|
+
|
|
20
|
+
--font-size-sm: 0.800rem;
|
|
21
|
+
--font-size-sm--line-height: 1.25rem;
|
|
22
|
+
|
|
23
|
+
--font-size-base: 1rem;
|
|
24
|
+
--font-size-base--line-height: 1.5rem;
|
|
25
|
+
|
|
26
|
+
--font-size-lg: 1.250rem;
|
|
27
|
+
--font-size-lg--line-height: 1.75rem;
|
|
28
|
+
|
|
29
|
+
--font-size-xl: 1.563rem;
|
|
30
|
+
--font-size-xl--line-height: 2rem;
|
|
31
|
+
|
|
32
|
+
--font-size-2xl: 1.953rem;
|
|
33
|
+
--font-size-2xl--line-height: 2.25rem;
|
|
34
|
+
|
|
35
|
+
--font-size-3xl: 2.441rem;
|
|
36
|
+
--font-size-3xl--line-height: 2.75rem;
|
|
37
|
+
|
|
38
|
+
--font-size-4xl: 3.052rem;
|
|
39
|
+
--font-size-4xl--line-height: 3.25rem;
|
|
40
|
+
|
|
41
|
+
/* ─── Colors ──────────────────────────────────────────────── */
|
|
42
|
+
|
|
43
|
+
/* Primary */
|
|
44
|
+
--color-primary-50: #EFF6FC;
|
|
45
|
+
--color-primary-100: #DCEEF9;
|
|
46
|
+
--color-primary-200: #B3D9F2;
|
|
47
|
+
--color-primary-300: #80BDE8;
|
|
48
|
+
--color-primary-400: #4A9ED9;
|
|
49
|
+
--color-primary-500: #127BC4;
|
|
50
|
+
--color-primary-600: #0F6FA2;
|
|
51
|
+
--color-primary-700: #0B4A76;
|
|
52
|
+
--color-primary-800: #0A3D62;
|
|
53
|
+
--color-primary-900: #083350;
|
|
54
|
+
--color-primary-950: #052135;
|
|
55
|
+
--color-primary: #127BC4;
|
|
56
|
+
|
|
57
|
+
/* Secondary */
|
|
58
|
+
--color-secondary-50: #F0FDFC;
|
|
59
|
+
--color-secondary-100: #CCFBF6;
|
|
60
|
+
--color-secondary-200: #9AF5ED;
|
|
61
|
+
--color-secondary-300: #5FE8DD;
|
|
62
|
+
--color-secondary-400: #2ECFCA;
|
|
63
|
+
--color-secondary-500: #0D8483;
|
|
64
|
+
--color-secondary-600: #0A6C6B;
|
|
65
|
+
--color-secondary-700: #0B5756;
|
|
66
|
+
--color-secondary-800: #0D4545;
|
|
67
|
+
--color-secondary-900: #103939;
|
|
68
|
+
--color-secondary-950: #052222;
|
|
69
|
+
--color-secondary: #0D8483;
|
|
70
|
+
|
|
71
|
+
/* Tertiary */
|
|
72
|
+
--color-tertiary-50: #EDEDFE;
|
|
73
|
+
--color-tertiary-100: #E0E1FD;
|
|
74
|
+
--color-tertiary-200: #C6C8FB;
|
|
75
|
+
--color-tertiary-300: #A5A8F8;
|
|
76
|
+
--color-tertiary-400: #8287F7;
|
|
77
|
+
--color-tertiary-500: #5F65F5;
|
|
78
|
+
--color-tertiary-600: #4A4FDB;
|
|
79
|
+
--color-tertiary-700: #3B3FB8;
|
|
80
|
+
--color-tertiary-800: #323695;
|
|
81
|
+
--color-tertiary-900: #2C2F7A;
|
|
82
|
+
--color-tertiary-950: #1B1D4D;
|
|
83
|
+
--color-tertiary: #5F65F5;
|
|
84
|
+
|
|
85
|
+
/* Success */
|
|
86
|
+
--color-success-50: #EEFBF3;
|
|
87
|
+
--color-success-100: #D6F5E2;
|
|
88
|
+
--color-success-200: #B0EBC8;
|
|
89
|
+
--color-success-300: #7CD9A5;
|
|
90
|
+
--color-success-400: #4DC37E;
|
|
91
|
+
--color-success-500: #338650;
|
|
92
|
+
--color-success-600: #2A7043;
|
|
93
|
+
--color-success-700: #235A37;
|
|
94
|
+
--color-success-800: #1F482E;
|
|
95
|
+
--color-success-900: #1A3B27;
|
|
96
|
+
--color-success-950: #0D2116;
|
|
97
|
+
--color-success: #338650;
|
|
98
|
+
|
|
99
|
+
/* Warning */
|
|
100
|
+
--color-warning-50: #FFF7ED;
|
|
101
|
+
--color-warning-100: #FFEDD5;
|
|
102
|
+
--color-warning-200: #FED7AA;
|
|
103
|
+
--color-warning-300: #FDBA74;
|
|
104
|
+
--color-warning-400: #F59542;
|
|
105
|
+
--color-warning-500: #BB5C21;
|
|
106
|
+
--color-warning-600: #A14D1B;
|
|
107
|
+
--color-warning-700: #863E16;
|
|
108
|
+
--color-warning-800: #6C3214;
|
|
109
|
+
--color-warning-900: #592B14;
|
|
110
|
+
--color-warning-950: #30130A;
|
|
111
|
+
--color-warning: #BB5C21;
|
|
112
|
+
|
|
113
|
+
/* Danger */
|
|
114
|
+
--color-danger-50: #FEF2F2;
|
|
115
|
+
--color-danger-100: #FEE2E2;
|
|
116
|
+
--color-danger-200: #FECACA;
|
|
117
|
+
--color-danger-300: #FCA5A5;
|
|
118
|
+
--color-danger-400: #F07272;
|
|
119
|
+
--color-danger-500: #DC3838;
|
|
120
|
+
--color-danger-600: #C42828;
|
|
121
|
+
--color-danger-700: #A32222;
|
|
122
|
+
--color-danger-800: #872222;
|
|
123
|
+
--color-danger-900: #712222;
|
|
124
|
+
--color-danger-950: #3E0E0E;
|
|
125
|
+
--color-danger: #DC3838;
|
|
126
|
+
|
|
127
|
+
/* Neutral */
|
|
128
|
+
--color-neutral-50: #FAFAFA;
|
|
129
|
+
--color-neutral-100: #F4F4F5;
|
|
130
|
+
--color-neutral-200: #E4E4E7;
|
|
131
|
+
--color-neutral-300: #D4D4D8;
|
|
132
|
+
--color-neutral-400: #A1A1AA;
|
|
133
|
+
--color-neutral-500: #71717A;
|
|
134
|
+
--color-neutral-600: #52525B;
|
|
135
|
+
--color-neutral-700: #3F3F46;
|
|
136
|
+
--color-neutral-800: #27272A;
|
|
137
|
+
--color-neutral-900: #18181B;
|
|
138
|
+
--color-neutral-950: #09090B;
|
|
139
|
+
--color-neutral: #71717A;
|
|
140
|
+
|
|
141
|
+
/* Surface */
|
|
142
|
+
--color-surface: #FFFFFF;
|
|
143
|
+
--color-surface-muted: #F9FAFB;
|
|
144
|
+
--color-surface-subtle: #F4F4F5;
|
|
145
|
+
|
|
146
|
+
/* ─── Border Radius ───────────────────────────────────────── */
|
|
147
|
+
|
|
148
|
+
--radius-none: 0;
|
|
149
|
+
--radius-sm: 0.125rem;
|
|
150
|
+
--radius-DEFAULT: 0.375rem;
|
|
151
|
+
--radius: 0.375rem;
|
|
152
|
+
--radius-md: 0.375rem;
|
|
153
|
+
--radius-lg: 0.5rem;
|
|
154
|
+
--radius-xl: 0.75rem;
|
|
155
|
+
--radius-2xl: 1rem;
|
|
156
|
+
--radius-3xl: 1.5rem;
|
|
157
|
+
--radius-full: 9999px;
|
|
158
|
+
|
|
159
|
+
/* ─── Shadows ─────────────────────────────────────────────── */
|
|
160
|
+
|
|
161
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
162
|
+
--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.07), 0 1px 2px -1px rgb(0 0 0 / 0.07);
|
|
163
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
|
|
164
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.05);
|
|
165
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.07), 0 8px 10px -6px rgb(0 0 0 / 0.05);
|
|
166
|
+
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);
|
|
167
|
+
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
168
|
+
--shadow-none: none;
|
|
169
|
+
|
|
170
|
+
/* ─── Focus Ring ──────────────────────────────────────────── */
|
|
171
|
+
|
|
172
|
+
--ring-color: #127BC4;
|
|
173
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
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: ["Inter","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
|
+
};
|