@ecopages/radiant-themes 0.0.0-stage → 0.2.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/README.md +96 -2
- package/dist/compiled/themes/cloudflare/compact.css +848 -0
- package/dist/compiled/themes/cloudflare.css +831 -0
- package/dist/compiled/themes/github/compact.css +819 -0
- package/dist/compiled/themes/github.css +802 -0
- package/dist/compiled/themes/high-contrast/compact.css +707 -0
- package/dist/compiled/themes/high-contrast.css +690 -0
- package/dist/compiled/themes/macos/compact.css +815 -0
- package/dist/compiled/themes/macos-classic/compact.css +1083 -0
- package/dist/compiled/themes/macos-classic.css +1066 -0
- package/dist/compiled/themes/macos.css +798 -0
- package/dist/compiled/themes/material/compact.css +634 -0
- package/dist/compiled/themes/material.css +617 -0
- package/dist/compiled/themes/vercel/compact.css +811 -0
- package/dist/compiled/themes/vercel.css +794 -0
- package/dist/compiled/themes/vscode/compact.css +763 -0
- package/dist/compiled/themes/vscode.css +746 -0
- package/dist/compiled/themes/windows95/compact.css +959 -0
- package/dist/compiled/themes/windows95.css +942 -0
- package/dist/foundation.css +11 -0
- package/dist/themes/cloudflare/compact.css +2 -0
- package/dist/themes/cloudflare.css +4 -0
- package/dist/themes/github/compact.css +2 -0
- package/dist/themes/github.css +4 -0
- package/dist/themes/high-contrast/compact.css +2 -0
- package/dist/themes/high-contrast.css +4 -0
- package/dist/themes/macos/compact.css +2 -0
- package/dist/themes/macos-classic/compact.css +2 -0
- package/dist/themes/macos-classic.css +4 -0
- package/dist/themes/macos.css +4 -0
- package/dist/themes/material/compact.css +2 -0
- package/dist/themes/material.css +4 -0
- package/dist/themes/vercel/compact.css +2 -0
- package/dist/themes/vercel.css +4 -0
- package/dist/themes/vscode/compact.css +2 -0
- package/dist/themes/vscode.css +4 -0
- package/dist/themes/windows95/compact.css +2 -0
- package/dist/themes/windows95.css +4 -0
- package/dist/tokens/colors/cloudflare.css +53 -0
- package/dist/tokens/colors/github.css +33 -0
- package/dist/tokens/colors/high-contrast.css +53 -0
- package/dist/tokens/colors/macos-classic.css +66 -0
- package/dist/tokens/colors/macos.css +40 -0
- package/dist/tokens/colors/material.css +25 -0
- package/dist/tokens/colors/vercel.css +71 -0
- package/dist/tokens/colors/vscode.css +31 -0
- package/dist/tokens/colors/windows95.css +54 -0
- package/dist/tokens/components/cloudflare.css +147 -0
- package/dist/tokens/components/github.css +111 -0
- package/dist/tokens/components/high-contrast.css +108 -0
- package/dist/tokens/components/macos-classic.css +587 -0
- package/dist/tokens/components/macos.css +225 -0
- package/dist/tokens/components/material.css +82 -0
- package/dist/tokens/components/vercel.css +150 -0
- package/dist/tokens/components/vscode.css +72 -0
- package/dist/tokens/components/windows95.css +433 -0
- package/dist/tokens/roles/cloudflare.css +150 -0
- package/dist/tokens/roles/github.css +150 -0
- package/dist/tokens/roles/high-contrast.css +155 -0
- package/dist/tokens/roles/macos-classic.css +142 -0
- package/dist/tokens/roles/macos.css +155 -0
- package/dist/tokens/roles/material.css +144 -0
- package/dist/tokens/roles/vercel.css +141 -0
- package/dist/tokens/roles/vscode.css +143 -0
- package/dist/tokens/roles/windows95.css +142 -0
- package/package.json +144 -3
package/README.md
CHANGED
|
@@ -1,3 +1,97 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ecopages/radiant-themes
|
|
2
2
|
|
|
3
|
-
|
|
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. Its
|
|
62
|
+
semantic primary role uses deeper orange `#cc3a00` in light mode and brighter orange `#ff5e1e` in dark mode. Filled
|
|
63
|
+
primary buttons use the contrast-safe `#cc3a00` with white text in both modes. Links and focus stay blue, and warnings
|
|
64
|
+
use a yellow amber that stays distinct from the primary.
|
|
65
|
+
GitHub maps Primer's functional roles: green marks the primary action, blue is for links and focus, the selected tab
|
|
66
|
+
uses Primer's coral underline, and neutral surfaces are used for secondary actions.
|
|
67
|
+
|
|
68
|
+
The Vercel theme uses Background 2 for the light canvas and Background 1 for primary surfaces. Its component colors
|
|
69
|
+
drive hover and active fills, Colors 4–6 drive default, hover, and active borders, and blue stays focused on links and
|
|
70
|
+
keyboard focus. Control boundaries are strengthened for visibility. VS Code maps editor surfaces and accent states,
|
|
71
|
+
with Dark Modern's `#0078d4` fill for dark-mode filled buttons. Button treatments vary by theme: Cloudflare uses a
|
|
72
|
+
contrast-safe orange primary fill, while Cloudflare, GitHub, and Vercel use saturated fills with white text for
|
|
73
|
+
dark-mode destructive buttons. Other variants follow each theme's semantic roles. These palettes adapt product cues to
|
|
74
|
+
Radiant UI roles without reproducing the products pixel for pixel.
|
|
75
|
+
|
|
76
|
+
## Design references
|
|
77
|
+
|
|
78
|
+
The themes draw on public guidance for role mapping and component behavior: [Material Design 3 color
|
|
79
|
+
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.
|
|
80
|
+
|
|
81
|
+
Radiant Themes is an independent project. It is not affiliated with, sponsored by, or endorsed by GitHub, Cloudflare,
|
|
82
|
+
Vercel, Microsoft, Apple, or Google. Product names such as GitHub, Cloudflare, Vercel, VS Code, Windows 95, Mac OS, macOS,
|
|
83
|
+
and Material Design are trademarks of their respective owners and are used only to describe the design inspiration.
|
|
84
|
+
|
|
85
|
+
## Browser-ready CSS
|
|
86
|
+
|
|
87
|
+
For applications that consume compiled CSS rather than Tailwind theme sources, load the base bundle, one compiled
|
|
88
|
+
theme, and component styles:
|
|
89
|
+
|
|
90
|
+
```css
|
|
91
|
+
@import '@ecopages/radiant-ui/radiant-ui.css';
|
|
92
|
+
@import '@ecopages/radiant-themes/compiled/github.css';
|
|
93
|
+
@import '@ecopages/radiant-ui/styles.css';
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Use `compiled/github/compact.css` for the compact variant. Matching compiled entries exist for every full theme and
|
|
97
|
+
compact variant. Override semantic CSS properties after the imports when an application needs local adjustments.
|