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.
@@ -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: ThemeStyle;
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 };
@@ -1,3 +1,4 @@
1
+ import './index.css';
1
2
  export * from './components/ui';
2
3
  export { useTheme } from './hooks/useTheme';
3
4
  export type { Theme, ThemeStyle } from './hooks/useTheme';
@@ -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.0",
5
- "description": "Themeable Base UI React components with Bento, shadcn, and neo brutalism styles.",
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
  },
@@ -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"] },