@ecopages/radiant-themes 0.0.0-stage → 0.2.0-rc.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.
Files changed (66) hide show
  1. package/README.md +94 -2
  2. package/dist/compiled/themes/cloudflare/compact.css +848 -0
  3. package/dist/compiled/themes/cloudflare.css +831 -0
  4. package/dist/compiled/themes/github/compact.css +819 -0
  5. package/dist/compiled/themes/github.css +802 -0
  6. package/dist/compiled/themes/high-contrast/compact.css +707 -0
  7. package/dist/compiled/themes/high-contrast.css +690 -0
  8. package/dist/compiled/themes/macos/compact.css +815 -0
  9. package/dist/compiled/themes/macos-classic/compact.css +1083 -0
  10. package/dist/compiled/themes/macos-classic.css +1066 -0
  11. package/dist/compiled/themes/macos.css +798 -0
  12. package/dist/compiled/themes/material/compact.css +634 -0
  13. package/dist/compiled/themes/material.css +617 -0
  14. package/dist/compiled/themes/vercel/compact.css +811 -0
  15. package/dist/compiled/themes/vercel.css +794 -0
  16. package/dist/compiled/themes/vscode/compact.css +763 -0
  17. package/dist/compiled/themes/vscode.css +746 -0
  18. package/dist/compiled/themes/windows95/compact.css +959 -0
  19. package/dist/compiled/themes/windows95.css +942 -0
  20. package/dist/foundation.css +11 -0
  21. package/dist/themes/cloudflare/compact.css +2 -0
  22. package/dist/themes/cloudflare.css +4 -0
  23. package/dist/themes/github/compact.css +2 -0
  24. package/dist/themes/github.css +4 -0
  25. package/dist/themes/high-contrast/compact.css +2 -0
  26. package/dist/themes/high-contrast.css +4 -0
  27. package/dist/themes/macos/compact.css +2 -0
  28. package/dist/themes/macos-classic/compact.css +2 -0
  29. package/dist/themes/macos-classic.css +4 -0
  30. package/dist/themes/macos.css +4 -0
  31. package/dist/themes/material/compact.css +2 -0
  32. package/dist/themes/material.css +4 -0
  33. package/dist/themes/vercel/compact.css +2 -0
  34. package/dist/themes/vercel.css +4 -0
  35. package/dist/themes/vscode/compact.css +2 -0
  36. package/dist/themes/vscode.css +4 -0
  37. package/dist/themes/windows95/compact.css +2 -0
  38. package/dist/themes/windows95.css +4 -0
  39. package/dist/tokens/colors/cloudflare.css +53 -0
  40. package/dist/tokens/colors/github.css +33 -0
  41. package/dist/tokens/colors/high-contrast.css +53 -0
  42. package/dist/tokens/colors/macos-classic.css +66 -0
  43. package/dist/tokens/colors/macos.css +40 -0
  44. package/dist/tokens/colors/material.css +25 -0
  45. package/dist/tokens/colors/vercel.css +71 -0
  46. package/dist/tokens/colors/vscode.css +31 -0
  47. package/dist/tokens/colors/windows95.css +54 -0
  48. package/dist/tokens/components/cloudflare.css +147 -0
  49. package/dist/tokens/components/github.css +111 -0
  50. package/dist/tokens/components/high-contrast.css +108 -0
  51. package/dist/tokens/components/macos-classic.css +587 -0
  52. package/dist/tokens/components/macos.css +225 -0
  53. package/dist/tokens/components/material.css +82 -0
  54. package/dist/tokens/components/vercel.css +150 -0
  55. package/dist/tokens/components/vscode.css +72 -0
  56. package/dist/tokens/components/windows95.css +433 -0
  57. package/dist/tokens/roles/cloudflare.css +150 -0
  58. package/dist/tokens/roles/github.css +150 -0
  59. package/dist/tokens/roles/high-contrast.css +155 -0
  60. package/dist/tokens/roles/macos-classic.css +142 -0
  61. package/dist/tokens/roles/macos.css +155 -0
  62. package/dist/tokens/roles/material.css +144 -0
  63. package/dist/tokens/roles/vercel.css +141 -0
  64. package/dist/tokens/roles/vscode.css +143 -0
  65. package/dist/tokens/roles/windows95.css +142 -0
  66. package/package.json +144 -3
package/README.md CHANGED
@@ -1,3 +1,95 @@
1
- # Temporary Holding Version
1
+ # @ecopages/radiant-themes
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Optional complete themes for [`@ecopages/radiant-ui`](../radiant-ui/README.md). Radiant UI exports one accessible
4
+ default theme; this package adds a curated set of ready-to-use visual presets.
5
+
6
+ Install both packages when using an optional theme:
7
+
8
+ ```bash
9
+ pnpm add @ecopages/radiant-ui @ecopages/radiant-themes
10
+ ```
11
+
12
+ ## Tailwind CSS applications
13
+
14
+ Import a complete theme and the component stylesheet:
15
+
16
+ ```css
17
+ @import 'tailwindcss';
18
+ @import '@ecopages/radiant-themes/github';
19
+ @import '@ecopages/radiant-ui/styles.css';
20
+ ```
21
+
22
+ Themes include GitHub, Cloudflare, VS Code, Vercel, Material Design, High Contrast, Windows 95, Mac OS Classic, and macOS. Each
23
+ owns its shape, typography, spacing, semantic colors, and any component-specific styling. Theme source remains
24
+ composable internally, while the public API stays at one import per complete theme.
25
+
26
+ Theme entries define font-family stacks but do not bundle font files. An app can load properly licensed font files
27
+ separately and override `--font-sans`, `--font-heading`, or `--font-mono` after the theme import.
28
+
29
+ Compact variants have their own export, for example:
30
+
31
+ ```css
32
+ @import 'tailwindcss';
33
+ @import '@ecopages/radiant-themes/github/compact';
34
+ @import '@ecopages/radiant-ui/styles.css';
35
+ ```
36
+
37
+ Each compact entry applies the theme's shared compact spacing composition while keeping the same theme-owned palette,
38
+ font stacks, shape, and component treatment. The full and compact entries follow the document's `.dark` class.
39
+
40
+ Radiant Default (`@ecopages/radiant-ui/themes/default`) uses three OKLCH seed colors plus density, corner radius, and
41
+ border opacity inputs. The docs tuner shows the six values and produces copyable CSS. Those controls only apply to
42
+ Radiant Default; branded themes keep their own values.
43
+
44
+ High Contrast targets at least 7:1 contrast for published semantic text pairs in both modes and uses prominent focus
45
+ indicators. Radiant UI's shared foundation supports reduced motion, increased contrast, visible keyboard focus, and
46
+ Windows forced colors. Verify non-text boundaries and application content after custom overrides.
47
+
48
+ Windows 95 draws every control with the two-tone 2px bevel: gray push buttons with a black frame on the default
49
+ action, sunken white fields, check boxes, and radio wells, raised property tabs joined to their page, navy title bars,
50
+ and navy selection. Mac OS Classic is Mac OS 9 Platinum, built from the Mac OS 8 Human Interface Guidelines and the Appearance Manager's
51
+ default theme: the seven system greys `#eeeeee` to `#202020`, grey push buttons with a black outline and a two-pixel
52
+ bevel, a three-layer ring around the default button, 12px bevelled check boxes, shaded radio spheres, sunken white
53
+ fields, trapezoid tabs that merge into a black-framed page, and 1px striped title bars. Selection and focus use the
54
+ default `#6666cc` accent. Both
55
+ dark modes keep the same bevel structure on darker faces and fields, since neither system shipped one. macOS uses
56
+ moderate control corners, grouped tab segments, softer layered surfaces, and accent-blue push buttons with white text
57
+ in dark mode. Material Design uses tonal surfaces, a purple accent family, and rounded action
58
+ controls. These are original implementations written with Radiant semantic roles, Tailwind `@apply`, and catalog
59
+ selectors; they do not copy third-party CSS.
60
+
61
+ The Cloudflare theme leads with Cloudflare orange on restrained neutral layers inspired by Cloudflare Kumo. Dark mode
62
+ uses the brand orange `#f6821f` with dark text; light mode uses a deeper orange so primary text and fills keep AA
63
+ contrast on white. Links and focus stay blue, and warnings use a yellow amber that stays distinct from the primary.
64
+ GitHub maps Primer's functional roles: green marks the primary action, blue is for links and focus, the selected tab
65
+ uses Primer's coral underline, and neutral surfaces are used for secondary actions.
66
+
67
+ The Vercel theme uses Background 2 for the light canvas and Background 1 for primary surfaces. Its component colors
68
+ drive hover and active fills, Colors 4–6 drive default, hover, and active borders, and blue stays focused on links and
69
+ keyboard focus. Control boundaries are strengthened for visibility. VS Code maps editor surfaces and accent states,
70
+ with Dark Modern's `#0078d4` button fill. In dark mode, the product themes fill primary and destructive buttons with
71
+ the product's own saturated color and white text, while `--primary` and `--error` stay the lighter tones used for
72
+ text. These palettes adapt product cues to Radiant UI roles without reproducing the products pixel for pixel.
73
+
74
+ ## Design references
75
+
76
+ The themes draw on public guidance for role mapping and component behavior: [Material Design 3 color
77
+ roles](https://m3.material.io/styles/color/the-color-system), [Primer's color token layers](https://primer.style/product/getting-started/foundations/color-usage/), [Vercel Geist colors](https://vercel.com/geist/colors), [VS Code theme color roles](https://code.visualstudio.com/api/references/theme-color), [Cloudflare Kumo](https://github.com/cloudflare/kumo), [Apple's Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines/), [the Mac OS 8 Platinum guidelines](https://dev.os9.ca/techpubs/mac/pdf/HIGOS8Guidelines.pdf), and [Microsoft property sheet guidance](https://learn.microsoft.com/en-us/windows/win32/controls/property-sheets). These sources informed the design decisions; all theme CSS is authored for Radiant's tokens and components.
78
+
79
+ Radiant Themes is an independent project. It is not affiliated with, sponsored by, or endorsed by GitHub, Cloudflare,
80
+ Vercel, Microsoft, Apple, or Google. Product names such as GitHub, Cloudflare, Vercel, VS Code, Windows 95, Mac OS, macOS,
81
+ and Material Design are trademarks of their respective owners and are used only to describe the design inspiration.
82
+
83
+ ## Browser-ready CSS
84
+
85
+ For applications that consume compiled CSS rather than Tailwind theme sources, load the base bundle, one compiled
86
+ theme, and component styles:
87
+
88
+ ```css
89
+ @import '@ecopages/radiant-ui/radiant-ui.css';
90
+ @import '@ecopages/radiant-themes/compiled/github.css';
91
+ @import '@ecopages/radiant-ui/styles.css';
92
+ ```
93
+
94
+ Use `compiled/github/compact.css` for the compact variant. Matching compiled entries exist for every full theme and
95
+ compact variant. Override semantic CSS properties after the imports when an application needs local adjustments.