base-themes 0.1.0 → 0.1.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/README.md +48 -17
- package/dist/base-themes.css +1 -1
- package/dist/base-themes.js +329 -303
- package/dist/types/hooks/useTheme.d.ts +2 -2
- package/dist/types/lib.d.ts +1 -0
- package/dist/types/styles/themeList.d.ts +4 -0
- package/package.json +12 -2
- package/public/previews/base-themes-bauhaus.png +0 -0
- package/public/previews/base-themes-bento.png +0 -0
- package/public/previews/base-themes-calm.png +0 -0
- package/public/previews/base-themes-cyberpunk.png +0 -0
- package/public/previews/base-themes-data-dense.png +0 -0
- package/public/previews/base-themes-editorial.png +0 -0
- package/public/previews/base-themes-enterprise.png +0 -0
- package/public/previews/base-themes-fluent.png +0 -0
- package/public/previews/base-themes-glass.png +0 -0
- package/public/previews/base-themes-linear.png +0 -0
- package/public/previews/base-themes-luxury.png +0 -0
- package/public/previews/base-themes-material.png +0 -0
- package/public/previews/base-themes-minimal.png +0 -0
- package/public/previews/base-themes-mono.png +0 -0
- package/public/previews/base-themes-neo-brutalism.png +0 -0
- package/public/previews/base-themes-playful.png +0 -0
- package/public/previews/base-themes-retro.png +0 -0
- package/public/previews/base-themes-shadcn.png +0 -0
- package/public/previews/base-themes-soft-ui.png +0 -0
- package/public/previews/base-themes-terminal.png +0 -0
- package/registry/registry.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { type ThemeStyle } from '../styles/themeList';
|
|
1
2
|
type Theme = 'light' | 'dark' | 'system';
|
|
2
|
-
type ThemeStyle = 'bento' | 'shadcn' | 'neo-brutalism';
|
|
3
3
|
export declare function useTheme(): {
|
|
4
4
|
theme: Theme;
|
|
5
5
|
setTheme: (t: Theme) => void;
|
|
6
6
|
resolved: "light" | "dark";
|
|
7
|
-
style:
|
|
7
|
+
style: "bento" | "shadcn" | "neo-brutalism" | "minimal" | "enterprise" | "linear" | "glass" | "terminal" | "material" | "fluent" | "retro" | "cyberpunk" | "editorial" | "calm" | "data-dense" | "playful" | "luxury" | "soft-ui" | "bauhaus" | "mono";
|
|
8
8
|
setStyle: (nextStyle: ThemeStyle) => void;
|
|
9
9
|
};
|
|
10
10
|
export type { Theme, ThemeStyle };
|
package/dist/types/lib.d.ts
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const themeStyles: readonly ["bento", "shadcn", "neo-brutalism", "minimal", "enterprise", "linear", "glass", "terminal", "material", "fluent", "retro", "cyberpunk", "editorial", "calm", "data-dense", "playful", "luxury", "soft-ui", "bauhaus", "mono"];
|
|
2
|
+
export type ThemeStyle = (typeof themeStyles)[number];
|
|
3
|
+
export declare const themeStyleLabels: Record<ThemeStyle, string>;
|
|
4
|
+
export declare const themeStyleDescriptions: Record<ThemeStyle, string>;
|
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "base-themes",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"description": "Themeable Base UI React components with Bento, shadcn,
|
|
4
|
+
"version": "0.1.1",
|
|
5
|
+
"description": "Themeable Base UI React components with Bento, shadcn, neo brutalism, and expressive product UI styles.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/markbang/base-themes.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/markbang/base-themes/issues"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/markbang/base-themes#readme",
|
|
8
16
|
"sideEffects": [
|
|
9
17
|
"**/*.css"
|
|
10
18
|
],
|
|
@@ -36,6 +44,8 @@
|
|
|
36
44
|
"build:lib": "vite build --config vite.lib.config.ts",
|
|
37
45
|
"lint": "eslint .",
|
|
38
46
|
"registry:check": "node scripts/validate-registry.mjs",
|
|
47
|
+
"previews:generate": "node scripts/generate-theme-previews.mjs",
|
|
48
|
+
"themes:e2e": "node scripts/verify-themes-e2e.mjs",
|
|
39
49
|
"prepack": "npm run registry:check && npm run lint && npm run build",
|
|
40
50
|
"preview": "vite preview"
|
|
41
51
|
},
|
|
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/registry/registry.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"tokens": "src/styles/tokens.css",
|
|
8
8
|
"global": "src/index.css",
|
|
9
9
|
"default": "bento",
|
|
10
|
-
"variants": ["bento", "shadcn", "neo-brutalism"]
|
|
10
|
+
"variants": ["bento", "shadcn", "neo-brutalism", "minimal", "enterprise", "linear", "glass", "terminal", "material", "fluent", "retro", "cyberpunk", "editorial", "calm", "data-dense", "playful", "luxury", "soft-ui", "bauhaus", "mono"]
|
|
11
11
|
},
|
|
12
12
|
"components": [
|
|
13
13
|
{ "name": "accordion", "title": "Accordion", "files": ["src/components/ui/Accordion.tsx", "src/components/ui/Accordion.css"] },
|