@classicy/appearance-platinum 0.0.0-stage → 3.0.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/LICENSE +24 -0
- package/README.md +98 -2
- package/dist/appearance-platinum.es.js +568 -0
- package/dist/appearance-platinum.es.js.map +1 -0
- package/dist/appearance-platinum.umd.js +152 -0
- package/dist/appearance-platinum.umd.js.map +1 -0
- package/dist/assets/AppleGaramond-300-italic.woff2 +0 -0
- package/dist/assets/AppleGaramond-300-normal.woff2 +0 -0
- package/dist/assets/AppleGaramond-bold-italic.woff2 +0 -0
- package/dist/assets/AppleGaramond-bold-normal.woff2 +0 -0
- package/dist/assets/AppleGaramond-normal-italic.woff2 +0 -0
- package/dist/assets/AppleGaramond-normal-normal.woff2 +0 -0
- package/dist/assets/Charcoal-normal-normal.woff2 +0 -0
- package/dist/assets/ChicagoFLF-normal-normal.woff2 +0 -0
- package/dist/assets/Geneva-bold-normal.woff2 +0 -0
- package/dist/assets/Geneva-normal-italic.woff2 +0 -0
- package/dist/assets/Geneva-normal-normal.woff2 +0 -0
- package/dist/assets/Monaco-normal-normal.woff2 +0 -0
- package/dist/assets/VCROSDMono-normal-normal.woff2 +0 -0
- package/dist/assets/alias.png +0 -0
- package/dist/assets/apple.png +0 -0
- package/dist/assets/azul_dark.png +0 -0
- package/dist/assets/azul_extra_light.png +0 -0
- package/dist/assets/azul_light.png +0 -0
- package/dist/assets/bondi.png +0 -0
- package/dist/assets/bondi_dark.png +0 -0
- package/dist/assets/bondi_extra_dark.png +0 -0
- package/dist/assets/bondi_light.png +0 -0
- package/dist/assets/bondi_medium.png +0 -0
- package/dist/assets/bossanova_bondi.png +0 -0
- package/dist/assets/bossanova_poppy.png +0 -0
- package/dist/assets/bossanova_poppy_2.png +0 -0
- package/dist/assets/bubbles_bondi.png +0 -0
- package/dist/assets/bubbles_poppy.png +0 -0
- package/dist/assets/candy_bar.png +0 -0
- package/dist/assets/candy_bar_azul.png +0 -0
- package/dist/assets/candy_bar_pistachio.png +0 -0
- package/dist/assets/candy_bar_sunny.png +0 -0
- package/dist/assets/collapse.svg +1 -0
- package/dist/assets/corner-dither.svg +1 -0
- package/dist/assets/cursor-arrow.svg +1 -0
- package/dist/assets/cursor-resize-d.png +0 -0
- package/dist/assets/cursor-resize-l.png +0 -0
- package/dist/assets/cursor-resize-lr.png +0 -0
- package/dist/assets/cursor-resize-r.png +0 -0
- package/dist/assets/cursor-resize-u.png +0 -0
- package/dist/assets/cursor-resize-ud.png +0 -0
- package/dist/assets/cursor-watch.png +0 -0
- package/dist/assets/default.jpg +0 -0
- package/dist/assets/default.png +0 -0
- package/dist/assets/diagonals_bondi.png +0 -0
- package/dist/assets/diagonals_bondi_dark.png +0 -0
- package/dist/assets/diagonals_poppy.png +0 -0
- package/dist/assets/down-arrow.svg +1 -0
- package/dist/assets/flat_peanuts.png +0 -0
- package/dist/assets/flat_peanuts_poppy.png +0 -0
- package/dist/assets/french_blue_dark.png +0 -0
- package/dist/assets/french_blue_light.png +0 -0
- package/dist/assets/halftone.svg +1 -0
- package/dist/assets/help-button.png +0 -0
- package/dist/assets/macos.png +0 -0
- package/dist/assets/peanuts_azul.png +0 -0
- package/dist/assets/peanuts_pistachio.png +0 -0
- package/dist/assets/pistachio_dark.png +0 -0
- package/dist/assets/pistachio_light.png +0 -0
- package/dist/assets/pistachio_medium.png +0 -0
- package/dist/assets/platinum.ac3 +0 -0
- package/dist/assets/platinum.m4a +0 -0
- package/dist/assets/platinum.mp3 +0 -0
- package/dist/assets/platinum.ogg +0 -0
- package/dist/assets/platinum.png +0 -0
- package/dist/assets/poppy.png +0 -0
- package/dist/assets/poppy_dark.png +0 -0
- package/dist/assets/poppy_light.png +0 -0
- package/dist/assets/poppy_medium.png +0 -0
- package/dist/assets/quicktime-thumb-slider.svg +1 -0
- package/dist/assets/quicktime-volume-slider.svg +8 -0
- package/dist/assets/resizer.svg +1 -0
- package/dist/assets/rio_azul.png +0 -0
- package/dist/assets/rio_pistachio.png +0 -0
- package/dist/assets/ripple_azul.png +0 -0
- package/dist/assets/ripple_bondi.png +0 -0
- package/dist/assets/ripple_poppy.png +0 -0
- package/dist/assets/sad-mac.png +0 -0
- package/dist/assets/slider-strikes.svg +6 -0
- package/dist/assets/slider-thumb-rect.svg +1 -0
- package/dist/assets/slider-thumb.svg +1 -0
- package/dist/assets/sunny.png +0 -0
- package/dist/assets/sunny_dark.png +0 -0
- package/dist/assets/sunny_light.png +0 -0
- package/dist/assets/tab-outline.svg +1 -0
- package/dist/assets/title-bar-center-red.svg +26 -0
- package/dist/assets/title-bar-center.svg +1 -0
- package/dist/assets/title-bar-utility.svg +1 -0
- package/dist/assets/trash-empty.png +0 -0
- package/dist/assets/trash-full.png +0 -0
- package/dist/assets/triangle.svg +1 -0
- package/dist/assets/waves_azul.png +0 -0
- package/dist/assets/waves_bondi.png +0 -0
- package/dist/assets/waves_sunny.png +0 -0
- package/dist/assets/zoom.svg +1 -0
- package/dist/classicy-platinum.css +2 -0
- package/dist/classicy-platinum.fonts.css +13 -0
- package/dist/types/assets/art/platinumArt.d.ts +28 -0
- package/dist/types/assets/art/platinumArt.d.ts.map +1 -0
- package/dist/types/assets/pixelart/platinumPixelArt.d.ts +16 -0
- package/dist/types/assets/pixelart/platinumPixelArt.d.ts.map +1 -0
- package/dist/types/assets/platinumAssets.d.ts +2 -0
- package/dist/types/assets/platinumAssets.d.ts.map +1 -0
- package/dist/types/assets/platinumFonts.internal.d.ts +9 -0
- package/dist/types/assets/platinumFonts.internal.d.ts.map +1 -0
- package/dist/types/assets/platinumLegacyWallpapers.d.ts +3 -0
- package/dist/types/assets/platinumLegacyWallpapers.d.ts.map +1 -0
- package/dist/types/assets/platinumWallpapers.d.ts +11 -0
- package/dist/types/assets/platinumWallpapers.d.ts.map +1 -0
- package/dist/types/assets/sounds/platinum.d.ts +3 -0
- package/dist/types/assets/sounds/platinum.d.ts.map +1 -0
- package/dist/types/hooks.d.ts +14 -0
- package/dist/types/hooks.d.ts.map +1 -0
- package/dist/types/index.d.ts +32 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +60 -3
- package/src/styles/_assets.scss +27 -0
- package/src/styles/_mixins.scss +290 -0
- package/src/styles/_scrollbars.scss +314 -0
- package/src/styles/components/_Alert.scss +10 -0
- package/src/styles/components/_Assistant.scss +10 -0
- package/src/styles/components/_BevelButton.scss +26 -0
- package/src/styles/components/_Button.scss +52 -0
- package/src/styles/components/_Checkbox.scss +33 -0
- package/src/styles/components/_ControlStrip.scss +186 -0
- package/src/styles/components/_Desktop.scss +25 -0
- package/src/styles/components/_DesktopIcon.scss +9 -0
- package/src/styles/components/_DriveSetupList.scss +9 -0
- package/src/styles/components/_FileInput.scss +12 -0
- package/src/styles/components/_HyperCard.scss +13 -0
- package/src/styles/components/_Icon.scss +9 -0
- package/src/styles/components/_Menu.scss +99 -0
- package/src/styles/components/_Meter.scss +8 -0
- package/src/styles/components/_Output.scss +9 -0
- package/src/styles/components/_Placard.scss +16 -0
- package/src/styles/components/_PopUpMenu.scss +33 -0
- package/src/styles/components/_ProgressBar.scss +13 -0
- package/src/styles/components/_QuickTimeMovieEmbed.scss +84 -0
- package/src/styles/components/_Slider.scss +156 -0
- package/src/styles/components/_SplitView.scss +9 -0
- package/src/styles/components/_StartupScreen.scss +9 -0
- package/src/styles/components/_Table.scss +13 -0
- package/src/styles/components/_Tabs.scss +34 -0
- package/src/styles/components/_Window.scss +139 -0
- package/src/styles/components/_WindowFrame.scss +10 -0
- package/src/styles/platinum.scss +68 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
|
2
|
+
|
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
+
distribute this software, either in source code form or as a compiled
|
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
+
means.
|
|
7
|
+
|
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
+
of this software dedicate any and all copyright interest in the
|
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
|
11
|
+
of the public at large and to the detriment of our heirs and
|
|
12
|
+
successors. We intend this dedication to be an overt act of
|
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
+
software under copyright law.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
For more information, please refer to <https://unlicense.org>
|
package/README.md
CHANGED
|
@@ -1,3 +1,99 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @classicy/appearance-platinum
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Platinum, the Mac OS 8 look, as an Appearance Package for
|
|
4
|
+
[Classicy](https://github.com/robbiebyrd/classicy). It holds Platinum's
|
|
5
|
+
stylesheet, its themes (21 presets), its art, cursors, fonts and wallpapers,
|
|
6
|
+
and its sound pack.
|
|
7
|
+
|
|
8
|
+
The core, `@classicy/classicy`, registers no Appearance Package. Without one,
|
|
9
|
+
`ClassicyDesktop` shows a message telling you to load one instead of the
|
|
10
|
+
desktop. Import this package once, at your app's entry, to register Platinum:
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
import "@classicy/appearance-platinum";
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`@classicy/classicy` is a peer dependency. Install both, at the same version:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
pnpm add @classicy/classicy @classicy/appearance-platinum
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
A host that auto-bumps its dependencies lists both names and moves them
|
|
23
|
+
together. The package ships its type declarations (`bundler`, `node16` and `nodenext`
|
|
24
|
+
resolution), so a named import type-checks:
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { platinumAppearanceHooks } from "@classicy/appearance-platinum";
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Exports
|
|
31
|
+
|
|
32
|
+
- `.`: the package entry (ES and UMD bundles, with types). Importing it
|
|
33
|
+
registers Platinum. It also exports `PLATINUM_APPEARANCE_PACKAGE_ID`,
|
|
34
|
+
`platinumAppearanceHooks`, `platinumSoundPack` and `platinumJson`.
|
|
35
|
+
- `./scss/*`: Platinum's SCSS (`mixins`, `scrollbars`, `assets`), for hosts
|
|
36
|
+
and packages that build on its look. It uses the core's vocabulary as
|
|
37
|
+
`pkg:@classicy/classicy/scss/*`, so compile it with Sass's
|
|
38
|
+
`NodePackageImporter`.
|
|
39
|
+
- `./classicy-platinum.css` and `./classicy-platinum.fonts.css`: the look and
|
|
40
|
+
the fonts as stylesheets, for hosts whose Content-Security-Policy blocks
|
|
41
|
+
inline `<style>` (below).
|
|
42
|
+
|
|
43
|
+
Platinum's fonts, art, wallpapers and sound sprites are files in
|
|
44
|
+
`dist/assets/`, loaded as `new URL("assets/…", import.meta.url)`. A Vite host
|
|
45
|
+
keeps both packages out of the dev server's dependency pre-bundle, which
|
|
46
|
+
would break those URLs:
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
// vite.config.ts
|
|
50
|
+
export default defineConfig({
|
|
51
|
+
optimizeDeps: {
|
|
52
|
+
exclude: ["@classicy/classicy", "@classicy/appearance-platinum"],
|
|
53
|
+
},
|
|
54
|
+
})
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Strict CSP
|
|
58
|
+
|
|
59
|
+
The package injects its look as `<style id="classicy-appearance-platinum">`
|
|
60
|
+
and its fonts as `<style id="classicy-fonts-platinum">`. Under a policy that
|
|
61
|
+
blocks inline `<style>`, link the three stylesheets first in `<head>`, in this
|
|
62
|
+
order: the core's, then this package's two.
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<link rel="stylesheet" href="/node_modules/@classicy/classicy/dist/classicy.css">
|
|
66
|
+
<link rel="stylesheet" href="/node_modules/@classicy/appearance-platinum/dist/classicy-platinum.css">
|
|
67
|
+
<link rel="stylesheet" href="/node_modules/@classicy/appearance-platinum/dist/classicy-platinum.fonts.css">
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Serve this package's `dist/assets/` beside them, and allow it in `font-src`.
|
|
71
|
+
|
|
72
|
+
Link the files rather than importing `classicy-platinum.fonts.css` through your
|
|
73
|
+
own bundler: Vite inlines the small Monaco font as a `data:` URL, which
|
|
74
|
+
`font-src 'self'` blocks. Linking (copied, or served from `node_modules`) is
|
|
75
|
+
recommended; otherwise set `build.assetsInlineLimit: 0` or allow
|
|
76
|
+
`font-src data:`.
|
|
77
|
+
|
|
78
|
+
## Developing
|
|
79
|
+
|
|
80
|
+
This package lives in the Classicy repository, at
|
|
81
|
+
`packages/appearance/platinum`. Its tests run against the workspace core's
|
|
82
|
+
source. Its build needs the core's built declarations, so build the core
|
|
83
|
+
first (the root `pnpm build:source` builds both, in order); `build` runs the
|
|
84
|
+
package's dist check, `bin/verify-dist.mjs`, after `vite build`:
|
|
85
|
+
|
|
86
|
+
```sh
|
|
87
|
+
pnpm --filter @classicy/appearance-platinum exec vitest run
|
|
88
|
+
pnpm --filter @classicy/appearance-platinum build
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
The repository's `resources/` folder (the Apple Human Interface Guidelines
|
|
92
|
+
and reference art) sits beside this package's source. It is never published.
|
|
93
|
+
|
|
94
|
+
## License
|
|
95
|
+
|
|
96
|
+
This software is provided free and in the public domain under
|
|
97
|
+
[The Unlicense](https://unlicense.org/). See [LICENSE](LICENSE). Apple
|
|
98
|
+
maintains the copyright on the background patterns, icons and interface
|
|
99
|
+
components Platinum reproduces.
|