stoop 0.0.8 → 0.0.9

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.
@@ -0,0 +1,67 @@
1
+ :root {
2
+ /* Colors */
3
+ --color-text: #000000;
4
+ --color-background: #ffffff;
5
+ --color-border: rgba(0, 0, 0, 0.1);
6
+ --color-primary: #000000;
7
+ --color-muted: #666666;
8
+
9
+ /* Spacing */
10
+ --space-smallest: 0.25rem;
11
+ --space-smaller: 0.5rem;
12
+ --space-small: 0.75rem;
13
+ --space-medium: 1rem;
14
+ --space-large: 1.5rem;
15
+ --space-larger: 2rem;
16
+ --space-largest: 10rem;
17
+
18
+ /* Radii */
19
+ --radius-small: 0.25rem;
20
+ --radius-large: 0.5rem;
21
+ --radius-round: 9999px;
22
+
23
+ /* Shadows */
24
+ --shadow-default: 0 0 0 1px rgba(0, 0, 0, 0.1);
25
+
26
+ /* Breakpoints */
27
+ --breakpoint-phone: 800px;
28
+ --breakpoint-tablet: 1024px;
29
+ --breakpoint-desktop: 1440px;
30
+ }
31
+
32
+ @media (prefers-color-scheme: dark) {
33
+ :root {
34
+ --color-text: #ffffff;
35
+ --color-background: #000000;
36
+ --color-border: rgba(255, 255, 255, 0.1);
37
+ --color-primary: #ffffff;
38
+ --color-muted: #999999;
39
+ }
40
+ }
41
+
42
+ /* Reset */
43
+ * {
44
+ margin: 0;
45
+ padding: 0;
46
+ box-sizing: border-box;
47
+ }
48
+
49
+ html {
50
+ font-size: 62.5%;
51
+ -webkit-text-size-adjust: 100%;
52
+ text-size-adjust: 100%;
53
+ scroll-behavior: smooth;
54
+ background-color: var(--color-background);
55
+ color: var(--color-text);
56
+ }
57
+
58
+ body {
59
+ font-family:
60
+ system-ui,
61
+ -apple-system,
62
+ sans-serif;
63
+ font-size: 1.6rem;
64
+ line-height: 1.5;
65
+ margin: 0;
66
+ padding: 0;
67
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "stoop",
3
3
  "description": "A small component library for quickly spinning up a pretty Next.js project.",
4
- "version": "0.0.8",
4
+ "version": "0.0.9",
5
5
  "author": "Jackson Dolman <mail@dolmios.com>",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -17,10 +17,6 @@
17
17
  "types": "./dist/index.d.ts",
18
18
  "import": "./dist/index.js",
19
19
  "require": "./dist/index.js"
20
- },
21
- "./styles": {
22
- "import": "./dist/globals.js",
23
- "require": "./dist/globals.js"
24
20
  }
25
21
  },
26
22
  "files": [
@@ -56,7 +52,7 @@
56
52
  "build:clean": "rm -rf dist",
57
53
  "build:js": "bun build ./src/index.ts --outdir ./dist --format esm --target browser --sourcemap --external react --external react-dom --naming=directory --loader .css=text",
58
54
  "build:types": "tsc --project tsconfig.build.json",
59
- "build:css": "bun build ./src/styles/globals.css --outdir ./dist --loader .css=text",
55
+ "build:css": "cp ./src/styles/globals.css ./dist/globals.css",
60
56
  "dev": "bun run next dev",
61
57
  "lint": "eslint . --fix",
62
58
  "prepare": "bun run build",
package/dist/globals.js DELETED
@@ -1,5 +0,0 @@
1
- // src/styles/globals.css
2
- var globals_default = ":root {\n /* Colors */\n --color-text: #000000;\n --color-background: #ffffff;\n --color-border: rgba(0, 0, 0, 0.1);\n --color-primary: #000000;\n --color-muted: #666666;\n\n /* Spacing */\n --space-smallest: 0.25rem;\n --space-smaller: 0.5rem;\n --space-small: 0.75rem;\n --space-medium: 1rem;\n --space-large: 1.5rem;\n --space-larger: 2rem;\n --space-largest: 10rem;\n\n /* Radii */\n --radius-small: 0.25rem;\n --radius-large: 0.5rem;\n --radius-round: 9999px;\n\n /* Shadows */\n --shadow-default: 0 0 0 1px rgba(0, 0, 0, 0.1);\n\n /* Breakpoints */\n --breakpoint-phone: 800px;\n --breakpoint-tablet: 1024px;\n --breakpoint-desktop: 1440px;\n}\n\n@media (prefers-color-scheme: dark) {\n :root {\n --color-text: #ffffff;\n --color-background: #000000;\n --color-border: rgba(255, 255, 255, 0.1);\n --color-primary: #ffffff;\n --color-muted: #999999;\n }\n}\n\n/* Reset */\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nhtml {\n font-size: 62.5%;\n -webkit-text-size-adjust: 100%;\n text-size-adjust: 100%;\n scroll-behavior: smooth;\n background-color: var(--color-background);\n color: var(--color-text);\n}\n\nbody {\n font-family:\n system-ui,\n -apple-system,\n sans-serif;\n font-size: 1.6rem;\n line-height: 1.5;\n margin: 0;\n padding: 0;\n}\n";
3
- export {
4
- globals_default as default
5
- };