astryx-dracula 0.1.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/icons.tsx ADDED
@@ -0,0 +1,77 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * Vendored from @astryxdesign/theme-stone (MIT, Meta Platforms) so this
5
+ * theme ships zero theme dependencies. Maps semantic icon names to Lucide
6
+ * icon components bundled with the theme, not with @astryxdesign/core.
7
+ */
8
+
9
+ import React from 'react';
10
+ import type {IconRegistry} from '@astryxdesign/core/Icon';
11
+
12
+ import {
13
+ X,
14
+ ChevronDown,
15
+ ChevronLeft,
16
+ ChevronRight,
17
+ ChevronsLeft,
18
+ ChevronsRight,
19
+ Check,
20
+ CheckCircle,
21
+ XCircle,
22
+ AlertTriangle,
23
+ Info,
24
+ Calendar,
25
+ Clock,
26
+ ExternalLink,
27
+ Menu,
28
+ MoreHorizontal,
29
+ Search,
30
+ ArrowUp,
31
+ ArrowDown,
32
+ ArrowUpDown,
33
+ Filter,
34
+ EyeOff,
35
+ Columns,
36
+ Copy,
37
+ CheckCheck,
38
+ Wrench,
39
+ Square,
40
+ Mic,
41
+ } from 'lucide-react';
42
+
43
+ const iconProps = {
44
+ size: '1em',
45
+ 'aria-hidden': true as const,
46
+ };
47
+
48
+ export const draculaIconRegistry: IconRegistry = {
49
+ close: <X {...iconProps} />,
50
+ chevronDown: <ChevronDown {...iconProps} />,
51
+ chevronLeft: <ChevronLeft {...iconProps} />,
52
+ chevronRight: <ChevronRight {...iconProps} />,
53
+ chevronsLeft: <ChevronsLeft {...iconProps} />,
54
+ chevronsRight: <ChevronsRight {...iconProps} />,
55
+ check: <Check {...iconProps} />,
56
+ success: <CheckCircle {...iconProps} />,
57
+ error: <XCircle {...iconProps} />,
58
+ warning: <AlertTriangle {...iconProps} />,
59
+ info: <Info {...iconProps} />,
60
+ calendar: <Calendar {...iconProps} />,
61
+ clock: <Clock {...iconProps} />,
62
+ externalLink: <ExternalLink {...iconProps} />,
63
+ menu: <Menu {...iconProps} />,
64
+ moreHorizontal: <MoreHorizontal {...iconProps} />,
65
+ search: <Search {...iconProps} />,
66
+ arrowUp: <ArrowUp {...iconProps} />,
67
+ arrowDown: <ArrowDown {...iconProps} />,
68
+ arrowsUpDown: <ArrowUpDown {...iconProps} />,
69
+ funnel: <Filter {...iconProps} />,
70
+ eyeSlash: <EyeOff {...iconProps} />,
71
+ viewColumns: <Columns {...iconProps} />,
72
+ copy: <Copy {...iconProps} />,
73
+ checkDouble: <CheckCheck {...iconProps} />,
74
+ wrench: <Wrench {...iconProps} />,
75
+ stop: <Square {...iconProps} />,
76
+ microphone: <Mic {...iconProps} />,
77
+ };
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "dependencies": {
3
+ "@astryxdesign/core": "^0.3.0",
4
+ "@stylexjs/stylex": "^0.19.0",
5
+ "lucide-react": "^1.33.0",
6
+ "react": "^19.2.8",
7
+ "react-dom": "^19.2.8"
8
+ },
9
+ "description": "Pure Dracula brand theme for Astryx React sites. Dark-only tokens, syntax highlighting, and chart colors with prebuilt CSS.",
10
+ "devDependencies": {
11
+ "@astryxdesign/cli": "^0.3.0",
12
+ "@types/bun": "^1.4.1",
13
+ "@types/node": "^26.4.1",
14
+ "@types/react": "^19.2.18",
15
+ "@types/react-dom": "^19.2.4",
16
+ "@vitejs/plugin-react": "^6.1.0",
17
+ "typescript": "^7.0.2",
18
+ "vite": "^8.0.0"
19
+ },
20
+ "exports": {
21
+ ".": {
22
+ "default": "./astryx-dracula.js",
23
+ "types": "./astryx-dracula.d.ts"
24
+ },
25
+ "./built": {
26
+ "default": "./astryx-dracula.js",
27
+ "types": "./astryx-dracula.d.ts"
28
+ },
29
+ "./package.json": "./package.json",
30
+ "./theme.css": "./theme.css",
31
+ "./tokens.css": "./tokens.css"
32
+ },
33
+ "files": [
34
+ "BRAND.md",
35
+ "LICENSE",
36
+ "USAGE.md",
37
+ "astryx-dracula.d.ts",
38
+ "astryx-dracula.js",
39
+ "astryx-dracula.variants.d.ts",
40
+ "fonts/",
41
+ "icons.tsx",
42
+ "theme.css",
43
+ "tokens.css"
44
+ ],
45
+ "license": "MIT",
46
+ "name": "astryx-dracula",
47
+ "peerDependencies": {
48
+ "@astryxdesign/core": "^0.3.0",
49
+ "react": ">=19.0.0",
50
+ "react-dom": ">=19.0.0"
51
+ },
52
+ "scripts": {
53
+ "audit": "bun scripts/check.ts",
54
+ "build": "tsc --noEmit && vite build",
55
+ "dev": "vite",
56
+ "preview": "vite preview",
57
+ "theme:build": "bunx astryx theme build astryx-theme.ts -o theme.css",
58
+ "theme:check": "bunx astryx theme build astryx-theme.ts -o theme.css --check"
59
+ },
60
+ "trustedDependencies": ["@astryxdesign/core", "@astryxdesign/cli"],
61
+ "type": "module",
62
+ "version": "0.1.0"
63
+ }