@campminder/ds 0.2.0 → 0.4.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/dist/index.cjs +1247 -210
- package/dist/index.d.cts +176 -3
- package/dist/index.d.ts +176 -3
- package/dist/index.js +1246 -213
- package/fonts/general-sans/GeneralSans-Bold.woff +0 -0
- package/fonts/general-sans/GeneralSans-Bold.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-BoldItalic.woff +0 -0
- package/fonts/general-sans/GeneralSans-BoldItalic.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-Extralight.woff +0 -0
- package/fonts/general-sans/GeneralSans-Extralight.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-ExtralightItalic.woff +0 -0
- package/fonts/general-sans/GeneralSans-ExtralightItalic.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-Italic.woff +0 -0
- package/fonts/general-sans/GeneralSans-Italic.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-Light.woff +0 -0
- package/fonts/general-sans/GeneralSans-Light.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-LightItalic.woff +0 -0
- package/fonts/general-sans/GeneralSans-LightItalic.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-Medium.woff +0 -0
- package/fonts/general-sans/GeneralSans-Medium.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-MediumItalic.woff +0 -0
- package/fonts/general-sans/GeneralSans-MediumItalic.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-Regular.woff +0 -0
- package/fonts/general-sans/GeneralSans-Regular.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-Semibold.woff +0 -0
- package/fonts/general-sans/GeneralSans-Semibold.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-SemiboldItalic.woff +0 -0
- package/fonts/general-sans/GeneralSans-SemiboldItalic.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-Variable.woff +0 -0
- package/fonts/general-sans/GeneralSans-Variable.woff2 +0 -0
- package/fonts/general-sans/GeneralSans-VariableItalic.woff +0 -0
- package/fonts/general-sans/GeneralSans-VariableItalic.woff2 +0 -0
- package/package.json +3 -2
- package/styles.css +120 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@campminder/ds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Campminder design system components, packaged. base-ui-era shadcn primitives + domain components + design tokens, for apps that prefer npm install over shadcn copy-source.",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
],
|
|
15
15
|
"files": [
|
|
16
16
|
"dist",
|
|
17
|
-
"styles.css"
|
|
17
|
+
"styles.css",
|
|
18
|
+
"fonts"
|
|
18
19
|
],
|
|
19
20
|
"main": "./dist/index.cjs",
|
|
20
21
|
"module": "./dist/index.js",
|
package/styles.css
CHANGED
|
@@ -2,9 +2,122 @@
|
|
|
2
2
|
Run `npm run build` (or `node scripts/gen-tokens-css.mjs`) to regenerate.
|
|
3
3
|
Consumers: @import "@campminder/ds/styles.css" after @import "tailwindcss". */
|
|
4
4
|
|
|
5
|
+
@font-face {
|
|
6
|
+
font-family: 'General Sans';
|
|
7
|
+
src: url('./fonts/general-sans/GeneralSans-Extralight.woff2') format('woff2'),
|
|
8
|
+
url('./fonts/general-sans/GeneralSans-Extralight.woff') format('woff');
|
|
9
|
+
font-weight: 200;
|
|
10
|
+
font-style: normal;
|
|
11
|
+
font-display: swap;
|
|
12
|
+
}
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: 'General Sans';
|
|
15
|
+
src: url('./fonts/general-sans/GeneralSans-Light.woff2') format('woff2'),
|
|
16
|
+
url('./fonts/general-sans/GeneralSans-Light.woff') format('woff');
|
|
17
|
+
font-weight: 300;
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-display: swap;
|
|
20
|
+
}
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: 'General Sans';
|
|
23
|
+
src: url('./fonts/general-sans/GeneralSans-Regular.woff2') format('woff2'),
|
|
24
|
+
url('./fonts/general-sans/GeneralSans-Regular.woff') format('woff');
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-display: swap;
|
|
28
|
+
}
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: 'General Sans';
|
|
31
|
+
src: url('./fonts/general-sans/GeneralSans-Medium.woff2') format('woff2'),
|
|
32
|
+
url('./fonts/general-sans/GeneralSans-Medium.woff') format('woff');
|
|
33
|
+
font-weight: 500;
|
|
34
|
+
font-style: normal;
|
|
35
|
+
font-display: swap;
|
|
36
|
+
}
|
|
37
|
+
@font-face {
|
|
38
|
+
font-family: 'General Sans';
|
|
39
|
+
src: url('./fonts/general-sans/GeneralSans-Semibold.woff2') format('woff2'),
|
|
40
|
+
url('./fonts/general-sans/GeneralSans-Semibold.woff') format('woff');
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
font-style: normal;
|
|
43
|
+
font-display: swap;
|
|
44
|
+
}
|
|
45
|
+
@font-face {
|
|
46
|
+
font-family: 'General Sans';
|
|
47
|
+
src: url('./fonts/general-sans/GeneralSans-Bold.woff2') format('woff2'),
|
|
48
|
+
url('./fonts/general-sans/GeneralSans-Bold.woff') format('woff');
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
font-style: normal;
|
|
51
|
+
font-display: swap;
|
|
52
|
+
}
|
|
53
|
+
@font-face {
|
|
54
|
+
font-family: 'General Sans';
|
|
55
|
+
src: url('./fonts/general-sans/GeneralSans-ExtralightItalic.woff2') format('woff2'),
|
|
56
|
+
url('./fonts/general-sans/GeneralSans-ExtralightItalic.woff') format('woff');
|
|
57
|
+
font-weight: 200;
|
|
58
|
+
font-style: italic;
|
|
59
|
+
font-display: swap;
|
|
60
|
+
}
|
|
61
|
+
@font-face {
|
|
62
|
+
font-family: 'General Sans';
|
|
63
|
+
src: url('./fonts/general-sans/GeneralSans-LightItalic.woff2') format('woff2'),
|
|
64
|
+
url('./fonts/general-sans/GeneralSans-LightItalic.woff') format('woff');
|
|
65
|
+
font-weight: 300;
|
|
66
|
+
font-style: italic;
|
|
67
|
+
font-display: swap;
|
|
68
|
+
}
|
|
69
|
+
@font-face {
|
|
70
|
+
font-family: 'General Sans';
|
|
71
|
+
src: url('./fonts/general-sans/GeneralSans-Italic.woff2') format('woff2'),
|
|
72
|
+
url('./fonts/general-sans/GeneralSans-Italic.woff') format('woff');
|
|
73
|
+
font-weight: 400;
|
|
74
|
+
font-style: italic;
|
|
75
|
+
font-display: swap;
|
|
76
|
+
}
|
|
77
|
+
@font-face {
|
|
78
|
+
font-family: 'General Sans';
|
|
79
|
+
src: url('./fonts/general-sans/GeneralSans-MediumItalic.woff2') format('woff2'),
|
|
80
|
+
url('./fonts/general-sans/GeneralSans-MediumItalic.woff') format('woff');
|
|
81
|
+
font-weight: 500;
|
|
82
|
+
font-style: italic;
|
|
83
|
+
font-display: swap;
|
|
84
|
+
}
|
|
85
|
+
@font-face {
|
|
86
|
+
font-family: 'General Sans';
|
|
87
|
+
src: url('./fonts/general-sans/GeneralSans-SemiboldItalic.woff2') format('woff2'),
|
|
88
|
+
url('./fonts/general-sans/GeneralSans-SemiboldItalic.woff') format('woff');
|
|
89
|
+
font-weight: 600;
|
|
90
|
+
font-style: italic;
|
|
91
|
+
font-display: swap;
|
|
92
|
+
}
|
|
93
|
+
@font-face {
|
|
94
|
+
font-family: 'General Sans';
|
|
95
|
+
src: url('./fonts/general-sans/GeneralSans-BoldItalic.woff2') format('woff2'),
|
|
96
|
+
url('./fonts/general-sans/GeneralSans-BoldItalic.woff') format('woff');
|
|
97
|
+
font-weight: 700;
|
|
98
|
+
font-style: italic;
|
|
99
|
+
font-display: swap;
|
|
100
|
+
}
|
|
101
|
+
@font-face {
|
|
102
|
+
font-family: 'General Sans Variable';
|
|
103
|
+
src: url('./fonts/general-sans/GeneralSans-Variable.woff2') format('woff2'),
|
|
104
|
+
url('./fonts/general-sans/GeneralSans-Variable.woff') format('woff');
|
|
105
|
+
font-weight: 200 700;
|
|
106
|
+
font-style: normal;
|
|
107
|
+
font-display: swap;
|
|
108
|
+
}
|
|
109
|
+
@font-face {
|
|
110
|
+
font-family: 'General Sans Variable';
|
|
111
|
+
src: url('./fonts/general-sans/GeneralSans-VariableItalic.woff2') format('woff2'),
|
|
112
|
+
url('./fonts/general-sans/GeneralSans-VariableItalic.woff') format('woff');
|
|
113
|
+
font-weight: 200 700;
|
|
114
|
+
font-style: italic;
|
|
115
|
+
font-display: swap;
|
|
116
|
+
}
|
|
117
|
+
|
|
5
118
|
@theme {
|
|
6
|
-
/*
|
|
7
|
-
--font-sans:
|
|
119
|
+
/* General Sans is self-hosted via @font-face above */
|
|
120
|
+
--font-sans: "General Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
8
121
|
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
|
9
122
|
|
|
10
123
|
--color-background: var(--base-background, #ffffff);
|
|
@@ -228,5 +341,10 @@
|
|
|
228
341
|
color-scheme: light;
|
|
229
342
|
}
|
|
230
343
|
|
|
344
|
+
/* Apply General Sans as the base typeface. */
|
|
345
|
+
body {
|
|
346
|
+
font-family: var(--font-sans);
|
|
347
|
+
}
|
|
348
|
+
|
|
231
349
|
/* Scan the package's compiled components so Tailwind v4 keeps their classes. */
|
|
232
350
|
@source "./dist";
|